﻿

:root {
    --bg-gradient: linear-gradient(135deg, rgba(0, 48, 194, 0.90), rgba(0, 123, 255, 0.85));
    --primary: #0057b8;
    --primary-dark: #003c82;
    --primary-light: #1683ff;
    --primary-glow: rgba(0, 87, 184, 0.35);
    --secondary: #00a8ff;
    --surface: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --radius-lg: 18px;
    --radius-md: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}



body {
    font-family: 'Quicksand', sans-serif;
    background-image: linear-gradient( 135deg, rgba(0, 48, 194, 0.18), rgba(0, 123, 255, 0.12) ), url("../Gorseller/bg.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: var(--text-main);
    min-height: 100vh;
    padding: 30px 15px;
    box-sizing: border-box;
}



fieldset {
    border: 1px solid rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    padding: 45px 30px 25px 30px;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0, 32, 91, 0.12), 0 1px 3px rgba(255, 255, 255, 0.7) inset;
    position: relative;
    transition: var(--transition);
}

    fieldset:hover {
        box-shadow: 0 25px 50px rgba(0, 32, 91, 0.18), 0 1px 3px rgba(255, 255, 255, 0.8) inset;
    }



legend,
.legend {
    position: relative;
    width: fit-content !important;
    margin: -10px auto 35px auto !important;
    padding: 0 18px 12px 18px !important;
    border: none !important;
    background: transparent !important;
    color: #123c69 !important;
    font-family: 'Quicksand', sans-serif;
    font-size: 19px !important;
    font-weight: 700 !important;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.4;
    z-index: 5;
    transition: color .35s ease, letter-spacing .35s ease;
}


    

    legend::after,
    .legend::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 0;
        width: 55px;
        height: 3px;
        transform: translateX(-50%);
        border-radius: 20px;
        background: linear-gradient( 90deg, #003c82, #1683ff, #00a8ff );
        box-shadow: 0 3px 10px rgba(0, 102, 204, .25);
        animation: legendUnderline 2.5s ease-in-out infinite;
    }


  

    legend::before,
    .legend::before {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -4px;
        width: 10px;
        height: 10px;
        transform: translateX(-50%);
        border-radius: 50%;
        background: #1683ff;
        box-shadow: 0 0 8px #1683ff, 0 0 18px rgba(22, 131, 255, .55);
        animation: legendDot 2.5s ease-in-out infinite;
        z-index: 2;
    }




@keyframes legendUnderline {

    0%, 100% {
        width: 45px;
        opacity: .65;
    }

    50% {
        width: 95px;
        opacity: 1;
        box-shadow: 0 3px 18px rgba(22, 131, 255, .45);
    }
}


@keyframes legendDot {

    0%, 100% {
        transform: translateX(-50%) scale(.7);
        opacity: .5;
    }

    50% {
        transform: translateX(-50%) scale(1.15);
        opacity: 1;
    }
}




legend:hover,
.legend:hover {
    color: #0057b8 !important;
    letter-spacing: 2.7px;
}


    legend:hover::after,
    .legend:hover::after {
        width: 120px;
        animation-play-state: paused;
    }


    legend:hover::before,
    .legend:hover::before {
        box-shadow: 0 0 10px #1683ff, 0 0 25px rgba(22, 131, 255, .7);
        animation-play-state: paused;
    }




.custom-file-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 56px;
    background: #fff;
    border: 1px solid #d8dee8;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: .25s ease;
}

    .custom-file-wrapper:hover {
        border-color: #324261;
        box-shadow: 0 8px 20px rgba(50,66,97,.12);
        transform: translateY(-1px);
    }

.custom-file-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    height: 56px;
    background: #939697;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .3px;
    transition: .25s;
}

.custom-file-wrapper:hover .custom-file-btn {
    background: #D6E1F8;
}

.custom-file-btn::before {
    content: "📄";
    margin-right: 8px;
    font-size: 18px;
}

.custom-file-text {
    flex: 1;
    padding: 0 18px;
    color: #7b8794;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-file-wrapper:hover .custom-file-text {
    color: #324261;
}

.d-none {
    display: none !important;
}

@media(max-width:768px) {

    .custom-file-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .custom-file-btn {
        width: 100%;
    }

    .custom-file-text {
        padding: 15px;
        text-align: center;
    }
}


@media (max-width: 576px) {

    legend,
    .legend {
        font-size: 15px !important;
        letter-spacing: 1.5px;
        padding: 0 10px 10px 10px !important;
        margin-bottom: 28px !important;
    }

        legend:hover,
        .legend:hover {
            letter-spacing: 1.8px;
        }
}



.form-control,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
select,
textarea {
    width: 100%;
    background-color: #f8fafc;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    outline: none;
    box-sizing: border-box;
    transition: var(--transition);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, .02);
}


    .form-control::placeholder,
    input::placeholder,
    textarea::placeholder {
        color: var(--text-muted);
        font-weight: 500;
    }


    .form-control:focus,
    input[type="text"]:focus,
    input[type="password"]:focus,
    input[type="email"]:focus,
    input[type="number"]:focus,
    select:focus,
    textarea:focus {
        background-color: #fff;
        border-color: #0066cc;
        box-shadow: 0 0 0 5px rgba(0, 102, 204, 0.08), 0 4px 12px rgba(0, 60, 130, .08);
        transform: translateY(-2px);
    }


textarea {
    min-height: 110px;
    resize: vertical;
    line-height: 1.5;
}


::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #eef4fb;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient( 180deg, #0066cc, #003c82 );
    border-radius: 10px;
    border: 2px solid #eef4fb;
    transition: .3s;
}

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient( 180deg, #1683ff, #0057b8 );
    }


.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 38px;
    border-radius: 16px;
    background: linear-gradient( 135deg, #0057b8, #1683ff );
    border: 1px solid rgba(255, 255, 255, .15);
    color: #fff !important;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: .3px;
    text-decoration: none !important;
    box-shadow: 0 12px 30px rgba(0, 87, 184, .35);
    transition: .35s ease;
}


    .btn-modern:hover {
        color: #fff !important;
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 18px 40px rgba(0, 87, 184, .45);
    }


    .btn-modern:active {
        transform: scale(.98);
    }



td.form-control img {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px;
    padding: 0 !important;
    margin: 0 !important;
    object-fit: contain;
    border: none !important;
    border-radius: 8px;
    background: transparent !important;
    cursor: pointer;
    transition: all .25s ease;
}


    td.form-control img:hover {
        transform: scale(1.12);
        filter: drop-shadow( 0 4px 7px rgba(0, 87, 184, .30) );
    }


td.form-control {
    position: relative;
    display: flex !important;
    align-items: center;
    min-height: 62px;
    padding: 12px 18px !important;
    margin-bottom: 12px;
    box-sizing: border-box;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 15px !important;
    box-shadow: 0 4px 14px rgba(0, 45, 90, .06);
    transition: all .25s ease;
    gap: .5rem;
}


    td.form-control:hover {
        border-color: #1683ff !important;
        transform: translateY(-2px);
        box-shadow: 0 9px 22px rgba(0, 87, 184, .14);
    }


    td.form-control span {
        font-family: 'Quicksand', Arial, sans-serif;
        color: #1e293b;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.4;
        transition: color .25s ease;
    }


    td.form-control:hover span {
        color: #0057b8;
    }



    td.form-control span[style*="color:Red"] {
        margin-left: auto;
        padding: 5px 10px;
        border-radius: 20px;
        background: #fff1f1;
        border: 1px solid #ffd5d5;
        color: #e53935 !important;
        font-family: Arial, sans-serif;
        font-size: 10px !important;
        font-weight: 800 !important;
        letter-spacing: .6px;
    }


    td.form-control:has(span[style*="color:Red"]) {
        opacity: .55;
        background: #f7f9fc !important;
        border-color: #e2e8f0 !important;
        box-shadow: none;
    }


        td.form-control:has(span[style*="color:Red"]):hover {
            transform: none;
            border-color: #e2e8f0 !important;
            box-shadow: none;
        }


.LoadingIcon {
    display: none;
    width: 44px;
    height: 44px;
    border: 4px solid rgba(0, 87, 184, 0.15);
    border-left-color: #0057b8;
    border-radius: 50%;
    animation: loader-spin 1s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
    margin: 10px auto;
}


@keyframes loader-spin {

    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}



.AlseinTable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 10px 12px;
}


    .AlseinTable td:nth-child(3n+1) {
        color: #0066cc;
        width: 20px;
        text-align: center;
        font-weight: 700;
        font-size: 1.2rem;
        text-shadow: 0 2px 4px rgba(0, 87, 184, .20);
    }


    .AlseinTable td:nth-child(3n+2) {
        padding: 14px 18px;
        border: none;
        color: #ffffff;
        border-radius: var(--radius-md);
        width: 160px;
        text-align: center;
        font-weight: 700;
        font-size: .95rem;
        letter-spacing: .3px;
        background: linear-gradient( 135deg, #003c82, #0057b8, #1683ff );
        box-shadow: 0 6px 18px rgba(0, 57, 130, .22);
        cursor: pointer;
        position: relative;
        overflow: hidden;
        transition: var(--transition);
    }


        .AlseinTable td:nth-child(3n+2)::after {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient( 60deg, transparent, rgba(255, 255, 255, .25), transparent );
            transform: rotate(30deg) translateY(-100%);
            transition: transform .6s ease;
        }


        .AlseinTable td:nth-child(3n+2):hover::after {
            transform: rotate(30deg) translateY(100%);
        }


        .AlseinTable td:nth-child(3n+2):hover {
            transform: translateY(-4px) scale(1.03);
            box-shadow: 0 12px 25px rgba(0, 87, 184, .40);
        }


        .AlseinTable td:nth-child(3n+2):active {
            transform: translateY(-1px) scale(.98);
            box-shadow: 0 4px 10px rgba(0, 87, 184, .30);
        }



@media(max-width:576px) {

    fieldset {
        padding: 40px 15px 20px 15px;
    }


    td.form-control {
        min-height: 56px;
        padding: 10px 13px !important;
        border-radius: 13px !important;
        gap: .5rem;
    }

        td.form-control img {
            width: 25px !important;
            height: 25px !important;
            min-width: 25px;
        }

        td.form-control span {
            font-size: 14px;
        }
}


td.form-control img {
    margin-right: 12px !important;
    flex-shrink: 0;
}


td.form-control span {
    display: inline-block;
    margin-left: 3px;
    line-height: 1.5;
}
