/* ===== الخط الأساسي ===== */
* {
    font-family: 'Cairo', sans-serif;
    box-sizing: border-box;
}

/* ===== إعدادات عامة ===== */
body {
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    direction: rtl;
}

/* ===== الهيدر ===== */
.site-header {
    background-color: #f0f4f8;
    color: #333;
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
}

.logo-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    flex-wrap: wrap;
}

.logo {
    height: 70px;
}

.logo-left {
    height: 90px;
    object-fit: contain;
}

.system-title {
    flex: 1;
    text-align: center;
    line-height: 1.6;
}

.univ-name {
    font-size: 28px;
    font-weight: bold;
    color: #004080;
}

.college-name {
    font-size: 22px;
    font-weight: 500;
    color: #333;
}

.system-name {
    font-size: 18px;
    font-weight: bold;
    color: #007bff;
}

/* ===== القائمة ===== */
.navbar {
    display: flex;
    flex-direction: row;
    background-color: #e0e7ef;
    padding: 10px 30px;
    flex-wrap: wrap;
    gap: 15px;
    margin-left: auto;
}

.navbar a {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #007acc;
}

/* ===== الفوتر ===== */
footer, .footer, .site-footer {
    text-align: center;
    padding: 20px 0;
    background-color: #f1f1f1;
    color: #555;
    font-size: 14px;
    border-top: 1px solid #ddd;
    margin-top: 40px;
}

/* ===== الصفحة الرئيسية ===== */
.welcome-box {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 700px;
    width: 100%;
    text-align: center;
    margin: 20px auto;
}

.welcome-box h1 {
    color: #005a9c;
    margin-bottom: 15px;
    font-size: 28px;
}

.welcome-box h4 {
    color: #007bff;
    margin-bottom: 20px;
}

.registration-status {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 10px 0;
    width: 100%;
    padding: 0;
}

.alert {
    padding: 20px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    width: 80%;
    max-width: 800px;
    margin: 0 auto;
    white-space: normal;
    overflow-wrap: break-word;
    border: 2px solid transparent;
}

.alert-success {
    background-color: #ffffff;
    color: #155724;
    border: 2px solid #d4edda;
}

.alert-danger {
    background-color: #ffffff;
    color: #721c24;
    border: 2px solid #f8d7da;
}

.alert-warning {
    background-color: #ffffff;
    color: #856404;
    border: 2px solid #fff3cd;
}

/* ===== الأزرار ===== */
.button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
    margin-bottom: 20px;
}

.btn,
button.btn,
input[type="submit"].btn {
    background-color: #007bff;
    color: white;
    padding: 10px 25px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 160px;
    min-height: 50px;
    font-weight: bold;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover,
button.btn:hover,
input[type="submit"].btn:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* ===== النماذج ===== */
.form-box {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    overflow-x: auto;
    text-align: right;
}

.form-box h2 {
    margin-bottom: 25px;
    color: #004080;
    font-size: 28px;
}

.form-box h3 {
    font-size: 22px;
    color: #004080;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.form-box label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.form-box input[type="text"],
.form-box input[type="email"],
.form-box input[type="password"],
form input,
form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

form button {
    margin-top: 10px;
    padding: 10px 25px;
    font-size: 16px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    min-width: 160px;
    min-height: 50px;
    font-weight: bold;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

form button:hover {
    background-color: #0056b3;
}

.warning {
    color: red;
    font-size: 13px;
    margin-top: -10px;
    margin-bottom: 10px;
    display: block;
}

.error {
    background-color: #ffe6e6;
    color: #c00;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
}

.success {
    background-color: #e6ffe6;
    color: #080;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
}

/* ===== لوحة التحكم للطالب ===== */
.dashboard-container {
    padding: 40px 20px;
    text-align: center;
}

.dashboard-container h2 {
    color: #004080;
    font-size: 26px;
    margin-bottom: 30px;
}

.dashboard-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.dashboard-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 180px;
    height: 220px;
    text-decoration: none;
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.dashboard-card img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
}

.dashboard-card span {
    font-weight: bold;
    color: #004080;
    font-size: 16px;
    text-align: center;
}

@media print {
    body * {
        visibility: hidden;
    }
    .form-box, .form-box * {
        visibility: visible;
    }
    .form-box {
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        box-shadow: none;
        background-color: transparent;
    }
    .btn, .btn-secondary, .no-print {
        display: none !important;
    }
    table {
        font-size: 14pt;
        width: 100%;
        border-collapse: collapse;
    }
    th, td {
        border: 1px solid #000;
        padding: 8px;
        text-align: center;
    }
    
    @media print {
    .report-container, .report-container * {
        visibility: visible;
    }
    .report-container {
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        box-shadow: none;
        background-color: transparent;
    }
}

}
