﻿

:root {
    --bg-gradient: linear-gradient(135deg, rgba(0, 48, 194, 0.90), rgba(0, 123, 255, 0.85));
    --primary: #02578F;
    --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: -24px auto 30px auto !important;
    padding: 8px 22px !important;
    border: 2px dashed #02578f !important;
    border-radius: 8px;
    background: #f4f8fb !important;
    color: #02578f !important;
    font-family: 'Quicksand', sans-serif;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    box-shadow: 4px 4px 0px #02578f;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

    legend:hover,
    .legend:hover {
        transform: translate(-2px, -2px);
        box-shadow: 6px 6px 0px #B21E20;
        border-color: #B21E20 !important;
        color: #B21E20 !important;
        background: #ffffff !important;
    }



.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) {

}



.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-fill {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 38px;
    border-radius: 12px;
    background: transparent;
    color: #02578F !important;
    border: 2px solid #02578F;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none !important;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s ease;
}

    .btn-fill::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 0%;
        background: #02578F;
        z-index: -1;
        border-radius: 10px 10px 0 0;
        transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .btn-fill:hover {
        color: #ffffff !important;
    }

        .btn-fill:hover::before {
            height: 100%;
        }











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: #02578F !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: #02578F;
    }



    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: #02578F;
        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;
}
