/* ==============================================================================
   HR ID Card Generator - CSS Design System (Vanilla CSS)
   ============================================================================== */

:root {
    --bg-color: #080A12;
    --bg-gradient: radial-gradient(circle at 50% 0%, #290505 0%, #080a12 85%);
    
    --panel-bg: rgba(17, 22, 41, 0.55);
    --panel-border: rgba(174, 0, 0, 0.25);
    --panel-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    --text-main: #FFFFFF;
    --text-muted: #A0A5C0;
    --text-dark: #64748B;
    
    --primary-color: #ae0000;
    --primary-hover: #d10000;
    --accent-color: #e50000;
    
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'Consolas', monospace;
    
    --card-width: 240px;
    --card-height: 360px;
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.5;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

.app-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Header Section */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(47, 54, 95, 0.3);
}

.app-header h1 {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, #FFFFFF 0%, #A0A5C0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.app-header .subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Status Badge */
.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(17, 22, 41, 0.8);
    border: 1px solid var(--panel-border);
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator.green {
    background-color: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.status-indicator.yellow {
    background-color: var(--warning);
    box-shadow: 0 0 8px var(--warning);
}

.status-indicator.red {
    background-color: var(--error);
    box-shadow: 0 0 8px var(--error);
}

/* Glassmorphism Panel Component */
.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--panel-shadow);
}

/* Inputs & Form Elements */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.input-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="text"] {
    background-color: rgba(10, 14, 27, 0.7);
    border: 1px solid var(--panel-border);
    color: var(--text-main);
    padding: 10px 14px;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 14px;
    width: 100%;
    outline: none;
    transition: all 0.3s ease;
}

input[type="text"]:focus {
    border-color: var(--primary-hover);
    box-shadow: 0 0 10px rgba(174, 0, 0, 0.15);
}

.input-row {
    display: flex;
    gap: 15px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.input-with-button {
    display: flex;
    gap: 10px;
}

.input-with-button input {
    flex-grow: 1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #800000 100%);
    color: var(--text-main);
    box-shadow: 0 4px 15px rgba(174, 0, 0, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(209, 0, 0, 0.4);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:disabled {
    background: #1B2138;
    color: var(--text-dark);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-secondary {
    background-color: #232943;
    border: 1px solid var(--panel-border);
    color: var(--text-muted);
}

.btn-secondary:hover {
    background-color: #313757;
    color: var(--text-main);
}

.btn-accent {
    background: linear-gradient(135deg, #4A154B 0%, #68156B 100%);
    color: var(--text-main);
    box-shadow: 0 4px 15px rgba(104, 21, 107, 0.3);
}

.btn-accent:hover {
    background: linear-gradient(135deg, #68156B 0%, #85228A 100%);
    transform: translateY(-1px);
}

/* File Drag & Drop Zones */
.drop-zone {
    background-color: rgba(10, 14, 27, 0.5);
    border: 2px dashed var(--panel-border);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.drop-zone:hover, .drop-zone.active {
    border-color: var(--primary-hover);
    background-color: rgba(174, 0, 0, 0.05);
}

.drop-zone-prompt {
    font-size: 13px;
    color: var(--text-muted);
}

.drop-zone-prompt .browse-link {
    color: var(--primary-hover);
    text-decoration: underline;
    font-weight: 600;
}

.drop-zone-file {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.help-text {
    font-size: 12px;
    color: var(--text-dark);
    margin-top: 2px;
}

/* Tab Layout */
.tab-bar {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid rgba(47, 54, 95, 0.3);
    margin-bottom: 20px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    outline: none;
}

.tab-btn:hover {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.03);
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.tab-btn.active {
    color: var(--text-main);
    border-bottom-color: var(--primary-hover);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Single Employee Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 25px;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

.form-card h2, .preview-card h2, .batch-container h2, .template-utility h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
    border-left: 3px solid var(--primary-hover);
    padding-left: 10px;
}

.form-card form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Live Preview Card (Visual replication of Illustrator template) */
.preview-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.id-card-outer {
    background: #06080F;
    border: 1px solid rgba(47, 54, 95, 0.5);
    border-radius: 12px;
    padding: 30px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-grow: 1;
}

/* Split Preview Dashboard */
.split-preview {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    width: 100%;
}

.id-card-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.card-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.id-card {
    width: 240px;
    height: 380px;
    background-color: #ffffff;
    border: 1px solid #1F253F;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    font-family: Arial, sans-serif; /* Mimic default font of template */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Front Card background */
.id-card.front {
    background-color: #ffffff;
}

/* Back Card background */
.id-card.back {
    background-color: #ffffff;
}

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
}

/* Photo Area */
.card-photo-container {
    position: absolute;
    top: 86px;
    left: 43px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

.card-photo {
    width: 154px;
    height: 154px;
    background-color: #ffffff;
    border: 0px solid #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.card-photo.circle {
    border-radius: 50% !important;
    clip-path: circle(50% at 50% 50%) !important;
    overflow: hidden !important;
}

.card-photo.ellipse {
    border-radius: 50% / 35% !important;
    clip-path: ellipse(50% 35% at 50% 50%) !important;
    overflow: hidden !important;
}

.card-photo.square {
    border-radius: 0 !important;
}

.card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#mockCardPhotoInner {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform-origin: center center;
    transition: transform 0.1s ease-out;
}

.card-photo img.card-photo-inner-img {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100% !important;
    min-height: 100% !important;
    width: auto !important;
    height: auto !important;
    transform-origin: center center;
    transition: transform 0.1s ease-out;
    display: block;
}

.photo-placeholder {
    font-size: 11px;
    font-weight: bold;
    color: var(--text-dark);
    letter-spacing: 1px;
}

/* Front Metadata Text */
.card-name {
    position: absolute;
    top: 250px;
    left: 0;
    width: 100%;
    color: #1a1f38;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    padding: 0 10px;
    word-break: break-all;
    z-index: 4;
}

.card-blood {
    position: absolute;
    top: 275px;
    left: 0;
    width: 100%;
    color: #1a1f38;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    padding: 0 10px;
    word-break: break-all;
    z-index: 4;
}

/* Back Metadata Text */
.card-emergency {
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    color: #1a1f38;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    padding: 0 10px;
    word-break: break-all;
    z-index: 4;
}

.card-empid {
    position: absolute;
    top: 150px;
    left: 0;
    width: 100%;
    color: #1a1f38;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    padding: 0 10px;
    word-break: break-all;
    z-index: 4;
}

/* Layout Adjustments UI */
.layout-editor-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 15px;
}

.layout-control-card {
    background: rgba(10, 14, 27, 0.4);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 15px;
}

.layout-control-card h3 {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-main);
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 5px;
}

.control-row {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr 60px;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.control-row label {
    font-size: 12px;
    color: var(--text-muted);
}

.control-row input[type="range"] {
    width: 100%;
    cursor: pointer;
}

.control-row input[type="color"] {
    border: none;
    background: transparent;
    height: 25px;
    width: 50px;
    cursor: pointer;
}

.value-label {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--primary-hover);
    text-align: right;
}

.value-input {
    background-color: rgba(10, 14, 27, 0.7);
    border: 1px solid var(--panel-border);
    color: var(--primary-hover);
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 4px;
    width: 65px;
    text-align: right;
    outline: none;
    transition: all 0.3s ease;
}

.value-input:focus {
    border-color: var(--primary-hover);
    box-shadow: 0 0 5px rgba(174, 0, 0, 0.3);
}

.value-input::-webkit-outer-spin-button,
.value-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.value-input {
    -moz-appearance: textfield;
}

.select-dropdown {
    background-color: rgba(10, 14, 27, 0.7);
    border: 1px solid var(--panel-border);
    color: var(--text-main);
    padding: 10px 14px;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 14px;
    width: 100%;
    outline: none;
    cursor: pointer;
}

/* Batch Processing Layout */
.batch-setup-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 10px;
}

.data-preview-section {
    margin-top: 25px;
}

.data-preview-section h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.table-wrapper {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background-color: rgba(10, 14, 27, 0.4);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

thead th {
    background-color: #1A1F38;
    color: var(--text-main);
    font-weight: 600;
    padding: 10px 12px;
    position: sticky;
    top: 0;
    border-bottom: 1px solid var(--panel-border);
}

tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(47, 54, 95, 0.2);
    color: var(--text-muted);
}

tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

tbody tr.empty-row td {
    text-align: center;
    padding: 30px;
    color: var(--text-dark);
}

.photo-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}

.photo-badge.matched {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.photo-badge.missing {
    background-color: rgba(239, 68, 68, 0.15);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.photo-badge.staging {
    background-color: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge-inline {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}

.status-badge-inline.pending {
    background-color: rgba(100, 116, 139, 0.15);
    color: var(--text-dark);
}

.status-badge-inline.generating {
    background-color: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    animation: pulse 1.5s infinite;
}

.status-badge-inline.success {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.status-badge-inline.failed {
    background-color: rgba(239, 68, 68, 0.15);
    color: var(--error);
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.action-bar {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Template Utility styling */
.template-instructions {
    background-color: rgba(10, 14, 27, 0.4);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.template-instructions h3 {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.mapping-table {
    width: 100%;
    margin-top: 5px;
}

.mapping-table th {
    font-weight: bold;
    color: var(--text-muted);
    padding: 6px 12px;
}

.mapping-table td {
    padding: 8px 12px;
}

.mapping-table code {
    background-color: #1A1F38;
    color: var(--accent-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
}

.action-box {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Progress bar section */
.progress-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: fadeIn 0.3s ease;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
}

#progressLabel {
    color: var(--text-muted);
}

#progressPercent {
    color: var(--primary-hover);
}

.progress-bar-container {
    background-color: rgba(10, 14, 27, 0.7);
    border: 1px solid var(--panel-border);
    height: 16px;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    box-shadow: 0 0 10px rgba(174, 0, 0, 0.5);
    transition: width 0.3s ease;
}

/* System Console Logs */
.console-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.console-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(47, 54, 95, 0.2);
    padding-bottom: 8px;
}

.console-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-clear {
    background: transparent;
    border: none;
    color: var(--text-dark);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
    outline: none;
}

.btn-clear:hover {
    color: var(--text-muted);
}

.console-body {
    background-color: #05060A;
    border: 1px solid rgba(47, 54, 95, 0.5);
    border-radius: 8px;
    height: 150px;
    overflow-y: auto;
    padding: 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.log-line {
    word-break: break-all;
}

.log-line.info {
    color: #38BDF8;
}

.log-line.success {
    color: var(--success);
}

.log-line.warning {
    color: var(--warning);
}

.log-line.error {
    color: var(--error);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 14, 27, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--panel-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .batch-setup-row {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        gap: 12px;
    }
}

/* ==============================================================================
   Employee Assistance Portal - View Switching & Custom Navigation Styles
   ============================================================================== */

.view-container {
    display: none;
    width: 100%;
    min-height: 100vh;
    flex-direction: column;
    animation: fadeIn 0.4s ease;
}

.view-container.active {
    display: flex;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    border-bottom: 1px solid rgba(174, 0, 0, 0.25);
    background-color: rgba(6, 8, 15, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.nav-logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    user-select: none;
}

.nav-logo-img {
    height: 38px;
    width: auto;
    display: block;
    object-fit: contain;
}

.logo-red {
    color: #ae0000;
    font-weight: 900;
}

.logo-white {
    color: #ffffff;
}

.portal-badge {
    background-color: rgba(174, 0, 0, 0.15);
    color: #ff5555;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 5px;
}

.portal-badge.admin {
    background-color: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.btn-nav {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 8px 18px;
}

.btn-nav:hover {
    background-color: rgba(174, 0, 0, 0.15);
    border-color: #ae0000;
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px;
    max-width: 800px;
    margin: 0 auto;
    flex-grow: 1;
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #ff8888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 18px;
    color: #a0a5c0;
    margin-bottom: 40px;
    line-height: 1.5;
}

.btn-large {
    padding: 14px 36px;
    font-size: 16px;
    border-radius: 8px;
}

/* Landing Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto 80px auto;
    padding: 0 20px;
    width: 100%;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: #a0a5c0;
}

/* Login Panel */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    padding: 60px 20px;
}

.login-card {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 35px;
}

.login-subtitle {
    font-size: 13px;
    color: #a0a5c0;
    margin-top: -10px;
}

.login-error-msg {
    background-color: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

input[type="password"] {
    background-color: rgba(10, 14, 27, 0.7);
    border: 1px solid var(--panel-border);
    color: var(--text-main);
    padding: 10px 14px;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 14px;
    width: 100%;
    outline: none;
    transition: all 0.3s ease;
}

input[type="password"]:focus {
    border-color: var(--primary-hover);
    box-shadow: 0 0 10px rgba(174, 0, 0, 0.15);
}

/* Admin Table & Action Buttons */
.table-card {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.table-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    margin-right: 5px;
}

.btn-action.btn-delete {
    background-color: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.btn-action.btn-delete:hover {
    background-color: #ef4444;
    color: #ffffff;
}

.btn-action.btn-download {
    background-color: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.btn-action.btn-download:hover {
    background-color: #10b981;
    color: #ffffff;
}

/* Checkbox and Login OTP Step Styling */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}
/* Input Validation Error Highlights & Styling */
.error-msg {
    display: none;
    color: #ef4444;
    font-size: 11px;
    font-weight: 500;
    margin-top: 4px;
    animation: fadeIn 0.2s ease;
}

input.invalid,
select.invalid,
.drop-zone.invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.25) !important;
}
