
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;500;700&family=Roboto+Condensed:wght@300;500;700&display=swap');

:root {
    --primary-color: #1a237e;
    --accent-color: #FFD700;
    --gradient-primary: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    --gradient-accent: linear-gradient(45deg, #FFD700 0%, #FFA000 100%);
    
}
body.login {
//  display: flex;
  flex-direction: column;
 // min-height: 100vh;
 max-height: 100vh;
  margin: 0;
  background-color: #f4f6f8;
}

body.login #login {
  flex: 1;
 // display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 380px;
  max-height: auto;
  padding: 30px;
  margin: 0 auto;
  box-sizing: border-box;
}

body.login h1 a {
  display: block;
  width: 100%;
  height: 80px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-bottom: 20px;
}

body.login form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  border: 1px solid #dfe3e8;
  padding: 20px;
  background-color: #ffffff;
}

body.login input[type="text"],
body.login input[type="password"] {
  padding: 12px;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  font-size: 15px;
  background-color: #f9fafb;
  transition: border-color 0.3s;
  width: 100%;
  box-sizing: border-box;
}

body.login input[type="text"]:focus,
body.login input[type="password"]:focus {
  border-color: #0073aa;
  background-color: #ffffff;
  outline: none;
}

body.login input[type="submit"] {
  background-color: #0073aa;
  color: white;
  padding: 12px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

body.login input[type="submit"]:hover {
  background-color: #005f8d;
}

body.login .forgetmenot {
  display: flex;
  align-items: center;
  font-size: 14px;
}

body.login .forgetmenot input {
  margin-right: 5px;
}

body.login #nav,
body.login #backtoblog {
  text-align: center;
  font-size: 13px;
  margin-top: 15px;
}

body.login #nav a,
body.login #backtoblog a {
  color: #0073aa;
  text-decoration: none;
}

body.login #nav a:hover,
body.login #backtoblog a:hover {
  text-decoration: underline;
}

/* language switcher */
body.login .language-switcher {
  max-width: 480px;
  margin: 20px auto 10px;
  padding: 15px;
}

body.login .language-switcher select,
body.login .language-switcher input[type="submit"] {
  padding: 10px;
  font-size: 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-right: 10px;
}

/* Footer Styles */
.custom-login-footer {
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
  padding: 15px 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px;
  color: #333;
  direction: rtl;
}

.custom-login-footer .footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  max-width: 1000px;
  margin: auto;
}

.custom-login-footer .version-badge {
  background-color: #ffc107;
  color: #000;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 5px;
}

.custom-login-footer .company-logo img {
  height: 40px;
  width: auto;
}

@media (max-width: 600px) {
  .custom-login-footer .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .custom-login-footer .company-logo img {
    margin-top: 10px;
  }
}




* {
    
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Cairo', sans-serif;
}
.logo-image {
    background-image: url('<?php echo get_stylesheet_directory_uri(); ?>/images/TaizUniversity.png');
    width: 104px;
    height: 84px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-top: 200px;
    padding-bottom: 0;
    
}

.char {
  display: inline-block;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

/* تخصيص ألوان الحروف */
.t { color: #0077b6; }   /* أزرق */
.a { color: #00b4d8; }   /* أزرق سماوي */
.w { color: #90e0ef; }   /* أزرق فاتح */
.k { color: #007f5f; }   /* أخضر داكن */
.i { color: #80ed99; }   /* أخضر فاتح */
.d { color: #ffc300; }   /* أصفر */

/* تأثير طفيف عند تمرير الماوس */
.char:hover {
  transform: translateY(-8px);
}

body.login {
    background: linear-gradient(135deg, rgba(240,242,245,0.98) 0%, rgba(217,226,236,0.98) 100%),
                repeating-conic-gradient(from 30deg, 
                    rgba(26,35,126,0.03) 0deg 15deg, 
                    transparent 15deg 30deg),
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" opacity="0.06"><path d="M37.9 78.1l24.8-24.8 24.8 24.8 24.8-24.8 24.8 24.8v24.8l-24.8 24.8-24.8-24.8-24.8 24.8-24.8-24.8V78.1z" fill="%231a237e"/></svg>');
    background-blend-mode: multiply;
    display: block;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    justify-content: center;
   // padding: 20px;
           
            width: 100%;
            max-width: 100%;
            margin: 0;
            padding: 0;
      
}
.login-card select,
.login-card .language-switcher {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
}
        
        
/* تحسينات الهيدر */
#login-header {
    background: var(--gradient-primary);
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
   // border-radius: 15px;
    margin-bottom: 1rem;
    min-height:180px;
}

/* تصميم الشعار المعدل */
.logo-main {
    display: flex;
    align-items: center;
    gap: 0.3rem; /* تقريب I من K */
    direction: ltr;
}

.logo-main::after {
  content: '';
  position: absolute;
  width: 120%;
  height: 150%;
  background: radial-gradient(circle at 50% 0%, rgba(255,215,0,0.2) 0%, transparent 60%);
  pointer-events: none;
}

.logo-text {
    font-family: 'Cairo', sans-serif;
    font-size: 2.8rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    position: relative;
}
/* تحسين حرف K المميز */
.custom-i {
    position: relative;
    width: 40px;
    height: 60px;
    margin: 0 5px;
    transform-style: preserve-3d;
    animation: iconFloat 3s ease-in-out infinite;
}

.custom-i::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #fcd34d, #facc15); /* لون ذهبي يوحي بالمال */
    clip-path: polygon(20% 0%, 80% 0%, 100% 30%, 100% 70%, 80% 100%, 20% 100%, 0% 70%, 0% 30%);
    border: 2px solid #d97706;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.custom-i::after {
    content:'🧾';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px #000;
    animation: coinSpin 4s linear infinite;
}



.custom-t {
    position: relative;
    width: 40px;     /* العرض الإجمالي للحرف */
    height: 60px;    /* الارتفاع الإجمالي للحرف */
    
    margin: 0 5px;
    display: inline-block;
    animation: changeColor 10s linear infinite; /* تغيير الألوان كل 10 ثوان */
}

/* الشريط العلوي للحرف T */
.custom-t .top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px; /* ارتفاع الشريط العلوي */
    background: linear-gradient(145deg, #fcd34d, #facc15);
    border: 2px solid #d97706;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 0 10px rgba(255,215,0,0.4);
    animation: changeColor 10s linear infinite; /* تغيير الألوان بشكل دوري */
}

/* الشريط العمودي للحرف T */
.custom-t .vertical-bar {
    position: absolute;
    top: 20px; /* بدء العمود بعد الشريط العلوي */
    left: 50%;
    transform: translateX(-50%);
    width: 12px;   /* عرض العمود */
    height: 38px;  /* ارتفاع العمود المتبقي */
    background: linear-gradient(145deg, #fcd34d, #facc15);
    border: 2px solid #d97706;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 0 10px rgba(255,215,0,0.4);
    animation: changeColor 10s linear infinite; /* تغيير الألوان بشكل دوري */
}

/* رمز العملة يتم عرضه فوق الحرف */
.custom-t::after {
    content: '﷼';  /*  
    داله برمز آخر إذا رغبت */
    position: absolute;
    //top: 50%;
    left: 50%;
    top:-10px;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px #000;
    animation: coinSpin 4s linear infinite;
}

/* حركة الخفة العامة (مثال: حركة طفيفة لأعلى وأسفل) */
@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* حركة دوران رمز العملة */
@keyframes coinSpin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* تغيير الألوان كل 10 ثواني */
@keyframes changeColor {
    0% {
        background: linear-gradient(145deg, #fcd34d, #facc15);
        border-color: #d97706;
        box-shadow: 0 0 10px rgba(255,215,0,0.4);
    }
    25% {
        background: linear-gradient(145deg, #a3e635, #84cc16);
        border-color: #65a30d;
        box-shadow: 0 0 10px rgba(163, 230, 53, 0.4);
    }
    50% {
        background: linear-gradient(145deg, #3b82f6, #2563eb);
        border-color: #1d4ed8;
        box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
    }
    75% {
        background: linear-gradient(145deg, #9333ea, #7e22ce);
        border-color: #6b21a8;
        box-shadow: 0 0 10px rgba(147, 51, 234, 0.4);
    }
    100% {
        background: linear-gradient(145deg, #fcd34d, #facc15);
        border-color: #d97706;
        box-shadow: 0 0 10px rgba(255,215,0,0.4);
    }
}


#currency-symbol {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    filter: drop-shadow(0 3px 2px rgba(0,0,0,0.3));
    animation: fadeInOut 10s infinite;
    transition: all 0.5s ease;
}

/* حركة دخول وخروج */
@keyframes fadeInOut {
    0% { opacity: 0; transform: translateX(-50%) scale(0.5); }
    10% { opacity: 1; transform: translateX(-50%) scale(1); }
    90% { opacity: 1; transform: translateX(-50%) scale(1); }
    100% { opacity: 0; transform: translateX(-50%) scale(0.5); }
}
/* تطوير تأثير الطفو */
@keyframes iconFloat {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

/* إضافة تأثير وميض للعملة */
@keyframes coinGlow {
  0% { opacity: 0.9; }
  50% { opacity: 1; filter: drop-shadow(0 0 5px #ffd700); }
  100% { opacity: 0.9; }
}

.custom-i::after {
  animation: 
    coinSpin 4s linear infinite,
    coinGlow 1.5s ease-in-out infinite;
}
  
/* تحسين السلوجن المتحرك */
.system-slogan {
    position: absolute;
    bottom:-32px;
    right: 0;
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    letter-spacing: 1px;
    animation: sloganSlide 1.5s ease-out forwards;
    direction: rtl;
    
    
}
.custom-login-slogan {
    display: inline-block;
    max-width: 100%;
    white-space: normal; /* يسمح بكسر السطر */
    word-break: break-word; /* يكسر الكلمة إذا احتاج */
    line-height: 1.2; /* تصغير المسافة بين السطرين */
    font-size: 0.9rem;
    overflow: hidden; /* يمنع زيادة الحجم */
    text-align: center; /* لجعل السطرين متوسّطين */
    direction: ltr;
}



@keyframes sloganSlide {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.system-slogan span {
    font-weight: 700;
    color: var(--accent-color);
    position: relative;
    direction: rtl;
   
}

.system-slogan span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    animation: lineExpand 1s 0.5s forwards;
}

@keyframes lineExpand {
    from { width: 0; }
    to { width: 100%; }
}

/* تحسين زر العضوية */
.membership-link {
    color: var(--accent-color) !important;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}

.membership-link:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(255,215,0,0.3);
}

/* تحسينات الفورم */
.login form {
    max-width: 800px; /* بدلاً من 500px */
    width: 95%; /* بدلاً من 90% */
    margin: 2rem auto !important;
    padding: 3rem !important; /* بدلاً من 2.5rem */
    background: rgba(255,255,255,0.98) !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1) !important;
    position: relative;
    z-index: 1;
}


.login #nav,
.login #backtoblog {
    text-align: center;
    margin: 1.5rem auto;
    padding: 0 20px;
}

/* تحسينات الاستجابة */
@media (max-width: 782px) {
    #login-header {
       // padding: 1.2rem;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
        min-height: 150;
       // top:50px;
    }
    
    .logo-text {
        font-size: 2rem;
        flex-direction: row;
    }
    
    .custom-i {
        width: 20px;
        height: 50px;
        margin: 0 5px;
    }
    
    .system-slogan {
        position: static;
        margin-top: 1.5rem;
        text-align: center;
        font-size: 0.8rem;
        margin-right:-40px;
         direction: rtl;
    }
    
    .membership-link {
        padding: 0.6rem 1rem;
        font-size: 1rem;
    }
    
    .login form {
        margin-top: 1rem !important;
        padding: 1.5rem !important;
    }
}

@media (min-width: 1200px) {
    body.login {
        width: 100%;
            max-width: 100%;
            margin: 0;
            padding: 0;
    }
}

/* إضافات تصميمية للعداد */
.trial-counter {
    position: relative;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(5px);
}

.countdown-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.days {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 8px rgba(255, 165, 0, 0.3);
}

.label {
    font-size: 0.8rem;
    margin-top: -5px;
    opacity: 0.8;
}

.expired-message {
    color: #ff4444;
    font-weight: bold;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.8; }
}

@media (max-width: 768px) {
    .trial-counter {
        order: 2;
        width: 100%;
        margin: 8px 0;
    }
    body.login{
       
        width: 100%;
            max-width: 100%;
            margin: 0;
            padding: 0;
    }
    .days {
        font-size: 1.4rem;
    }
}
    .sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(0, 23, 45, 0.95) 0%, rgba(0, 58, 93, 0.95) 100%);
    backdrop-filter: blur(8px);
    padding: 12px 24px;
    z-index: 1000;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    color: #FFFFFF;
    font-family: 'Cairo', sans-serif;
}

.version-badge {
    background: rgba(255, 215, 0, 0.15);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.copyright-text {
    font-size: 0.9rem;
    opacity: 0.9;
}

.company-logo img {
    height: 28px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.company-logo:hover img {
    opacity: 1;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .version-badge {
        order: 1;
    }
    
    .copyright-text {
        order: 3;
        font-size: 0.8rem;
    }
    
    .company-logo {
        order: 2;
    }
}
.logo-container {
  position: relative;
  padding: 1.5rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.main-text {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 3.5rem;
  font-weight: bold;
  background: linear-gradient(45deg, #007bff, #00a8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  text-transform: uppercase;
}

.main-text::before,
.main-text::after {
  content: "<>";
  color: #00a8ff;
  font-size: 2.2rem;
  position: absolute;
  opacity: 0.8;
}

.main-text::before {
  left: -1.5em;
  top: 0;
}

.main-text::after {
  right: -1.5em;
  bottom: 0;
}

.sub-text {
  font-family: 'Tahoma', sans-serif;
  font-size: 1.2rem;
  color: #333;
  margin-top: 0.5rem;
  text-align: center;
}

.tech-effect {
  position: absolute;
  width: 100%;
  height: 100%;
  background: 
    repeating-linear-gradient(
      45deg,
      transparent 0px,
      transparent 5px,
      rgba(0,168,255,0.1) 5px,
      rgba(0,168,255,0.1) 10px
    );
  pointer-events: none;
}

.binary-code {
  position: absolute;
  color: rgba(0,168,255,0.15);
  font-size: 0.8rem;
  font-family: 'Consolas';
  white-space: nowrap;
  animation: moveCode 20s linear infinite;
}

@keyframes moveCode {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.logo-container:hover .main-text::before,
.logo-container:hover .main-text::after {
  transform: scale(1.2);
  transition: all 0.3s ease;
}

//from hear header section

               :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;
            direction: ltr;
        }

        .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;
    }
}




