/* Professional Enhanced Arabic Style - logos.css */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #2980b9;
  --success-color: #27ae60;
  --warning-color: #f39c12;
  --danger-color: #e74c3c;
  --light-bg: #f8fafc;
  --text-color: #2d3748;
  --border-radius: 12px;
  --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --gradient-primary: linear-gradient(135deg, #3498db, #2980b9);
  --gradient-success: linear-gradient(135deg, #27ae60, #219653);
  --gradient-professional: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-card: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  --gradient-sidebar: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  font-family: 'Tajawal', sans-serif;
  direction: rtl;
  text-align: right;
  min-height: 100vh;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Main Container */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 30px 20px;
  position: relative;
  overflow-x: hidden;
}

/* Professional Background Pattern */
.container::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(52, 152, 219, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(41, 128, 185, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(39, 174, 96, 0.05) 0%, transparent 50%);
  z-index: -1;
}

/* Logo Container */
.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 900px;
  gap: 40px;
  margin-bottom: 30px;
  position: relative;
}

.logo {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  padding: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--gradient-card);
  backdrop-filter: blur(10px);
  box-shadow: var(--box-shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.logo::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 100%);
  z-index: 1;
}

/* Center Logo (Highlighted) */
.logo-container .logo:nth-child(2) {
  width: 140px;
  height: 140px;
  background: var(--gradient-card);
  border: 2px solid rgba(52, 152, 219, 0.3);
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(52, 152, 219, 0.15);
}

.logo img {
  width: 85%;
  height: 85%;
  object-fit: contain;
  display: block;
  z-index: 2;
  transition: all 0.3s ease;
  filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
}

.logo:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.logo:hover img {
  transform: scale(1.1);
}

/* Program Title */
.program-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin: 20px 0 40px;
  color: var(--primary-color);
  position: relative;
  padding: 25px 50px;
  max-width: 900px;
  line-height: 1.4;
  background: var(--gradient-card);
  backdrop-filter: blur(15px);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.program-title i {
  margin-left: 15px;
  color: var(--secondary-color);
}

.program-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  right: 50%;
  transform: translateX(50%);
  width: 120px;
  height: 3px;
  background: linear-gradient(to right, #3498db, #2ecc71);
  border-radius: 2px;
}

/* Enhanced Progress Tracker */
.progress-tracker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 800px;
  margin: 30px 0 50px;
  position: relative;
  padding: 0 40px;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  z-index: 2;
}

/* Connecting Lines - Improved */
.progress-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 25px;
  right: 60%;
  width: 100%;
  height: 3px;
  background: #e0e6ed;
  z-index: 1;
  transition: all 0.3s ease;
}

.progress-step.active:not(:last-child)::after,
.progress-step.completed:not(:last-child)::after {
  background: var(--success-color);
  box-shadow: 0 0 10px rgba(39, 174, 96, 0.3);
}

.step-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e0e6ed;
  color: #64748b;
  font-size: 1.2rem;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  border: 3px solid white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
}

.progress-step.active .step-icon {
  background: var(--success-color);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.progress-step.completed .step-icon {
  background: var(--success-color);
  color: white;
}

.progress-step.completed .step-icon i {
  transform: scale(1);
}

.progress-step span {
  color: #64748b;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  transition: all 0.3s ease;
}

.progress-step.active span {
  color: var(--primary-color);
  font-weight: 700;
}

.progress-step.completed span {
  color: var(--success-color);
}

/* Enhanced Navigation Menu */
.menu {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 700px;
  gap: 20px;
  margin-bottom: 30px;
}

.nav-card {
  display: flex;
  align-items: center;
  background: var(--gradient-card);
  backdrop-filter: blur(15px);
  border-radius: var(--border-radius);
  padding: 25px;
  text-decoration: none;
  color: var(--text-color);
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.nav-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
  transition: 0.6s;
}

.nav-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: rgba(52, 152, 219, 0.3);
}

.nav-card:hover::before {
  right: 100%;
}

.nav-card.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  background: #f8f9fa;
}

.nav-card.disabled:hover {
  transform: none;
  box-shadow: var(--box-shadow);
}

.nav-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-left: 20px;
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
  transition: all 0.3s ease;
}

.nav-card:hover .nav-icon {
  transform: scale(1.05);
}

.nav-card.disabled .nav-icon {
  background: linear-gradient(135deg, #95a5a6, #7f8c8d);
  box-shadow: 0 5px 15px rgba(149, 165, 166, 0.3);
}

.nav-content {
  flex: 1;
}

.nav-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary-color);
  background: transparent !important;
}

.nav-content p {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
  background: transparent !important;
}

.nav-status {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e0e6ed;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-status.active {
  background: var(--success-color);
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2);
}

/* Session Info */
.session-info {
  width: 100%;
  max-width: 700px;
}

.info-card {
  display: flex;
  align-items: center;
  background: var(--gradient-card);
  backdrop-filter: blur(15px);
  border-radius: var(--border-radius);
  padding: 20px 25px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: var(--text-color);
  box-shadow: var(--box-shadow);
}

.info-card i {
  font-size: 1.8rem;
  margin-left: 15px;
  color: var(--secondary-color);
}

.info-card div {
  display: flex;
  flex-direction: column;
}

.info-card strong {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--primary-color);
  background: transparent !important;
}

.info-card span {
  font-size: 0.9rem;
  color: #64748b;
  background: transparent !important;
}

/* Messages */
.message {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--gradient-card);
  backdrop-filter: blur(10px);
  padding: 15px 20px;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1000;
  animation: slideIn 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-right: 4px solid var(--success-color);
}

.message.warning {
  border-right-color: var(--warning-color);
}

.message i {
  font-size: 1.2rem;
}

.message.success i {
  color: var(--success-color);
}

.message.warning i {
  color: var(--warning-color);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Fix for all text elements */
.program-title,
.nav-content h3,
.nav-content p,
.info-card strong,
.info-card span,
.progress-step span {
  background: transparent !important;
  color: inherit !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-weight: inherit !important;
}

/* Responsive Design */
@media (max-width: 992px) {
  .logo-container {
    gap: 30px;
  }
  
  .logo {
    width: 100px;
    height: 100px;
  }
  
  .logo-container .logo:nth-child(2) {
    width: 120px;
    height: 120px;
  }
  
  .program-title {
    font-size: 1.6rem;
    padding: 20px 30px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 20px 15px;
  }
  
  .logo-container {
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
  }
  
  .logo {
    width: 80px;
    height: 80px;
    padding: 10px;
  }
  
  .logo-container .logo:nth-child(2) {
    width: 100px;
    height: 100px;
    order: -1;
    width: 100%;
    max-width: 120px;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
  }
  
  .program-title {
    font-size: 1.3rem;
    margin: 10px 0 30px;
    padding: 15px 20px;
  }
  
  .progress-tracker {
    flex-direction: column;
    gap: 25px;
    padding: 0 20px;
    margin: 20px 0 40px;
  }
  
  .progress-step:not(:last-child)::after {
    display: none;
  }
  
  .step-icon {
    margin-bottom: 10px;
  }
  
  .nav-card {
    padding: 20px;
  }
  
  .nav-icon {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
  
  .nav-content h3 {
    font-size: 1.2rem;
  }
  
  .nav-content p {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 15px 10px;
  }
  
  .logo {
    width: 70px;
    height: 70px;
  }
  
  .logo-container .logo:nth-child(2) {
    max-width: 100px;
    height: 80px;
  }
  
  .program-title {
    font-size: 1.1rem;
    padding: 12px 15px;
  }
  
  .nav-card {
    flex-direction: column;
    text-align: center;
    padding: 20px 15px;
  }
  
  .nav-icon {
    margin-left: 0;
    margin-bottom: 15px;
  }
  
  .info-card {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .info-card i {
    margin-left: 0;
  }
}

/* Professional background variations */
body.background-alt {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body.background-alt .container::before {
  background: 
    radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.15) 0%, transparent 50%);
}

