@font-face {
  font-family: 'ITF Qomra Arabic Bold';
  src: url('../01_zakaria_wan/fonts/itfQomraArabic-Bold.otf') format('opentype');
}

:root {
  --bg-color: #002623;
  --panel-bg: rgba(5, 66, 57, 0.65);
  --border-color: rgba(185, 167, 121, 0.28);
  --text-primary: #edebe0;
  --text-secondary: #b9a779;
  --primary: #988561;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'ITF Qomra Arabic Bold', 'Cairo', sans-serif;
  direction: rtl;
}

body {
  background: var(--bg-color);
  color: var(--text-primary);
  height: 100vh;
  overflow: hidden;
}

.app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
}

.glass-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(12px);
  border-left: 1px solid var(--border-color);
}

.dashboard {
  width: 380px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.header {
  margin-bottom: 20px;
  text-align: center;
}

.logo {
  max-width: 100%;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 10px rgba(185, 167, 121, 0.3));
}

.header h2 {
  font-size: 18px;
  color: #e0e7ff;
  margin-bottom: 5px;
}

.header p {
  font-size: 13px;
  color: var(--text-secondary);
}

.cia-container {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 12px;
  font-weight: bold;
}

.cia-item {
  margin-bottom: 10px;
}

.cia-label {
  font-size: 12px;
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
}

.cia-progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.fill {
  height: 100%;
  transition: width 1.5s cubic-bezier(0.1, 0.7, 0.1, 1), background 1s;
  background: var(--primary);
}

.action-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding-left: 5px;
}

.action-panel::-webkit-scrollbar {
  width: 6px;
}

.action-panel::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

.btn {
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid rgba(185, 167, 121, 0.3);
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.3s;
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-primary);
  text-align: right;
}

.btn:hover {
  background: rgba(185, 167, 121, 0.15);
  border-color: var(--primary);
  transform: translateX(-5px);
}

.btn.applied {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--success);
  color: #34d399;
  pointer-events: none;
  opacity: 0.7;
}

.btn.applied i {
  color: var(--success);
}

/* Main View */
.main-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding: 30px;
  position: relative;
}

.grid-bg {
  position: absolute;
  inset: 0;
  background-image: url('../01_zakaria_wan/pattern.png');
  background-size: 400px;
  opacity: 0.2;
  pointer-events: none;
}

.top-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 25px;
  z-index: 1;
}

.bottom-row {
  flex: 1;
  display: flex;
  flex-direction: column;
  z-index: 1;
  min-height: 0;
}

.wrapper-card {
  background: rgba(0, 38, 35, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: 1s;
}

.wrapper-card h3 {
  font-size: 16px;
  margin-bottom: 20px;
  color: #cbd5e1;
  text-align: center;
}

/* Pie Chart */
.compliance-card {
  align-items: center;
  justify-content: center;
}

.circle-wrap {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 auto 20px;
  transition: background 1.5s, box-shadow 1s;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.inside-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #002623;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  letter-spacing: 1px;
  color: #f8fafc;
}

.status-badge {
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
  width: 85%;
  transition: 0.5s;
  margin: 0 auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.status-badge.danger {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid var(--danger);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.status-badge.warning {
  background: rgba(245, 158, 11, 0.2);
  color: #fde047;
  border: 1px solid var(--warning);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.status-badge.success {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid var(--success);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.6);
}

/* Risk Matrix */
.formula {
  text-align: center;
  font-family: monospace;
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.3);
  padding: 10px;
  border-radius: 8px;
}

.risk-matrix {
  display: flex;
  flex-direction: column;
  gap: 15px;
  justify-content: center;
  flex: 1;
}

.risk-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: 1s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.r-text {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e2e8f0;
}

.r-text i {
  color: #94a3b8;
  font-size: 18px;
  width: 25px;
  text-align: center;
}

.badge {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: bold;
  transition: 0.5s;
  display: inline-block;
  min-width: 140px;
  text-align: center;
}

.badge.high {
  background: var(--danger);
  color: white;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.badge.medium {
  background: var(--warning);
  color: #0f172a;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.badge.low {
  background: var(--success);
  color: #002623;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

/* Executive Steps */
.steps-card {
  flex: 1;
  min-height: 180px;
}

.card-header {
  font-size: 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-header i {
  color: var(--primary);
}

.steps-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  overflow-y: auto;
  padding-right: 5px;
}

.steps-container::-webkit-scrollbar {
  width: 5px;
}

.steps-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.empty-steps {
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 20px;
  font-size: 14px;
}

.step-group {
  animation: slideInUp 0.4s ease forwards;
  background: rgba(0, 0, 0, 0.3);
  padding: 15px;
  border-radius: 8px;
  border-right: 3px solid var(--success);
}

.step-group h4 {
  color: #f8fafc;
  margin-bottom: 10px;
  font-size: 14px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
}

.step-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #cbd5e1;
}

.step-list li i {
  color: var(--success);
  font-size: 14px;
  margin-top: 3px;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}