﻿@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;800&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --glass-bg: rgba(255, 255, 255, 0.90);
    --glass-border: rgba(255, 255, 255, 0.4);
    --text-dark: #2d3436;
    --text-light: #636e72;
    --accent: #6c5ce7;
    --success: #00b894;
    --danger: #d63031;
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background: var(--primary-gradient);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.8;
    background-size: 200% 200%;
    animation: gradientBG 15s ease infinite;
    direction: rtl;
    text-align: right;
    display: flex;
    flex-direction: column;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    padding: 0;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: 0.3s;
    font-size: 1.05rem;
}

    nav a:hover {
        color: #fff;
        text-shadow: 0 0 10px white;
    }

.container {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 20px;
    flex: 1;
    width: 100%;
}

.hero {
    text-align: center;
    margin-bottom: 4rem;
    color: #fff;
    padding: 2rem 0;
}

.small-hero {
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 30px;
}

.badge {
    background: var(--success);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.hero-actions {
    margin-top: 30px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    padding: 2rem;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .glass-card:hover {
        transform: translateY(-5px);
    }

    .glass-card::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 5px;
        background: linear-gradient(90deg, #6c5ce7, #a29bfe);
    }

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 4rem;
}

.stat-box {
    text-align: center;
    color: white;
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
    font-family: Arial, sans-serif;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

.news-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 10px;
    gap: 10px;
}

.no-border {
    border: none;
}

.news-date {
    color: var(--accent);
    font-weight: bold;
    font-size: 0.9rem;
    direction: ltr;
}

.btn {
    display: inline-block;
    padding: 10px 30px;
    border-radius: 50px;
    background: linear-gradient(45deg, #6c5ce7, #a29bfe);
    color: white !important;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
    margin: 4px;
}

    .btn:hover {
        transform: scale(1.05);
    }

.btn-success {
    background: linear-gradient(45deg, #00b894, #55efc4);
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
}

.btn-large {
    padding: 15px 50px;
    font-size: 1.15rem;
}

.btn-full {
    width: 100%;
    text-align: center;
    margin-top: 15px;
}

.form-box {
    max-width: 650px;
    margin: 0 auto;
}

.input-group {
    margin-bottom: 20px;
}

    .input-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 700;
        color: var(--accent);
    }

    .input-group input,
    .input-group select {
        width: 100%;
        padding: 12px;
        border: 2px solid #e0e0e0;
        border-radius: 10px;
        outline: none;
        background: #fff;
    }

        .input-group input:focus,
        .input-group select:focus {
            border-color: var(--accent);
        }

.instructor-info {
    background: rgba(108, 92, 231, 0.1);
    padding: 15px;
    border-radius: 12px;
    margin: 15px 0;
    font-size: 0.9rem;
}

    .instructor-info p {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }

.checkbox-wrapper {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #eee;
    cursor: pointer;
    gap: 10px;
}

    .checkbox-wrapper input {
        width: 20px;
        height: 20px;
        accent-color: var(--accent);
        margin-left: 10px;
    }

footer {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: auto;
    backdrop-filter: blur(10px);
}

.success-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.feature-list {
    list-style: none;
    margin-top: 10px;
    padding-right: 0;
}

    .feature-list li {
        margin-bottom: 10px;
    }

.page-card {
    max-width: 850px;
    margin: auto;
}

.center {
    text-align: center;
}

.right {
    text-align: right;
}

.muted {
    color: #666;
    margin-bottom: 20px;
}

.ltr {
    direction: ltr;
    text-align: left;
    unicode-bidi: embed;
}

.dept-icon {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.card-text {
    color: #555;
}

.submit-area {
    margin-top: 40px;
    text-align: center;
}

.alert {
    padding: 12px 15px;
    border-radius: 10px;
    margin: 15px 0;
    font-weight: 600;
}

.alert-danger {
    background: #ffecec;
    color: var(--danger);
    border: 1px solid #ffb3b3;
}

.text-danger {
    color: var(--danger);
    font-size: 0.9rem;
}

.confirm-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.confirm-card {
    text-align: center;
    max-width: 650px;
    padding: 3rem;
}

    .confirm-card h1 {
        color: var(--success);
        margin-bottom: 10px;
    }

.summary-box {
    background: rgba(108, 92, 231, 0.1);
    padding: 15px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: right;
}

.selected-courses {
    list-style: none;
    padding: 0;
    margin: 15px 0 25px;
}

    .selected-courses li {
        background: #fff;
        margin: 8px 0;
        padding: 10px;
        border-radius: 10px;
        border: 1px solid #eee;
    }

.table-wrap {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: right;
    white-space: nowrap;
}

th {
    background: rgba(108, 92, 231, 0.15);
    color: var(--accent);
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 12px;
    }

        nav ul {
            justify-content: center;
            gap: 12px;
        }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .btn-large {
        padding: 12px 30px;
        font-size: 1rem;
    }
}
