
               :root {
            --primary: #00172D;
            --secondary: #003A5D;
            --accent: #FFD700;
            --text: #2D3748;
            --light: #F8F9FA;
            --success: #28A745;
            --gradient: linear-gradient(135deg, #00172D 0%, #003A5D 100%);
            --glass: rgba(255, 255, 255, 0.9);
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Cairo', sans-serif;
        }

        body {
            background: var(--light);
            min-height: 100vh;
        }

        /* تصميم الهيدر المعدل */
        .dashboard-header {
            background: var(--gradient);
            padding: 1rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
            position: relative;
            z-index: 100;
        }
  
  .brand-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}


        .logo-text {
            font-size: 2rem;
            font-weight: 700;
            color: white;
            position: relative;
        }

        .k-letter {
            color: var(--accent);
            transform: rotate(-5deg);
            display: inline-block;
            text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
        }
        
        
        
        /* تصميم جديد لقائمة المستخدم */
        .user-menu .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
 // background: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 4px;
  z-index: 1000;
}

        .user-display {
            color: white;
            display: flex;
            align-items: center;
            gap: 10px;
        }

       .avatar-wrapper {
  position: relative;
  display: inline-block;
}

.user-avatar,
.default-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #e0e0e0;  /* لون خلفية للخريج */
  display: flex;
  align-items: center;
  justify-content: center;
}

.default-avatar i {
  font-size: 1.5rem;
  color: #777;
}
.avatar2-wrapper {
  position: relative;
  display: inline-block;
}
.avatar2-caret {
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: #555;
  background: #fff;
  padding: 1px;
  border-radius: 50%;
  box-shadow: 0 0 2px rgba(0,0,0,0.2);
}

        .dropdown2-menu {
  position: absolute;
  top: calc(100% + 5px); /* إضافة 5px فاصل بسيط */
  right: 0;
  background: white;
  min-width: 200px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  display: none;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s ease;
  z-index: 1000;
  margin: 0;
  padding: 8px 0;
}

.dropdown-menu.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

        .meta-item {
          //  background-color:warning;// rgba(0,55,93,0.1);
            color: #fff;
            padding: 0.8rem 1.5rem;
            border-radius: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        /* بقية التصميمات كما هي مع تعديل الهوامش */
        .main-content {
            margin-right: 280px;
            padding: 2rem;
            min-height: calc(100vh - 80px);
        }

        @media (max-width: 768px) {
            .main-content {
                margin-right: 0;
                padding: 1rem;
            }
            
            .student-info-card {
                margin: 1rem;
                padding: 1.5rem;
            }
            
            .student-name {
                font-size: 1.5rem;
            }
        }

        .profile-card {
            background: var(--glass);
            backdrop-filter: blur(5px);
            border-radius: 20px;
            padding: 2rem;
            box-shadow: 0 8px 30px rgba(0,0,0,0.05);
            margin-bottom: 2rem;
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: 2rem;
            align-items: center;
            border: 1px solid rgba(255,255,255,0.3);
            color: #000;
        }

        .avatar-section {
            text-align: center;
            position: relative;
           
        }

        .avatar-preview {
            width: 200px;
            height: 200px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid var(--accent);
            margin-bottom: 1rem;
            box-shadow: 0 8px 25px rgba(0,0,0,0.1);
        }

        .upload-btn {
            background: yellow;//var(--accent);
            color: var(--primary);
            border: none;
            padding: 0.8rem 1.5rem;
            border-radius: 25px;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 0 auto;
        }

        .upload-btn:hover {
            transform: translateY(-2px);
            background-color:green;
            box-shadow: 0 5px 15px rgba(255,215,0,0.3);
        }
       .upload-btn:click{
           background-color:green;
       }

        .edit-form {
            background: rgba(25,25,25,0.95);
            padding: 2rem;
            border-radius: 15px;
            box-shadow: 0 8px 30px rgba(0,0,0,0.05);
        }

        .form-input {
            width: 100%;
            padding: 0.8rem;
            border: 2px solid #e2e8f0;
            border-radius: 8px;
            font-size: 1rem;
            transition: all 0.3s;
            background: rgba(255,255,255,0.8);
        }

        .form-input:focus {
            border-color: var(--accent);
            box-shadow: 0 0 8px rgba(255,215,0,0.2);
        }

        .notes-section {
            background: var(--glass);
            padding: 2rem;
            border-radius: 15px;
            margin-top: 2rem;
            backdrop-filter: blur(5px);
        }

        .note-card {
            background: rgba(255,255,255,0.9);
            padding: 1.5rem;
            border-left: 4px solid var(--accent);
            margin: 1rem 0;
            border-radius: 8px;
            transition: transform 0.3s;
        }

        .note-card:hover {
            transform: translateX(10px);
        }
        
     
/* زر القائمة المتحرك */
.mobile-menu-trigger {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1100;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
    cursor: pointer;
}
.mobile-menu-trigger:active,
.mobile-menu-trigger:focus {
    background-color: blue;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    transition: background-color 0.2s ease;
}



        
        @media (max-width: 768px) {

            .main-content {
                margin-right: 0;
                padding: 1rem;
                color: #000;
            }

            .profile-card {
                grid-template-columns: 1fr;
                color: #000;
            }
        }

        /* أنيميشن متقدمة */
        @keyframes float {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
            100% { transform: translateY(0px); }
        }

        .floating {
            animation: float 3s ease-in-out infinite;
        }
        
                .logo-text .k-letter {
      color: #0d1b2a;
      background: #FFD700;
      padding: 0 4px;
      border-radius: 4px;
      box-shadow: 0 0 8px rgba(255, 217, 0, 0.6);
      transform: rotate(-5deg);
      position: relative;
    }
    .logo-text .k-letter::after {
      content: "\f3ed";
      font-family: 'Font Awesome 6 Free';
      font-weight: 900;
      position: absolute;
      top: -8px;
      right: -8px;
      font-size: 0.8rem;
      color: #4299e1;
    }
    
.logo-wrapper {
  text-align: center;
}

.logo-text {
  font-size: 2rem;
  font-weight: bold;
  color: #ffffff;
}

/* الشعار الفرعي بأسفل الشعار - نسخة محسنة */
.logo-slogan {
  display: block;
  margin: 12px auto 0;
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: 2px;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid #83c5be;
  width: 0;
  position: relative;
  text-shadow: 0 0 8px rgba(131, 197, 190, 0.4);

  animation: typing 3s steps(30, end) forwards, blink-caret 0.7s step-end infinite;
}

@keyframes lightning-strike {
  0% {
    opacity: 1;
  }
  10% {
    opacity: 0.4;
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}
.logo-slogan::after {
  content: '';
  position: absolute;
  top: 0;
  right: 100%; /* بداية من اليسار */
  width: 60px;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8) 30%,
    rgba(168, 218, 220, 0.9) 50%,
    transparent 70%
  );
  animation: lightning-flash 0.6s cubic-bezier(0.4, 0, 0.6, 1) 3s forwards;
}

@keyframes lightning-flash {
  0% {
    right: 100%; /* بداية من اليسار */
    opacity: 1;
  }
  70% {
    opacity: 0.8;
  }
  100% {
    right: -60px; /* ينتهي إلى أقصى اليمين */
    opacity: 0;
  }
}

/* حركة الكتابة */
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

/* حركة المؤشر المعدلة */
@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: #83c5be; }
}

/* تأثير التوهج الدائم */
@keyframes glow {
  0%, 100% { text-shadow: 0 0 8px rgba(131, 197, 190, 0.4); }
  50% { text-shadow: 0 0 15px rgba(131, 197, 190, 0.8), 0 0 20px rgba(255, 255, 255, 0.3); }
}

/* تأثير القطرة المائية للحرف K */
.k-letter {
  display: inline-block;
  font-weight: 900;
  position: relative;
  transform-origin: center;
  animation: 
    k-drop 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    k-glow 2s ease-in-out 1.2s infinite;
  text-shadow: 0 0 12px rgba(131, 197, 190, 0.5);
  color: #a8dadc;
}

@keyframes k-drop {
  0% {
    transform: translateY(-100vh) rotateX(90deg);
    opacity: 0;
    filter: blur(10px);
  }
  70% {
    transform: translateY(10px) rotateX(-10deg);
    opacity: 1;
    filter: blur(0);
  }
  85% {
    transform: translateY(-5px) rotateX(5deg);
  }
  100% {
    transform: translateY(0) rotateX(0deg);
  }
}

@keyframes k-glow {
  0%, 100% {
    text-shadow: 0 0 12px rgba(131, 197, 190, 0.5);
    filter: brightness(1);
  }
  50% {
    text-shadow: 0 0 20px rgba(131, 197, 190, 0.9), 0 0 30px rgba(255, 255, 255, 0.4);
    filter: brightness(1.2);
  }
}

/* تأثير خلفية ديناميكية */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, 
    rgba(41, 95, 121, 0.8) 0%,
    rgba(12, 36, 56, 0.9) 100%);
  z-index: -1;
  animation: background-pulse 12s ease-in-out infinite;
}

@keyframes background-pulse {
  0%, 100% {
    opacity: 0.9;
    filter: hue-rotate(0deg);
  }
  50% {
    opacity: 0.95;
    filter: hue-rotate(15deg) contrast(1.1);
  }
}
  .main-content {
    padding: 2rem;
    font-family: 'Cairo', sans-serif;
    background-color: #f9f9fb;
  }
/* زر اختيار الملف */
.tawkid-upload-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #0d6efd;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.tawkid-upload-button:hover {
  background-color: #0b5ed7;
}
.tawkid-upload-button:active {
  background-color: #0a58ca;
  transform: scale(0.98);
}

/* زر الحفظ */
.save-btn {
  background-color: #198754;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.save-btn:hover {
  background-color: green;
}
.save-btn:active {
  background-color: blue;
  transform: scale(0.98);
}
  .student-info-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    transition: 0.3s;
  }

  .student-name {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #2c3e50;
  }

  .student-name-en {
    display: block;
    font-size: 1.1rem;
    color: #6c757d;
    margin-top: 0.25rem;
  }

  .student-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .meta-item {
    flex: 1 1 30%;
    background: #eef3f7;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: #34495e;
  }

  .meta-item i {
    margin-left: 0.5rem;
    color: #2980b9;
  }

  .profile-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    margin-bottom: 2rem;
  }

  .tawkid-avatar-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    
  }

  .avatar-preview-container {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #2980b9;
    align-items: center;
    margin-right:50px;
  }

  .avatar-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .upload-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
    cursor: pointer;
  }

  .avatar-preview-container:hover .upload-overlay {
    opacity: 1;
  }

  .upload-controls {
    display: flex;
    flex-direction: column;
  }

  .tawkid-upload-button {
    margin-bottom: 0.5rem;
  }

  .info-section {
    margin-top: 2rem;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .form-label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #fff;
  }

  .form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
  }

  .save-btn {
    background-color: #2980b9;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
  }

  .notes-section {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  }

  .section-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #2c3e50;
  }

  .note-card {
    background: #eef3f7;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .note-date {
    font-size: 0.8rem;
    color: #6c757d;
  }

  @media (max-width: 768px) {
    .meta-item {
      flex: 1 1 100%;
    }

    .tawkid-avatar-card {
      flex-direction: column;
      align-items: flex-start;
    }
  }
  
 

.custom-swal-popup {
    max-width: 95% !important;
    font-family: 'Tajawal', sans-serif;
}

.payment-alert-container {
    direction: rtl;
    padding: 15px;
}

.alert-main-header {
    color: #2ecc71;
    font-size: 1.5em;
    text-align: center;
    margin-bottom: 10px;
}

.alert-sub-header {
    color: #666;
    text-align: center;
    margin-bottom: 20px;
}

.gateway-header {
    font-weight: bold;
    color: #34495e;
    margin: 15px 0;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
}

.gateway-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin: 10px 0;
    background: #f8f9fa;
    border-radius: 8px;
    transition: 0.3s;
}

.gateway-item:hover {
    background: #f1f2f6;
    transform: translateX(5px);
}

.gateway-icon {
    width: 30px;
    color: #3498db;
    margin-left: 10px;
}

.gateway-name {
    flex-grow: 1;
    color: #2c3e50;
    font-weight: 500;
}

.gateway-info {
    background: #e3f2fd;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9em;
}

.print-btn {
    background: #27ae60;
    color: white;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    margin-top: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.print-btn:hover {
    background: #219a52;
}

@media print {
    body * {
        visibility: hidden;
    }
    .custom-swal-popup, .custom-swal-popup * {
        visibility: visible;
    }
    .custom-swal-popup {
        position: absolute;
        left: 0;
        top: 0;
        box-shadow: none;
    }
}

.gateway-item {
    cursor: pointer;
    transition: transform 0.2s;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin: 10px 0;
    display: flex;
    align-items: center;
}

.gateway-item:hover {
    transform: translateX(5px);
    border-color: #3498db;
}

.gateway-icon {
    font-size: 24px;
    margin-left: 15px;
    color: #2c3e50;
}

.gateway-info {
    flex-grow: 1;
}

.gateway-name {
    font-weight: bold;
    color: #2c3e50;
    display: block;
}

.gateway-account {
    color: #7f8c8d;
    font-size: 0.9em;
}
 
.payment-info-container {
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.payment-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.payment-table th, 
.payment-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: center;
}

.payment-table th {
    background-color: #f8f9fa;
}

.status-paid { color: #28a745; }
.status-pending { color: #ffc107; }
.status-failed { color: #dc3545; }

.no-payments {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}


.notification-card {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.notification-card.unread {
    border-left-color: #007bff;
    background: #f8f9fa;
}

.notification-header {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.sender {
    font-weight: 500;
    color: #333;
}

.date {
    margin-left: auto;
    color: #666;
    font-size: 0.9em;
}

.mark-read-form {
    margin-left: 15px;
}

.mark-read-btn {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.2s;
}

.mark-read-btn:hover {
    background: rgba(0,123,255,0.1);
}

.notification-body {
    padding: 15px;
}

.notification-body h4 {
    margin: 0 0 10px;
    color: #222;
    font-size: 1.1em;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-state i {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #ccc;
}


/* أنماط الخط الزمني */
.issuance-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.timeline-stage {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
}

.timeline-stage.active {
    border-top: 3px solid #007bff;
}

.stage-badge {
    width: 40px;
    height: 40px;
    background: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -30px auto 15px;
    font-weight: bold;
}

.timeline-stage.active .stage-badge {
    background: #007bff;
    color: white;
}

/* أنماط التنبيهات */
.status-alert {
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-alert.info {
    background: #e2f0ff;
    border-left: 4px solid #007bff;
}

.status-alert.warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.status-alert.success {
    background: #d4edda;
    border-left: 4px solid #28a745;
}

.pay-now-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.2s;
}

.pay-now-btn:hover {
    transform: translateY(-2px);
}

        .student-notes-wrapper {
            background: #fff;
            border: 1px solid #ccd0d4;
            padding: 20px;
            margin-top: 20px;
        }

        .notes-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .note-card {
            border-left: 4px solid #0073aa;
            margin-bottom: 15px;
            padding: 15px;
            background: #f8f9fa;
        }

        .note-card.unread {
            border-color: #dc3545;
        }

        .note-meta {
            display: flex;
            gap: 15px;
            align-items: center;
            margin-bottom: 10px;
        }

        .mark-read-btn {
            margin-left: auto;
            cursor: pointer;
            background: none;
            border: none;
            color: #28a745;
        }

        .student-notes-modal {
            display: none;
            position: fixed;
            z-index: 9999;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
        }

        .modal-content {
            background: #fff;
            margin: 5% auto;
            padding: 20px;
            width: 50%;
            border-radius: 3px;
        }

.payment-timeline {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
    padding: 2rem;
    margin: 2rem 0;
}

.payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f5f6fa;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.payment-status {
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
}

.payment-status.pending {
    background: #fff3cd;
    color: #856404;
}

.payment-status.paid {
    background: #d4edda;
    color: #155724;
}

.payment-details-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.payment-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    padding: 10px;
    background: white;
    border-radius: 8px;
}

.detail-label {
    color: #6c757d;
}

.detail-value {
    font-weight: 600;
    color: #2c3e50;
}

.amount {
    color: #27ae60;
    font-size: 1.2em;
}

.timeline-steps {
    position: relative;
    padding-left: 30px;
}

.timeline-steps::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 0;
    height: 100%;
    width: 2px;
    background: #e0e0e0;
}

.step {
    display: flex;
    margin-bottom: 2rem;
    position: relative;
}

.step-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    z-index: 2;
}

.step.active .step-icon {
    background: #3498db;
    color: white;
}

.step-content {
    flex: 1;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
}

.pay-now-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pay-now-btn:hover {
    transform: translateY(-2px);
    background: #219a52;
}

.payment-instructions {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .payment-details-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-steps {
        padding-left: 15px;
    }
}

/* التنسيق العام */
.payment-timeline {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 10px;
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
    .payment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .payment-details-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .detail-item {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.8rem;
    }
    
    .timeline-steps {
        padding-left: 20px;
    }
    
    .step {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 1.5rem;
    }
    
    .step-icon {
        margin-bottom: 0.5rem;
        position: absolute;
        left: -24px;
    }
    
    .step-content {
        width: 100%;
        margin-left: 0;
        padding: 1rem;
    }
    
    .pay-now-btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
    
    .payment-instructions ul {
        padding-left: 1rem;
    }
}

@media (max-width: 480px) {
    .payment-title {
        font-size: 1.3rem;
    }
    
    .payment-status {
        font-size: 0.9rem;
        padding: 6px 15px;
    }
    
    .detail-label,
    .detail-value {
        font-size: 0.9rem;
    }
    
    .step-content h4 {
        font-size: 1rem;
    }
    
    .step-content p {
        font-size: 0.85rem;
    }
}


/* أنماط الشريط الزمني */
.payment-deadline {
    background: #fff8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #ffe3c4;
}

.deadline-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.deadline-header h3 {
    margin: 0;
    color: #d35400;
    font-size: 1.2em;
}

.timer {
    display: flex;
    gap: 15px;
    font-weight: bold;
    color: #e67e22;
    margin-left: auto;
}

.timer span {
    background: #fff;
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid #f39c12;
    color:#000;
}

.time-progress {
    margin-top: 1rem;
}

.progress-bar {
    height: 12px;
    background: #f5d6b3;
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #f39c12;
    width: 0%;
    transition: width 0.5s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #fff;
    opacity: 0.5;
}

/* تعديلات للجوال */
@media (max-width: 768px) {
    .deadline-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .timer {
        width: 100%;
        justify-content: space-between;
        gap: 5px;
    }
    
    .timer span {
        flex: 1;
        text-align: center;
        padding: 5px;
        font-size: 0.9em;
    }
}
