/* ===========================================
   هوية جامعة بنها البصرية - Student Dashboard
   الألوان: #1871B6 أزرق | #F47920 برتقالي
============================================ */

/* ========== DASHBOARD STYLES ========== */
.student-dashboard {
  background: linear-gradient(135deg, #f8fafc 0%, #e9f1ff 100%);
  min-height: 100vh;
}

/* Header */
.dashboard-header {
  background: linear-gradient(135deg, #1871b6, #1a6ca8);
  color: white;
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(24, 113, 182, 0.2);
}

.dashboard-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.dashboard-header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ========== LOGIN & REGISTER BUTTONS ========== */
.register-btn {
    background: linear-gradient(135deg, #1871b6, #0f5c9c);
    color: white !important;
    border: none;
    padding: 10px 25px !important;;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(24, 113, 182, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.register-btn:hover {
    background: linear-gradient(135deg, #0f5c9c, #1871b6);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(24, 113, 182, 0.3);
}

.register-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(24, 113, 182, 0.2);
}

.login-btn {
    background: transparent;
    color: #1871b6 !important;
    border: 2px solid #1871b6;
    padding: 8px 22px !important;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.login-btn:hover {
    background: #1871b6;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(24, 113, 182, 0.2);
}

/* تنسيق الأيقونات داخل الأزرار */
.register-btn i,
.login-btn i {
    margin-left: 8px;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.register-btn:hover i,
.login-btn:hover i {
    transform: translateX(3px);
}

/* تنسيق خاص للزر في الهيدر */
#header .register-btn {
    margin-left: 10px;
}

#header .login-btn {
    margin-right: 10px;
}

/* Thesis Cards Animation */
.thesis-card {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* College Info Card */
.college-info-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef0ef;
}

.college-icon {
    width: 80px;
    height: 80px;
    background: rgba(24, 113, 182, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.college-icon i {
    font-size: 36px;
    color: #1871b6;
}

.college-info-card h3 {
    color: #333;
    margin-bottom: 10px;
}

.college-desc {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.college-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: #6c757d;
    font-size: 14px;
}

.college-stats i {
    margin-left: 8px;
    color: #1871b6;
}

/* Section Header */
.section-header {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    border-right: 4px solid #1871b6;
}

.section-header h3 {
    color: #333;
    margin-bottom: 10px;
}

.section-header p {
    color: #6c757d;
    margin: 0;
}

/* Thesis Excerpt */
.thesis-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Print Styles */
@media print {
    .thesis-actions,
    .sidebar,
    .navbar,
    .footer,
    .breadcrumb {
        display: none !important;
    }
    
    .thesis-title {
        font-size: 24px;
    }
    
    .thesis-section {
        page-break-inside: avoid;
    }
}

/* تنسيقات للهواتف */
@media (max-width: 992px) {
    .register-btn,
    .login-btn {
        padding: 8px 18px;
        font-size: 14px;
        margin: 5px;
    }
    
    #header .register-btn,
    #header .login-btn {
        width: auto;
        margin: 5px 0;
    }
}

@media (max-width: 768px) {
    .register-btn,
    .login-btn {
        padding: 6px 15px;
        font-size: 13px;
    }
    
    /* جعل الأزرار تأخذ العرض الكامل في الهواتف */
    .navbar .register-btn,
    .navbar .login-btn {
        width: 100%;
        text-align: center;
        margin: 8px 0;
    }
}

/* تنسيقات القائمة المنسدلة للمستخدم */
.dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 10px;
    min-width: 250px;
}

.dropdown-item {
    padding: 10px 15px;
    border-radius: 8px;
    margin: 3px 0;
    transition: all 0.2s ease;
    color: #333;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #1871b6;
    transform: translateX(5px);
}

.dropdown-item i {
    width: 20px;
    color: #1871b6;
    margin-left: 10px;
}

/* شارة الطالب */
.student-badge {
    background: #28a745;
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-right: 8px;
    font-weight: 600;
}

/* تأثير النشاط عند النقر */
@keyframes buttonClick {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.register-btn:active,
.login-btn:active {
    animation: buttonClick 0.2s ease;
}

/* تنسيق خاص للزر في حالة التمرير */
#header.scrolled .register-btn,
#header.scrolled .login-btn {
    padding: 8px 20px;
    font-size: 14px;
}

/* Cards */
.dashboard-card {
  background: white;
  border: none;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.dashboard-card .card-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  background: rgba(24, 113, 182, 0.1);
}

.dashboard-card .card-icon i {
  font-size: 2rem;
  color: #1871b6;
}

.dashboard-card.primary .card-icon {
  background: rgba(24, 113, 182, 0.15);
}

.dashboard-card.primary .card-icon i {
  color: #1871b6;
}

.dashboard-card.secondary .card-icon {
  background: rgba(244, 121, 32, 0.15);
}

.dashboard-card.secondary .card-icon i {
  color: #F47920;
}

.dashboard-card.success .card-icon {
  background: rgba(40, 167, 69, 0.15);
}

.dashboard-card.success .card-icon i {
  color: #28a745;
}

.dashboard-card.warning .card-icon {
  background: rgba(255, 193, 7, 0.15);
}

.dashboard-card.warning .card-icon i {
  color: #ffc107;
}

/* Stats Cards */
.stat-card {
  background: white;
  border: none;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1871b6;
  margin-bottom: 0.5rem;
}

.stat-text {
  color: #6c757d;
  font-size: 1rem;
  font-weight: 500;
}

/* Quick Actions */
.quick-actions {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.action-btn {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  background: #f8f9fa;
  border: 2px solid transparent;
  border-radius: 10px;
  color: #333;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.action-btn:hover {
  background: #1871b6;
  color: white;
  transform: translateX(5px);
  border-color: #1871b6;
}

.action-btn:hover i {
  color: white;
}

.action-btn i {
  font-size: 1.5rem;
  color: #1871b6;
  margin-left: 1rem;
  transition: all 0.3s ease;
}

/* Progress Section */
.progress-section {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.progress-item {
  margin-bottom: 1.5rem;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.progress-label .percentage {
  color: #1871b6;
  font-weight: 700;
}

.progress-bar-custom {
  height: 10px;
  border-radius: 5px;
  background: #e9ecef;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1871b6, #3a8fd9);
  border-radius: 5px;
  transition: width 1s ease;
}

/* Thesis Status */
.thesis-status-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.status-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-draft {
  background: rgba(108, 117, 125, 0.15);
  color: #6c757d;
}

.status-pending {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
}

.status-review {
  background: rgba(0, 123, 255, 0.15);
  color: #007bff;
}

.status-approved {
  background: rgba(40, 167, 69, 0.15);
  color: #28a745;
}

.status-rejected {
  background: rgba(220, 53, 69, 0.15);
  color: #dc3545;
}

/* Recent Activity */
.activity-timeline {
  position: relative;
  padding-right: 2rem;
}

.activity-timeline::before {
  content: '';
  position: absolute;
  right: 9px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e9ecef;
}

.activity-item {
  position: relative;
  margin-bottom: 2rem;
}

.activity-item::before {
  content: '';
  position: absolute;
  right: 0;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1871b6;
  border: 4px solid white;
  box-shadow: 0 0 0 3px rgba(24, 113, 182, 0.2);
}

.activity-time {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.activity-text {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 10px;
  border-right: 4px solid #1871b6;
}

/* Buttons */
.btn-bu-primary {
  background: linear-gradient(135deg, #1871b6, #1a6ca8);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(24, 113, 182, 0.2);
}

.btn-bu-primary:hover {
  background: linear-gradient(135deg, #1a6ca8, #1871b6);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(24, 113, 182, 0.3);
}

.btn-bu-secondary {
  background: linear-gradient(135deg, #F47920, #f36c0e);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(244, 121, 32, 0.2);
}

.btn-bu-secondary:hover {
  background: linear-gradient(135deg, #f36c0e, #F47920);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(244, 121, 32, 0.3);
}

.btn-bu-outline {
  background: transparent;
  color: #1871b6;
  border: 2px solid #1871b6;
  padding: 0.75rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-bu-outline:hover {
  background: #1871b6;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(24, 113, 182, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .dashboard-header {
    padding: 1.5rem;
  }
  
  .dashboard-header h1 {
    font-size: 1.8rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .action-btn {
    padding: 0.75rem 1rem;
  }
  
  .activity-timeline {
    padding-right: 1.5rem;
  }
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dashboard-card, .stat-card, .quick-actions, .progress-section, .thesis-status-card {
  animation: fadeInUp 0.5s ease forwards;
}

.dashboard-card:nth-child(1) { animation-delay: 0.1s; }
.dashboard-card:nth-child(2) { animation-delay: 0.2s; }
.dashboard-card:nth-child(3) { animation-delay: 0.3s; }
.dashboard-card:nth-child(4) { animation-delay: 0.4s; }

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .dashboard-card,
  .stat-card,
  .quick-actions,
  .progress-section,
  .thesis-status-card {
    background: #2d3748;
    color: #e2e8f0;
  }
  
  .action-btn {
    background: #4a5568;
    color: #e2e8f0;
  }
  
  .activity-text {
    background: #4a5568;
    color: #e2e8f0;
  }
}