/* === Portal Styles - كلية البحرين === */
:root {
    --portal-primary: #1B6AB1;
    --portal-dark: #0d3b66;
    --portal-light: #EBF5FB;
    --portal-success: #27ae60;
    --portal-warning: #f39c12;
    --portal-danger: #e74c3c;
    --portal-info: #3498db;
}

/* Portal Login */
.portal-login-wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--portal-dark) 0%, var(--portal-primary) 100%);
    padding: 40px 20px;
}

.portal-login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 40px;
    width: 100%;
    max-width: 440px;
}

.portal-login-card .logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.portal-login-card .logo-container img {
    height: 70px;
    margin-bottom: 15px;
}

.portal-login-card h3 {
    color: var(--portal-dark);
    font-weight: 700;
}

.portal-login-card .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.portal-login-card .form-control:focus {
    border-color: var(--portal-primary);
    box-shadow: 0 0 0 0.2rem rgba(27, 106, 177, 0.15);
}

.portal-login-card .btn-login {
    background: var(--portal-primary);
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    width: 100%;
    transition: all 0.3s;
}

.portal-login-card .btn-login:hover {
    background: var(--portal-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(27, 106, 177, 0.4);
}

/* Dashboard Cards */
.dashboard-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #eef2f7;
    transition: all 0.3s;
    height: 100%;
}

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

.dashboard-card .card-icon {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.dashboard-card h4 {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 8px;
}

.dashboard-card .card-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--portal-dark);
}

/* Student Info Bar */
.student-info-bar {
    background: linear-gradient(135deg, var(--portal-primary), var(--portal-dark));
    color: white;
    border-radius: 12px;
    padding: 24px 30px;
    margin-bottom: 30px;
}

.student-info-bar .info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 15px;
}

/* Portal Content Sections */
.portal-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #eef2f7;
    padding: 30px;
    margin-bottom: 30px;
}

.portal-section h4 {
    color: var(--portal-dark);
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--portal-light);
}

/* Schedule Table */
.schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
}

.schedule-table thead th {
    background: var(--portal-primary);
    color: white;
    padding: 14px 16px;
    font-weight: 600;
    font-size: 14px;
    border: none;
}

.schedule-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #eef2f7;
    font-size: 14px;
    vertical-align: middle;
}

.schedule-table tbody tr:hover {
    background: var(--portal-light);
}

.schedule-table tbody tr:last-child td {
    border-bottom: none;
}

/* Exam Table */
.exam-today {
    background: #fff3cd !important;
    border-right: 4px solid var(--portal-warning);
}

.exam-soon {
    background: #f8d7da !important;
    border-right: 4px solid var(--portal-danger);
}

/* Payment Status Badges */
.badge-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

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

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

.badge-rejected {
    background: #f8d7da;
    color: #721c24;
}

/* Certificate Status */
.cert-status {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

/* Flash Messages */
.flash-message {
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 15px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.flash-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.flash-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.flash-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.flash-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* Responsive Portal */
@media (max-width: 768px) {
    .portal-login-card { padding: 30px 20px; margin: 10px; }
    .student-info-bar { padding: 16px 20px; }
    .portal-section { padding: 20px 16px; }
    .dashboard-card { padding: 18px; }
    .dashboard-card .card-value { font-size: 22px; }
    .schedule-table { font-size: 13px; }
    .schedule-table thead th, .schedule-table tbody td { padding: 8px 10px; }
}

/* Quick Action Buttons */
.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    border-radius: 12px;
    background: white;
    border: 2px solid #eef2f7;
    text-decoration: none;
    color: var(--portal-dark);
    transition: all 0.3s;
    height: 100%;
}

.quick-action-btn:hover {
    border-color: var(--portal-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(27, 106, 177, 0.15);
    color: var(--portal-primary);
    text-decoration: none;
}

.quick-action-btn i {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--portal-primary);
}

.quick-action-btn span {
    font-size: 14px;
    font-weight: 600;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 60px;
    margin-bottom: 20px;
    color: #dee2e6;
}

.empty-state h5 {
    color: #495057;
    margin-bottom: 10px;
}

/* Registration Checkbox Cards */
.course-reg-card {
    border: 2px solid #eef2f7;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.3s;
    cursor: pointer;
}

.course-reg-card:hover {
    border-color: var(--portal-primary);
    background: var(--portal-light);
}

.course-reg-card.selected {
    border-color: var(--portal-primary);
    background: var(--portal-light);
    box-shadow: 0 2px 8px rgba(27, 106, 177, 0.15);
}

/* Print Styles */
@media print {
    .navbar, .footer, .back-to-top, .btn, .no-print { display: none !important; }
    .portal-section { box-shadow: none; border: 1px solid #ddd; }
}