﻿@import url("fonts/DroidKufi.css");
@import url("fonts/fontawesome-all.min.css");

:root {
    --primary-color: #1d3557;
    --secondary-color: #457b9d;
    --accent-color: #a8dadc;
    --success-color: #2a9d8f;
    --warning-color: #f4a261;
    --danger-color: #e63946;
    --text-dark: #2b2d42;
    --text-light: #f1faee;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.2s ease;
}

body {
    background: #f8f9fa;
    font-size: 1em;
    font-family: "Droid Arabic Kufi", "Inter", Arial, Helvetica, Verdana, sans-serif;
    margin: 0px;
    padding: 0px;
    color: var(--text-dark);
    direction: rtl;
    overflow-x: hidden;
    height: 100vh;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-slow);
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.2);
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    padding: 100px 0 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(168, 218, 220, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.btn {
    border:none !important;
}
.btn-group label {
    display: flex;
    width: auto
}

a:link, a:visited {
    color: #034af3;
}

a:hover {
    color: #1d60ff;
    text-decoration: none;
}

a:active {
    color: #034af3;
}

p {
    margin-bottom: 10px;
    line-height: 1.6em;
}


/* HEADINGS   
----------------------------------------------------------*/

h1, h2, h3, h4, h5, h6 {
    font-size: 1.5em;
    color: #666666;
    font-variant: small-caps;
    text-transform: none;
    font-weight: 200;
    margin-bottom: 0px;
}

h1 {
    font-size: 1.6em;
    padding-bottom: 0px;
    margin-bottom: 0px;
}

h2 {
    font-size: 1.5em;
    font-weight: 600;
    direction: rtl;
}

h3 {
    font-size: 1.2em;
}

h4 {
    font-size: 1.1em;
}

h5, h6 {
    font-size: 1em;
}

.rightColumn > h1, .rightColumn > h2, .leftColumn > h1, .leftColumn > h2 {
    margin-top: 0px;
}

span label {
    font-weight: normal !important;
    padding-right: 4px;
}

/* PRIMARY LAYOUT ELEMENTS   
----------------------------------------------------------*/

.page {
    width: 80%;
    background-color: #fff;
    margin: 0px auto;
    border: 1px solid #496077;
}

.btn-group label {
    display: flex;
}

.header {
    position: relative;
    margin: 0px;
    padding: 0px;
    background: #4b6c9e;
    width: 100%;
}

    .header h1 {
        font-weight: 700;
        margin: 0px;
        padding: 0px 0px 0px 20px;
        color: #f9f9f9;
        border: none;
        line-height: 2em;
        font-size: 2em;
    }

.main {
    padding: 0px 12px;
    margin: 12px 8px 8px 8px;
    min-height: 420px;
}

.leftCol {
    padding: 6px 0px;
    margin: 12px 8px 8px 8px;
    width: 200px;
    min-height: 200px;
}

.footer {
    color: #4e5766;
    padding: 8px 0px 0px 0px;
    margin: 0px auto;
    text-align: center;
    line-height: normal;
}

footer {
    position: relative;
    width: 100%;
    bottom: 0px;
}


/* TAB MENU   
----------------------------------------------------------*/

div.hideSkiplink {
    background-color: #3a4f63;
    width: 100%;
}

div.menu {
    padding: 4px 0px 4px 8px;
}

    div.menu ul {
        list-style: none;
        margin: 0px;
        padding: 0px;
        width: auto;
    }

        div.menu ul li a, div.menu ul li a:visited {
            background-color: #465c71;
            border: 1px #4e667d solid;
            color: #dde4ec;
            display: block;
            line-height: 1.35em;
            padding: 4px 20px;
            text-decoration: none;
            white-space: nowrap;
        }

            div.menu ul li a:hover {
                background-color: #bfcbd6;
                color: #465c71;
                text-decoration: none;
            }

            div.menu ul li a:active {
                background-color: #465c71;
                color: #cfdbe6;
                text-decoration: none;
            }

/* FORM ELEMENTS   
----------------------------------------------------------*/

fieldset {
    margin: 1em 0px;
    padding: 1em;
    border: 1px solid #ccc;
}

    fieldset p {
        margin: 2px 12px 10px 10px;
    }

    fieldset.login label, fieldset.register label, fieldset.changePassword label {
        display: block;
    }

    fieldset label.inline {
        display: inline;
    }

legend {
    font-size: 1.1em;
    font-weight: 600;
    padding: 2px 4px 8px 4px;
}

input.textEntry {
    width: 320px;
    border: 1px solid #ccc;
}

input.passwordEntry {
    width: 320px;
    border: 1px solid #ccc;
}

div.accountInfo {
    width: 42%;
}

/* MISC  
----------------------------------------------------------*/

.clear {
    clear: both;
}

.title {
    display: block;
    float: left;
    text-align: left;
    width: auto;
}

.loginDisplay {
    font-size: 1.1em;
    display: block;
    text-align: left;
    padding: 10px;
    color: White;
}

    .loginDisplay a:link {
        color: white;
    }

    .loginDisplay a:visited {
        color: white;
    }

    .loginDisplay a:hover {
        color: white;
    }

.failureNotification {
    font-size: 1.2em;
    color: Red;
}

.bold {
    font-weight: bold;
}

.submitButton {
    text-align: right;
    padding-right: 10px;
}

.custom-navbar {
    padding: 15px 30px;
}

.custom-link {
    font-size: 1.2rem; /* تكبير الخط */
    font-weight: 600;
    margin: 0 10px;
    transition: all 0.3s ease;
    position: relative;
}

    /* تأثير عند المرور */
    .custom-link:hover {
        color: #ffc107 !important;
        transform: translateY(-3px);
    }

    /* خط متحرك تحت العنصر */
    .custom-link::after {
        content: "";
        position: absolute;
        width: 0;
        height: 3px;
        left: 0;
        bottom: -5px;
        background-color: #ffc107;
        transition: width 0.3s ease;
    }

    .custom-link:hover::after {
        width: 100%;
    }

.login-page {
    margin-top: 20px;
    background: linear-gradient(135deg, #1d3557, #457b9d);
}

.login-card {
    width: 100%;
    max-width: 420px;
    border-radius: 18px;
    animation: fadeIn 0.8s ease;
}

.login-btn {
    border-radius: 30px;
    transition: all 0.3s ease;
}

    .login-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    }

.group .icon {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: #6c757d;
}

.form-control {
    padding-right: 45px;
}

    .form-control:focus {
        box-shadow: 0 0 0 0.2rem rgba(69,123,157,.35);
        border-color: #457b9d;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.system-banner {
    background: linear-gradient(135deg, #1d3557, #457b9d);
    color: white;
    padding: 30px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.system-title h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.system-title p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.system-logo img {
    max-height: 150px;
    background: white;
    padding: 8px;
    border-radius: 12px;
}

footer {
    padding: 10px 0;
    color: white;
}

/* Style the span wrapper for each radio */
.scores td span {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    margin: 0 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

/* Default background */
.scores td span {
    background-color: #f8f9fa;
}

/* Highlight when the radio is checked */
/*.scores td input[type="radio"]:checked + label {
    background-color: #0d6efd;  Bootstrap primary blue 
    color: #fff;
    border-radius: 6px;
    padding: 4px 10px;
}*/

    .scores td span:has(input[type="radio"]:checked) {
        background-color: #0d6efd;
        color: #fff;
    }

/* Default look for labels */ 
.scores .btn-group-toggle label {
    cursor: pointer;
    transition: background-color 0.2s ease;
}
/* Highlight label when its radio is checked */

.scores .btn-group-toggle label:has(input[type="radio"]:checked) {
    background-color: #0d6efd; /* Bootstrap primary */
    color: #fff;
}