﻿/* ==========================================================================
   1. Design Tokens & Base Configuration
   ========================================================================== */
:root {
    --color-primary: #0d47a1; /* Deep, authoritative blue */
    --color-primary-dark: #1a237e;
    --color-accent: #1976d2;
    --color-text-light: #f5f7fa;
    --color-radio-bg: #f6fafd;
    --color-dropdown-bg: #f9fbfe;
    --color-dropdown-focus: #e3ecfa;
    --color-danger: #f44336;
    --color-muted: #54658f;
    --color-label: #20304d;
    --color-icon: #1976d2;
    --radius-main: 19px;
    --color-text-dark: #212529;
    --color-bg-light: #f8f9fa;
    --color-bg-content: #ffffff;
    --font-family-base: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --border-radius: 12px;
    --shadow-subtle: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-strong: 0 10px 30px rgba(0, 0, 0, 0.10);
    --color-logo-glow: #64b5f6;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
    font-family: var(--font-family-base);
    line-height: 1.7;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--color-text-dark);
    background-color: var(--color-bg-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: env(safe-area-inset-bottom, 0); /* iOS notch safe area */
}

/* ==========================================================================
   2. Header & Navigation
   ========================================================================== */

.header-container {
    background: radial-gradient(circle at 50% 0%, rgba(25, 118, 210, 0.5) 0%, rgba(25, 118, 210, 0) 70%), linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: var(--color-text-light);
    box-shadow: var(--shadow-strong);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    overflow: hidden;
}

.progress-bar-container {
    height: 4px;
    background-color: rgba(255, 255, 255, 0.15);
}

.progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #64b5f6, #bbdefb);
    transition: width 0.1s linear;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    word-break: break-word;
}

.logo-container,
.header-text {
    flex-shrink: 0;
    flex-grow: 0;
}

.logo-container {
    margin-bottom: 0;
}

.logo {
    min-width: 48px;
    min-height: 48px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.2), 0 0 15px -5px var(--color-logo-glow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    animation: pulseGlow 4s ease-in-out infinite;
    margin: 0 0.5rem;
    padding: 4px;
    touch-action: manipulation;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: inset 0 0 10px rgba(0,0,0,0.2), 0 0 15px -5px var(--color-logo-glow);
    }

    50% {
        box-shadow: inset 0 0 10px rgba(0,0,0,0.2), 0 0 25px 0px var(--color-logo-glow);
    }
}

.logo:hover {
    transform: scale(1.1);
    box-shadow: inset 0 0 5px rgba(0,0,0,0.2), 0 0 30px 5px var(--color-logo-glow);
    animation-play-state: paused;
}

.header-text {
    text-align: center;
}

.main-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(45deg, #ffffff, #cceaff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3), 0px 4px 10px rgba(0, 0, 0, 0.2), 0px 0px 15px rgba(100, 181, 246, 0.3);
    word-break: break-word;
}

.sub-title {
    font-size: clamp(1rem, 2vw, 1.1rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    display: block;
}

/* ==========================================================================
   4. Footer
   ========================================================================== */

.footer-container {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: rgba(255, 255, 255, 0.7);
    padding: 2rem 1rem;
    margin-top: auto;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0));
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    padding: 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease, text-decoration 0.3s ease;
    padding: 0.5rem 0.7rem;
    min-width: 48px;
    display: inline-block;
    touch-action: manipulation;
}

    .footer-link:hover {
        color: #fff;
        text-decoration: underline;
    }

.footer-copyright {
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

/* ==========================================================================
   5. Responsive & Mobile Enhancements
   ========================================================================== */


/* Mobile: 768px and below */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.7rem;
        padding: 0.7rem 0.5rem 0.5rem 0.5rem;
    }

    .logo {
        width: 60px;
        height: 60px;
        margin: 0 auto 0.35rem auto;
        padding: 6px;
    }

    .main-title {
        font-size: 1.25rem;
        word-break: break-word;
    }

    .sub-title {
        font-size: 1rem;
        padding: 0 2vw;
    }

   

    .footer-links {
        flex-direction: column;
        gap: 0.8rem;
    }

    .footer-link {
        font-size: 1rem;
        padding: 0.5rem 0;
    }
}

/* For very small screens ~600px and below */
@media (max-width: 600px) {
    .header-content {
        padding: 0.5rem 0.25rem;
        gap: 0.5rem;
    }

    .footer-content {
        padding: 1rem 0.5rem;
    }

}

/* ==========================================================================
  MASTER PAGE DESIGNER ENDS HERE
   ========================================================================== */


/* ___________________________________________
    Pages css
    ___________________________
*/
/* 1. Reset typical table padding and old borders—give all a clean start */
/* Reset */
/* Base styles from your form */
.form-container {
    max-width: 1470px;
    margin: 36px auto 56px auto;
    background: #fafcff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(70, 100, 220, 0.12);
    padding: 36px 36px 30px 36px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.form-group {
    flex: 1 1 0;
    min-width: 130px;
    display: flex;
    flex-direction: column;
}

    .form-group label {
        font-weight: 600;
        font-size: 1.02rem;
        color: #1d2853;
        margin-bottom: 7px;
    }

    .form-input, .form-group select, .form-group textarea {
        font-family: inherit;
        font-size: 1.07rem;
        border-radius: 10px !important;
        border: 1.5px solid #d0d8f6 !important;
        background: #f2f5fb !important;
        min-height: 45px;
        padding: 10px 14px !important;
        outline: none;
        transition: border-color 0.22s, box-shadow 0.22s;
        color: #242a3a !important;
        box-shadow: 0 2px 7px #eaf1ffb3;
    }

        .form-input:focus, .form-group select:focus, .form-group textarea:focus {
            border-color: #427aff !important;
            box-shadow: 0 0 0 3px #97c6ff85 !important;
        }

    .form-group textarea {
        resize: vertical;
        min-height: 60px;
    }

.req {
    color: #f05f84;
    margin-left: 2px;
    font-size: 1.09em;
}

.section-header {
    font-size: 1.17rem;
    font-weight: 700;
    color: #3147d9;
    background: linear-gradient(90deg, #eaf0ff 0%, #f6e9fa 100%);
    padding: 12px 22px;
    border-radius: 11px 11px 0px 0px;
    letter-spacing: 0.03em;
    margin: 24px 0 14px 0;
    box-shadow: 0 4px 12px #3840e01a;
    border-left: 5px solid #d43baf;
    display: inline-block;
}

/* New styles for photo upload section */
.photo-upload-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    padding: 20px 0;
}

.photo-preview {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f2f6ff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(70, 100, 220, 0.08);
    border: 1px solid #e0e8ff;
}

.photo-sample {
    width: 3.7cm;
    height: 4cm;
    border: 2px dashed #c1d0ff;
    border-radius: 8px;
    background: linear-gradient(45deg, #f8fbff, #f0f5ff);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .photo-sample img {
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
    }

.candidate-photo {
    width: 137px;
    height: 157px;
    border-radius: 6px;
    background: linear-gradient(135deg, #f8faff, #edf3ff);
    border: 1px solid #d0d8f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(70, 100, 220, 0.1);
    transition: all 0.3s ease;
}

    .candidate-photo img {
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
    }

.photo-upload-controls {
    flex: 1;
    padding: 20px;
    background: #f8fbff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(70, 100, 220, 0.08);
    border: 1px solid #e0e8ff;
}

.custom-file-label {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background-color: #f2f5fb;
    border: 1.5px solid #d0d8f6;
    border-radius: 10px;
    font-size: 1.07rem;
    color: #242a3a;
    box-shadow: 0 2px 7px #eaf1ffb3;
    cursor: pointer;
    transition: border-color 0.22s, box-shadow 0.22s, background-color 0.22s;
    position: relative;
    z-index: 1;
}

.custom-file-input:focus + .custom-file-label,
.custom-file-input:hover + .custom-file-label {
    border-color: #427aff !important;
    box-shadow: 0 0 0 3px #97c6ff85 !important;
    background-color: #eaf1ff;
}

.upload-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}
.file-requirement {
    display: block;
    font-size: 12px;
    color: #e74c3c;
    font-weight: 500;
    margin-bottom: 15px;
}
    

.preview-container {
    margin-top: 15px;
    padding: 12px 18px;
    background: #f4f6fb;
    border-left: 5px solid #667eea;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

    .preview-container a {
        color: #4a6cf7;
        text-decoration: none;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

        .preview-container a:hover {
            color: #3a5de0;
            text-decoration: underline;
        }

.upload-instructions {
    margin-top: 20px;
    padding: 15px;
    background: #edf3ff;
    border-radius: 8px;
    font-size: 0.92rem;
    color: #4a5568;
    border-left: 3px solid #4a6cf7;
}

    .upload-instructions h4 {
        margin-top: 0;
        margin-bottom: 10px;
        color: #3147d9;
        font-size: 1.05rem;
    }

    .upload-instructions ul {
        margin: 0;
        padding-left: 20px;
    }

    .upload-instructions li {
        margin-bottom: 8px;
    }

.premium-label {
    display: block;
    font-weight: 600;
    font-size: 1.05rem;
    color: #1d2853;
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
}

    .premium-label:before {
        content: "";
        position: absolute;
        left: 0;
        top: 6px;
        width: 16px;
        height: 16px;
        background: linear-gradient(135deg, #4a6cf7, #7a52f9);
        border-radius: 4px;
    }

.file-name {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #5a6c86;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 10px;
}
.reg-submit {
    background: linear-gradient(105deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    padding: 1.1rem 3rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
}

    .reg-submit::after {
        content: "";
        position: absolute;
        top: -50%;
        left: -60%;
        width: 20px;
        height: 200%;
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(25deg);
        transition: all 0.6s;
    }

    .reg-submit:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
    }

        .reg-submit:hover::after {
            left: 120%;
        }
.move-up-fileupload {
    margin-bottom: -36px; /* Moves it slightly up */
    position: relative;
    top: -36px; /* Optional: Additional upward shift */
}
/* Fix for overlapping issue */
.form-input, .form-group select, .form-group textarea {
    position: relative;
    z-index: 10;
}

/* Responsive adjustments */
@media(max-width: 1024px) {
    .form-row {
        gap: 18px;
    }

    .photo-upload-container {
        gap: 20px;
    }
}

@media(max-width: 1500px) {
    .form-container {
        padding: 20px 18px;
    }
}

@media(max-width: 900px) {
    .photo-upload-container {
        flex-direction: column;
        gap: 25px;
    }
}

@media(max-width: 740px) {
    .form-container {
        padding: 18px 6vw;
    }

    .form-row {
        flex-direction: column;
        gap: 8px;
    }

    .form-group {
        min-width: 100px;
    }

    .photo-upload-container {
        padding: 15px 0;
    }

    .file-upload-label {
        padding: 12px 16px;
        font-size: 1rem;
    }
}


/*

    DECLARATION
*/
.declaration-container {
    max-width: 1400px;
    margin: 2rem auto;
    background: var(--color-bg-content);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-strong);
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.declaration-header {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    padding: 2rem;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .declaration-header::before {
        content: "";
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
        z-index: -1;
    }

.declaration-title {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.declaration-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 400;
}

.declaration-content {
    padding: 2rem;
}

.declaration-card {
    background: linear-gradient(to bottom, #ffffff, #f8fafd);
    border: 1px solid #e3ecfa;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-subtle);
    transition: var(--transition);
    position: relative;
}

    .declaration-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(25, 118, 210, 0.15);
        border-color: var(--color-accent);
    }

    .declaration-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: linear-gradient(to bottom, var(--color-accent), var(--color-primary));
        border-radius: var(--border-radius) 0 0 var(--border-radius);
    }

.declaration-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed #e2e8f0;
}

    .declaration-item:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

.declaration-checkbox {
    position: relative;
    margin-top: 5px;
}

    .declaration-checkbox input[type="checkbox"] {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }

.custom-checkbox {
    width: 26px;
    height: 26px;
    border: 2px solid var(--color-muted);
    border-radius: 6px;
    display: inline-block;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

    .custom-checkbox::after {
        content: "";
        position: absolute;
        width: 6px;
        height: 12px;
        border: solid white;
        border-width: 0 3px 3px 0;
        transform: rotate(45deg);
        left: 9px;
        top: 4px;
        opacity: 0;
        transition: var(--transition);
    }

.declaration-checkbox input:checked + .custom-checkbox {
    background: var(--color-success);
    border-color: var(--color-success);
}

    .declaration-checkbox input:checked + .custom-checkbox::after {
        opacity: 1;
    }

.declaration-text {
    flex: 1;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-label);
}

    .declaration-text strong {
        color: var(--color-primary);
        font-weight: 600;
    }

.otp-section {
    background: var(--color-dropdown-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2.5rem 0;
    text-align: center;
    border: 1px solid #e3ecfa;
    box-shadow: var(--shadow-subtle);
}

.otp-title {
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.otp-input-container {
    max-width: 300px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.otp-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #d1d5db;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    text-align: center;
    letter-spacing: 5px;
    font-weight: 600;
    background: white;
    transition: var(--transition);
}

    .otp-input:focus {
        outline: none;
        border-color: var(--color-accent);
        box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.2);
    }

    .otp-input:disabled {
        background-color: #f0f4f8;
        opacity: 0.7;
        cursor: not-allowed;
    }

.btn-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.btn {
    padding: 0.9rem 2.2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    text-decoration: none;
}

.btn-edit {
    background: #f5f7fa;
    color: var(--color-muted);
    border: 1px solid #d1d9e6;
}

    .btn-edit:hover {
        background: #e3e9f2;
        transform: translateY(-2px);
    }

.btn-preview {
    background: #5c6bc0;
    color: white;
}

    .btn-preview:hover {
        background: #3f51b5;
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(92, 107, 192, 0.3);
    }

.btn-submit {
    background: linear-gradient(135deg, var(--color-success), #43a047);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

    .btn-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
        background: linear-gradient(135deg, #43a047, #2e7d32);
    }

    .btn-submit:disabled {
        background: linear-gradient(135deg, #a5d6a7, #81c784);
        opacity: 0.7;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

.chrome-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-muted);
    margin-top: 1.5rem;
    padding: 1rem;
    background: #fff8e1;
    border-radius: var(--border-radius);
    max-width: 700px;
    margin: 2rem auto;
    border-left: 4px solid #ffc107;
}
.note-note {
    text-align: left;
    font-size: 0.9rem;
    color: #f77b72;
    margin-top: 1.5rem;
    font-weight:bolder;
    padding: 1rem;
    background: #fff8e1; /* Red background */
    border-radius: var(--border-radius);
    width: 100%; /* Full width */
    border-left: 4px solid #b71c1c; /* Dark red border */
    box-sizing: border-box;
}
.declaration-progress {
    height: 6px;
    background: #e0e7ff;
    border-radius: 3px;
    margin: 1.5rem 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
    width: 0%;
    transition: width 0.5s ease;
}

.declaration-count {
    text-align: center;
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--color-muted);
    font-weight: 500;
}

    .declaration-count strong {
        color: var(--color-primary);
    }

/* Animation for checkboxes */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.declaration-checkbox input:checked + .custom-checkbox {
    animation: pulse 0.5s ease;
}

/* Responsive design */
@media (max-width: 768px) {
    .declaration-container {
        margin: 1rem;
        border-radius: var(--border-radius);
    }

    .declaration-header {
        padding: 1.5rem 1rem;
    }

    .declaration-title {
        font-size: 1.7rem;
    }

    .declaration-content {
        padding: 1.5rem;
    }

    .declaration-item {
        gap: 0.8rem;
        margin-bottom: 1.2rem;
        padding-bottom: 1.2rem;
    }

    .btn-container {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
    }
}

/*
==========================================================================
.study-details-form
==========================================================================
/* ==========================================================================
           Premium Table Design
           ========================================================================== */

/* Premium Table Design: Adjusted for Alignment & Premium Feel */
.edu-container {
    max-width: 1650px;
    margin: 36px auto 56px auto;
    background: #fafcff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(70, 100, 220, 0.12);
    padding: 36px 36px 30px 36px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.scroll-table-container {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.premium-education-table {
    width: 100%;
    min-width: 1200px; /* Ensure minimum width */
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9rem;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

    /* Table Header Styling */
    .premium-education-table thead {
        background: radial-gradient(circle at 50% 0%, rgba(25, 118, 210, 0.5) 0%, rgba(25, 118, 210, 0) 70%), linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
        position: sticky;
        top: 0;
        z-index: 10;
    }
        .premium-education-table thead th {
            padding: 12px 8px;
            text-align: center;
            font-weight: 700;
            color: #fff;
            border-right: 1px solid rgba(255,255,255,0.2);
            white-space: nowrap;
            min-width: 120px;
        }
        

    .premium-education-table tbody td {
        padding: 1rem 0.8rem;
        border-bottom: 1px solid #e8f0fe;
        vertical-align: middle;
        position: relative;
        background: transparent;
    }

    .premium-education-table tbody tr:nth-child(even) {
        background: #f7fafd;
    }

    .premium-education-table tbody tr:nth-child(odd) {
        background: #fbfcff;
    }

    .premium-education-table tbody tr:hover {
        background: #e9f3ff;
    }
        

/* Class Labels */
.class-label {
    background: linear-gradient(110deg, #ebf5ff 65%, #e0edfc 100%);
    border: 2px solid #2596FF;
    border-radius: 8px;
    padding: 6px 12px;
    font-weight: 600;
    color: #2176ff;
    display: inline-block;
    text-align: center;
    font-size: 0.8rem;
    white-space: nowrap;
}

    .class-label:hover {
        transform: translateY(-2px) scale(1.015);
        box-shadow: 0 6px 24px rgba(41,128,185,0.18);
    }

/* Premium Form Controls */
.form-control-wrapper {
    width: 100%;
    min-width: 100px;
}


.premium-select, .premium-input {
    width: 100% !important;
    min-width: 100px;
    padding: 6px 8px;
    border: 1.5px solid #b8d2f6;
    border-radius: 6px;
    font-size: 0.85rem;
    background: #f6f9fe;
    box-sizing: border-box;
}


    .premium-select:focus, .premium-input:focus {
        border-color: #2176FF;
        background: #fff;
        outline: none;
    }
.accordion-table {
    display: none;
}

.accordion-row {
    background: white;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.accordion-header {
    background: linear-gradient(90deg, #466fff 0%, #3ac7e5 100%);
    color: white;
    padding: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.accordion-content {
    padding: 20px;
    display: none;
}

    .accordion-content.active {
        display: block;
    }

.field-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.field-item {
    display: flex;
    flex-direction: column;
}

.field-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.field-input {
    padding: 10px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* Solution 3: Two-Row Layout */
.two-row-table {
    display: none;
}

    .two-row-table .premium-education-table {
        min-width: auto;
    }

.main-row, .details-row {
    border-bottom: 2px solid #e0e0e0;
}

    .details-row td {
        background: #f8f9fa !important;
        font-size: 0.85rem;
    }

.row-connector {
    background: #3498db;
    color: white;
    text-align: center;
    font-weight: bold;
    font-size: 0.8rem;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .scroll-table-container {
        display: none;
    }

    .accordion-table {
        display: block;
    }
}

@media (max-width: 768px) {
    .field-group {
        grid-template-columns: 1fr;
    }

    .solution-container {
        padding: 15px;
    }
}
/* Custom scrollbar for better UX */
.scroll-table-container::-webkit-scrollbar {
    height: 12px;
}

.scroll-table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

.scroll-table-container::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #466fff 0%, #3ac7e5 100%);
    border-radius: 6px;
}

    .scroll-table-container::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(90deg, #3c5dff 0%, #32b8db 100%);
    }

.scroll-hint {
    text-align: center;
    color: #666;
    font-size: 0.85rem;
    margin-top: 10px;
    display: block;
}

@media (min-width: 1025px) {
    .scroll-hint {
        display: none;
    }
}
/*________________________________________

    ______________AGE RELAXATION_____________
*/
.ageform-row {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    background: rgba(249, 251, 254, 0.6);
    border-radius: var(--border-radius);
    border: 1px solid rgba(25, 118, 210, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

    .ageform-row:hover {
        background: rgba(249, 251, 254, 0.9);
        border-color: rgba(25, 118, 210, 0.15);
        box-shadow: 0 2px 8px rgba(25, 118, 210, 0.06);
        transform: translateY(-1px);
    }

.ageform-label {
    font-weight: 600;
    color: var(--color-label);
    font-size: 0.95rem;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .ageform-label .required {
        color: var(--color-danger);
        font-size: 1.1rem;
    }

.ageform-control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}


.agesection {
    margin-bottom: 2rem;
}

.agesection-header {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: var(--color-text-light);
    padding: 1.5rem 2rem;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.agesection-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(100, 181, 246, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.agesection-header i {
    font-size: 1.2rem;
    color: var(--color-logo-glow);
}

.agesection-content {
    padding: 2rem;
}

.agesubsection {
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 1rem;
    border: 1px solid rgba(25, 118, 210, 0.1);
}

.agesubsection-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(25, 118, 210, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-length {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(139, 195, 74, 0.1));
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--color-success);
    font-weight: 600;
    color: var(--color-success);
    font-size: 0.95rem;
}

/*-----------------------------------------

    -------------------------------------
*/
/* Enhanced Main Container */
.userinnercontent {
    margin: 2rem 0;
    width: 100%;
    position: relative;
}

    /* Logout Button Enhancement */
    .userinnercontent table {
        margin-bottom: 2rem;
    }

    .userinnercontent .btn-print {
        background: var(--gradient-primary);
        color: white;
        padding: 0.75rem 2rem;
        border: none;
        border-radius: var(--border-radius);
        font-size: 0.95rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow-md);
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        position: relative;
        overflow: hidden;
    }

        .userinnercontent .btn-print::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s;
        }

        .userinnercontent .btn-print:hover::before {
            left: 100%;
        }

        .userinnercontent .btn-print:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }
    .userinnercontent .btn-logout {
        background: #a32017;
        color: white;
        padding: 0.75rem 2rem;
        border: none;
        border-radius: var(--border-radius);
        font-size: 0.95rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow-md);
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        position: relative;
        overflow: hidden;
    }

        .userinnercontent .btn-logout::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s;
        }

        .userinnercontent .btn-logout:hover::before {
            left: 100%;
        }

        .userinnercontent .btn-logout:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }

/* Enhanced Container */
.userusercontainer {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Premium Grid Layout */
.usercard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

@media (min-width: 1200px) {
    .usercard-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .usercard-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .userusercontainer {
        padding: 0 1rem;
    }
}

/* Premium Card Design */
.userapp-card {
    background: var(--gradient-surface);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    min-height: 280px;
}

    .userapp-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--gradient-primary);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .userapp-card:hover::before {
        opacity: 1;
    }

    .userapp-card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: var(--shadow-xl);
        border-color: rgba(37, 99, 235, 0.2);
    }

/* Enhanced Header */
.usercard-header {
    background: var(--gradient-primary);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

    .usercard-header::after {
        content: '';
        position: absolute;
        top: 0;
        right: -50px;
        width: 100px;
        height: 100%;
        background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1));
        transform: skewX(-20deg);
    }

.usercard-title {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Enhanced Status Badges */
.userstatus-badge {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

    .userstatus-badge::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.5s;
    }

    .userstatus-badge:hover::before {
        left: 100%;
    }

.userbadge-success {
    background: linear-gradient(135deg, var(--color-success), #047857);
    color: white;
}

.userbadge-warning {
    background: linear-gradient(135deg, var(--color-warning), #b45309);
    color: white;
}

.userbadge-danger {
    background: linear-gradient(135deg, var(--color-danger), #b91c1c);
    color: white;
}

/* Enhanced Card Body */
.usercard-body {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.02), transparent);
}

.userstatus-icon {
    width: 80px;
    height: 80px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.userapp-card:hover .userstatus-icon {
    transform: scale(1.1) rotate(5deg);
}

.usericon-complete {
    background-image: url(../images/complete.png);
}

.usericon-incomplete {
    background-image: url(../images/incomplete.png);
}

/* Enhanced Footer */
.usercard-footer {
    margin-top: auto;
}

    .usercard-footer a {
        display: block;
        background: var(--gradient-primary);
        color: white;
        text-align: center;
        padding: 1.25rem;
        font-weight: 600;
        font-size: 0.95rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        text-decoration: none;
        position: relative;
        overflow: hidden;
    }

        .usercard-footer a::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.6s;
        }

        .usercard-footer a:hover::before {
            left: 100%;
        }

        .usercard-footer a:hover {
            background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
        }

/* Special Confirmation Card */
.userconfirm-card .usercard-header {
    background: linear-gradient(135deg, var(--color-danger), #b91c1c);
}

.userconfirm-card .usercard-footer a {
    background: linear-gradient(135deg, var(--color-danger), #b91c1c);
}

    .userconfirm-card .usercard-footer a:hover {
        background: linear-gradient(135deg, #b91c1c, #991b1b);
        box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
    }

/* Enhanced Print Section */
.btnwrapfull1 {
    text-align: center;
    margin: 3rem 0 2rem;
    position: relative;
}

    .btnwrapfull1 .btn-print {
        background: var(--gradient-primary);
        color: white;
        padding: 1.25rem 3rem;
        border: none;
        border-radius: var(--border-radius-lg);
        font-size: 1.1rem;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow-lg);
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        position: relative;
        overflow: hidden;
    }

        .btnwrapfull1 .btn-print::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: left 0.6s;
        }

        .btnwrapfull1 .btn-print:hover::before {
            left: 100%;
        }

        .btnwrapfull1 .btn-print:hover {
            transform: translateY(-4px) scale(1.05);
            box-shadow: var(--shadow-xl);
        }

        .btnwrapfull1 .btn-print i {
            font-size: 1.2rem;
            filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
        }

/* Responsive Enhancements */
@media (max-width: 480px) {
    .usercard-header {
        padding: 1.25rem;
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .usercard-body {
        padding: 2rem 1rem;
    }

    .userstatus-icon {
        width: 60px;
        height: 60px;
    }

    .btnwrapfull1 .btn-print {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Focus States for Accessibility */
.usercard-footer a:focus,
.btn-print:focus {
    outline: 3px solid rgba(37, 99, 235, 0.3);
    outline-offset: 2px;
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #0f172a;
        --color-surface: #1e293b;
        --color-text: #e2e8f0;
        --color-text-light: #94a3b8;
    }

    .userapp-card {
        background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.9));
        border-color: rgba(148, 163, 184, 0.1);
    }
}
.mini-copy-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 4px;
}

.mini-copy-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.mini-checkbox {
    position: relative;
    width: 16px;
    height: 16px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    background: #ffffff;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .mini-checkbox::before {
        content: '';
        position: absolute;
        width: 0;
        height: 0;
        background: linear-gradient(45deg, #007bff, #0056b3);
        border-radius: 2px;
        transition: all 0.2s ease;
    }

.mini-check {
    font-size: 10px;
    color: white;
    font-weight: bold;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

/* Hover State */
.mini-copy-wrapper:hover .mini-checkbox {
    border-color: #007bff;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
}

/* Checked State */
.mini-copy-checkbox:checked + .mini-checkbox {
    border-color: #007bff;
    background: linear-gradient(45deg, #007bff, #0056b3);
    transform: scale(1.05);
}

    .mini-copy-checkbox:checked + .mini-checkbox::before {
        width: 100%;
        height: 100%;
    }

    .mini-copy-checkbox:checked + .mini-checkbox .mini-check {
        opacity: 1;
        transform: scale(1);
    }

/* Loading State */
.mini-copy-wrapper.loading .mini-checkbox {
    border-color: #ffc107;
    background: #fff3cd;
}

    .mini-copy-wrapper.loading .mini-checkbox::after {
        content: '';
        width: 8px;
        height: 8px;
        border: 1px solid #ffc107;
        border-top: 1px solid transparent;
        border-radius: 50%;
        animation: mini-spin 0.8s linear infinite;
    }

@keyframes mini-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success State */
.mini-copy-wrapper.success .mini-checkbox {
    border-color: #28a745;
    background: linear-gradient(45deg, #28a745, #20c997);
    animation: mini-bounce 0.3s ease;
}

@keyframes mini-bounce {
    0%, 100% {
        transform: scale(1.05);
    }

    50% {
        transform: scale(1.2);
    }
}

/* Error State */
.mini-copy-wrapper.error .mini-checkbox {
    border-color: #dc3545;
    background: #f8d7da;
    animation: mini-shake 0.3s ease;
}

@keyframes mini-shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-2px);
    }

    75% {
        transform: translateX(2px);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mini-checkbox {
        width: 14px;
        height: 14px;
    }

    .mini-check {
        font-size: 8px;
    }
}