/* Plus Jakarta Sans preloaded in MasterPage.master */

/* ==========================================================================
   PREMIUM CORE THEMING & RESET SYSTEM
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 500;
}

body {
    background: #f4f6f9;
    color: #0f172a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   PREMIUM CORE LAYOUT CONTAINER & GLASSMORPHIC NAVBAR
   ========================================================================== */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

.main-header {
    height: 80px;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    border-bottom: 1px solid #f1f5f9;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    z-index: 1000;
    position: sticky !important;
    top: 0 !important;
}

.app-body {
    display: flex;
    flex: 1;
    height: calc(100vh - 80px);
    width: 100%;
    overflow: hidden;
}

/* ==========================================================================
   NAVIGATION SIDEBAR SYSTEM (.accPanel) - MIDNIGHT GLASSMORPHISM
   ========================================================================== */
.accPanel {
    padding: 24px 16px !important;
    height: calc(100vh - 80px) !important;
    width: 240px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important; /* Prevent horizontal scrollbars inside the sidebar! */
    background: rgba(9, 13, 22, 0.96) !important; /* Midnight Space Glass */
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    box-shadow: 10px 0 40px rgba(0,0,0,0.12);
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: sticky !important;
    top: 80px !important;
}

/* loginuser flex layout components */
.header-content-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.header-logo-col {
    display: flex;
    align-items: center;
    width: 240px;
    flex-shrink: 0;
}

.header-title-col {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.header-brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    vertical-align: middle;
}

.header-portal-title {
    font-family: inherit;
    font-weight: 800;
    font-size: 17px;
    color: #0f172a;
    letter-spacing: 0.75px;
    margin: 0;
    text-transform: uppercase;
}

.header-user-col {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 240px;
    flex-shrink: 0;
}

.header-user-badge {
    display: inline-flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 6px 14px;
    border-radius: 9999px;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    vertical-align: middle;
}

/* Sidebar Menu Tree Custom Styles */
.accPanel a {
    color: #94a3b8 !important;
    text-decoration: none !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    transition: all 0.25s ease-in-out !important;
    display: inline-flex;
    align-items: center;
    padding: 2px 4px;
}

.accPanel a:hover {
    color: #ffffff !important;
    transform: translateX(4px);
}

/* Customize tree selection - Electric Indigo Glow */
.accPanel .TreeView_SelectedNodeStyle,
.accPanel td[style*="background-color"] {
    background: linear-gradient(135deg, #6366f1, #4f46e5) !important; 
    border-radius: 10px !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.45) !important;
    font-weight: 700 !important;
}

/* TreeView Node separator */
.accPanel hr {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* ==========================================================================
   TOP ACTION BAR / HEADER - TRANSLUCENT GLASSMORPHIC NAVBAR
   ========================================================================== */
#lblHeader, .sticker2 {
    display: none !important;
}

/* ==========================================================================
   GLOBAL SAAS COMPONENT OVERRIDES - PREMIUM SAAS CARDS
   ========================================================================== */
#mainContentWrapper {
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    color: #1e293b;
    padding: 32px !important;
    flex: 1;
    height: 100%;
    overflow-y: auto !important;
    background: #f8fafc;
}

/* Premium styled Cards for Sections with fine details */
.cu-section, 
#mainContentWrapper table[style*="background-color:#DFDFFF"],
#mainContentWrapper table[style*="background-color: #DFDFFF"],
#mainContentWrapper table[style*="background-color:#dfdfff"] {
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: 20px !important;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.03), 0 5px 15px -5px rgba(0, 0, 0, 0.02) !important;
    padding: 32px !important;
    margin-bottom: 32px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
}

/* Sleek Glowing Gradient Border left */
.cu-section::before,
#mainContentWrapper table[style*="background-color:#DFDFFF"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #6366f1, #8b5cf6, #ec4899);
}

.cu-section:hover,
#mainContentWrapper table[style*="background-color:#DFDFFF"]:hover {
    box-shadow: 0 25px 45px -5px rgba(0, 0, 0, 0.05), 0 10px 20px -5px rgba(0, 0, 0, 0.03) !important;
    transform: translateY(-3px);
}

.cu-section-title {
    font-weight: 800 !important;
    font-size: 14.5px !important;
    color: #0f172a !important;
    border-bottom: 2px solid #f8fafc !important;
    padding-bottom: 16px !important;
    margin-bottom: 28px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Beautiful custom helper notes with dual border highlight */
.cu-note {
    font-size: 13px !important;
    color: #475569 !important;
    background: #f8fafc !important;
    border-left: 4px solid #6366f1 !important;
    padding: 20px 26px !important;
    margin-bottom: 28px !important;
    border-radius: 6px 16px 16px 6px !important;
    line-height: 1.75 !important;
    border-top: 1px solid rgba(226, 232, 240, 0.5);
    border-right: 1px solid rgba(226, 232, 240, 0.5);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.cu-note b { 
    color: #0f172a !important;
    font-weight: 700 !important;
}

/* Premium micro interactive controls */
#mainContentWrapper input[type="text"],
#mainContentWrapper input[type="password"],
#mainContentWrapper select,
#mainContentWrapper textarea,
.txtbox {
    width: 100%;
    padding: 11px 16px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
    font-family: inherit;
    font-size: 13.5px !important;
    color: #1e293b !important;
    background: #fcfdfe !important;
    box-sizing: border-box;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.01) !important;
}

#mainContentWrapper input[type="text"]:focus,
#mainContentWrapper input[type="password"]:focus,
#mainContentWrapper select:focus,
#mainContentWrapper textarea:focus,
.txtbox:focus {
    border-color: #6366f1 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12), 0 4px 10px rgba(99, 102, 241, 0.04) !important;
}

/* Beautiful dropdown select adjustments with modern caret */
#mainContentWrapper select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23475569' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 14px center !important;
    background-repeat: no-repeat !important;
    background-size: 20px !important;
    padding-right: 44px !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: auto !important;
    min-width: 160px !important;
    max-width: 100% !important;
    display: inline-block !important;
}

/* ==========================================================================
   PREMIUM BUTTON DESIGN SYSTEM - NEON SCALE HOVER EFFECT
   ========================================================================== */
#mainContentWrapper input[type="submit"],
#mainContentWrapper input[type="button"],
#mainContentWrapper button,
#mainContentWrapper .btn,
#mainContentWrapper asp\:Button,
.cu-btn,
.btnLogin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 24px !important;
    font-family: inherit;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
    border: none !important;
    border-radius: 12px !important;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    width: auto !important;
    min-width: 80px !important;
}

#mainContentWrapper input[type="submit"]:hover,
#mainContentWrapper input[type="button"]:hover,
#mainContentWrapper button:hover,
#mainContentWrapper .btn:hover,
.cu-btn:hover,
.btnLogin:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca) !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 22px rgba(99, 102, 241, 0.35) !important;
}

#mainContentWrapper input[type="submit"]:active,
#mainContentWrapper input[type="button"]:active,
#mainContentWrapper button:active,
.cu-btn:active,
.btnLogin:active {
    transform: translateY(0px) scale(1);
}

/* Red / Secondary Button Styling */
#mainContentWrapper input[type="submit"][id*="Delete"],
#mainContentWrapper input[type="submit"][id*="Clear"],
#mainContentWrapper input[type="submit"][id*="Cancel"],
#mainContentWrapper .btn-red,
.cu-btn-red {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25) !important;
}

#mainContentWrapper input[type="submit"][id*="Delete"]:hover,
#mainContentWrapper input[type="submit"][id*="Clear"]:hover,
#mainContentWrapper input[type="submit"][id*="Cancel"]:hover,
#mainContentWrapper .btn-red:hover,
.cu-btn-red:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    box-shadow: 0 12px 22px rgba(239, 68, 68, 0.35) !important;
}

/* Secondary neutral buttons (like export or search) */
#mainContentWrapper input[type="submit"][id*="Search"],
#mainContentWrapper input[type="submit"][id*="Export"],
.btn-secondary {
    background: #ffffff !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important;
}

#mainContentWrapper input[type="submit"][id*="Search"]:hover,
#mainContentWrapper input[type="submit"][id*="Export"]:hover,
.btn-secondary:hover {
    background: #f8fafc !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important;
    transform: translateY(-1.5px);
}

/* ==========================================================================
   HIGH-FIDELITY TABLES & GRIDVIEWS SYSTEM (WITH CLEAN GRID LINES)
   ========================================================================== */
#mainContentWrapper table[id*="grd"],
#mainContentWrapper table[id*="Grd"],
#mainContentWrapper table.GridStyle,
.modern-grid-table {
    border-collapse: collapse !important;
    width: 100% !important;
    margin-top: 18px !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important; /* Soft premium outer border */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
}

#mainContentWrapper table[id*="grd"] th,
#mainContentWrapper table[id*="Grd"] th,
#mainContentWrapper table.GridStyle th,
.modern-grid-table th {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    background: #f1f5f9 !important; /* Beautiful soft slate gray header background */
    color: #334155 !important;
    font-weight: 700 !important;
    font-size: 13px !important; /* Compact, clear size */
    padding: 10px 12px !important; /* Compact padding for excellent data visibility */
    border: 1px solid #cbd5e1 !important; /* Clean, clear grid lines! */
    text-align: left !important;
}

#mainContentWrapper table[id*="grd"] th a,
#mainContentWrapper table[id*="Grd"] th a,
#mainContentWrapper table.GridStyle th a,
#mainContentWrapper table[id*="grd"] th span,
#mainContentWrapper table[id*="Grd"] th span,
#mainContentWrapper table.GridStyle th span {
    color: #334155 !important;
    text-decoration: none !important;
    font-weight: 700 !important;
}

#mainContentWrapper table[id*="grd"] td,
#mainContentWrapper table[id*="Grd"] td,
#mainContentWrapper table.GridStyle td,
.modern-grid-table td {
    padding: 10px 12px !important; /* Compact padding like the original */
    border: 1px solid #cbd5e1 !important; /* Clean, modern vertical and horizontal grid lines! */
    color: #1e293b !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

#mainContentWrapper table[id*="grd"] tr:hover,
#mainContentWrapper table[id*="Grd"] tr:hover,
#mainContentWrapper table.GridStyle tr:hover {
    background-color: #f1f5f9 !important; /* Faint slate hover effect */
}

/* Alternating Row styling with clean modern tone */
#mainContentWrapper table[id*="grd"] tr:nth-child(even),
#mainContentWrapper table[id*="Grd"] tr:nth-child(even),
#mainContentWrapper table.GridStyle tr:nth-child(even) {
    background-color: #f8fafc !important; /* Light modern alternating row */
}

/* ==========================================================================
   SCROLLBAR & MISCELLANEOUS SYSTEMS
   ========================================================================== */
#mainContentWrapper div::-webkit-scrollbar,
.accPanel::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
#mainContentWrapper div::-webkit-scrollbar-track,
.accPanel::-webkit-scrollbar-track {
    background: transparent;
}
#mainContentWrapper div::-webkit-scrollbar-thumb,
.accPanel::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 20px;
}
#mainContentWrapper div::-webkit-scrollbar-thumb:hover,
.accPanel::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Premium modern alerts & message styling */
.msgOk { 
    color: #10b981 !important; 
    font-weight: 700 !important; 
    font-size: 14px !important; 
    margin-top: 12px; 
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.msgErr { 
    color: #ef4444 !important; 
    font-weight: 700 !important; 
    font-size: 14px !important; 
    margin-top: 12px; 
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   STATUS BADGES
   ========================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-green {
    background: #e6fcf5;
    color: #0ca678;
}
.badge-red {
    background: #fff5f5;
    color: #fa5252;
}
.badge-yellow {
    background: #fff9db;
    color: #f59f00;
}

/* Glowing Live Pulse Status Indicator */
.status-dot-pulse {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: statusPulse 2s infinite;
    vertical-align: middle;
}

@keyframes statusPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}



/* ==========================================================================
   VERIFYDOCUMENT STICKY CASE ACTION PANEL & FULL-SCROLL GRID
   ========================================================================== */
.verify-sticky-container {
    position: sticky !important;
    top: -32px !important; /* aligns with padding of mainContentWrapper */
    z-index: 100 !important;
    margin-bottom: 28px !important;
}

.verify-sticky-card {
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: 20px !important;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.03), 0 5px 15px -5px rgba(0, 0, 0, 0.02) !important;
    padding: 24px !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.verify-sticky-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #6366f1, #8b5cf6, #ec4899);
}

.verify-sticky-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.verify-sticky-body {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
}

.verify-action-col {
    flex: 1;
    min-width: 280px;
}

.verify-upload-section {
    max-width: 420px;
}

.verify-fields-section {
    flex: 1.5;
}

.verify-submit-section {
    flex-shrink: 0;
    min-width: 130px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    align-self: flex-end;
    padding-bottom: 4px;
}

.verify-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.mini-doc-grid {
    margin-top: 10px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
}

.mini-doc-grid th {
    padding: 10px 12px !important;
    font-size: 10.5px !important;
}

.mini-doc-grid td {
    padding: 8px 12px !important;
    font-size: 12px !important;
}

/* Candidate Grid Full Scroll Layout */
.candidate-list-card {
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: 20px !important;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.03), 0 5px 15px -5px rgba(0, 0, 0, 0.02) !important;
    padding: 24px !important;
    margin-bottom: 32px !important;
}

.candidate-list-header {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 14px;
    margin-bottom: 20px;
}

.candidate-grid-container {
    overflow-x: auto !important;
    width: 100% !important;
}

.candidate-grid-container table {
    margin-top: 0 !important;
}


