:root {
    --primary: #f9a825;
    --primary-hover: #e08a00;
    --navy: #1e2a5e;
    --bg-gradient: linear-gradient(135deg, #f8f9fa 0%, #cbd5e1 100%);
    --card-bg: rgba(255, 255, 255, 0.85);
    --text-main: #1e2a5e;
    --text-muted: #475569;
    --glass-border: rgba(30, 42, 94, 0.1);
    --shadow: 0 12px 40px 0 rgba(30, 42, 94, 0.15);
}

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

body {
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    direction: rtl;
}

.container {
    width: 100%;
    max-width: 600px;
}

.registration-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow);
    animation: fadeIn 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.registration-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--navy), var(--primary), var(--navy));
}

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

h1 {
    color: var(--navy);
    text-align: center;
    margin-bottom: 8px;
    font-size: 1.8rem;
    font-weight: 700;
}

p.subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--navy);
    font-weight: 600;
}

input, select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    color: var(--navy);
    transition: all 0.3s ease;
    outline: none;
}

input:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(249, 168, 37, 0.15);
}

.btn {
    width: 100%;
    padding: 14px;
    background: var(--navy);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn:hover {
    background: #2a3a7a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 42, 94, 0.2);
}

/* Animations for dropdowns */
select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Admin Styles */
.admin-container {
    max-width: 1000px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.action-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px 15px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--glass-border);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.action-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(30, 42, 94, 0.12);
    border-color: var(--primary);
}

.action-card .icon {
    font-size: 2.5rem;
}

.action-card span {
    font-weight: 700;
    color: var(--navy);
    font-size: 1rem;
}

.admin-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    background: var(--navy);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.admin-nav a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background 0.3s;
}

.admin-nav a:hover, .admin-nav a.active {
    background: var(--primary);
    color: white;
}

.stat-card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.table-container {
    overflow-x: auto;
}

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

th {
    text-align: right;
    padding: 15px 12px;
    color: var(--navy);
    font-weight: 700;
    border-bottom: 2px solid var(--primary);
    background: rgba(249, 168, 37, 0.05);
}

/* Landing Page Specific Styles */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(rgba(30, 42, 94, 0.9), rgba(30, 42, 94, 0.7)), url('../image/hero-bg.jpg'); /* Background for later if needed */
    background-size: cover;
    background-position: center;
    color: white;
    border-radius: 30px;
    margin-bottom: 50px;
    box-shadow: 0 10px 40px rgba(30, 42, 94, 0.2);
}

.hero h1 {
    color: var(--primary);
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 40px;
    font-weight: 700;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.course-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.course-card:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(30, 42, 94, 0.1);
}

.course-card .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.course-card h4 {
    color: var(--navy);
    font-size: 1.1rem;
    font-weight: 600;
}

.info-banner {
    background: var(--navy);
    color: white;
    padding: 40px;
    border-radius: 24px;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.info-banner::after {
    content: '🏆';
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 8rem;
    opacity: 0.1;
}

.info-banner h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.info-banner p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
/* Report Styles */
@media print {
    .btn, .admin-nav, .registration-card::before, .subtitle, h1 {
        display: none !important;
    }
    body {
        background: white;
        padding: 0;
    }
    .registration-card {
        box-shadow: none;
        border: none;
        padding: 0;
        width: 100%;
        max-width: 100%;
    }
    table {
        font-size: 10px;
    }
    th, td {
        border: 1px solid #ddd;
    }
}
