:root {
    /* Base Colors - More Vibrant */
    --p-primary: #3b82f6;
    --p-primary-glow: rgba(59, 130, 246, 0.5);
    --p-primary-hover: #2563eb;
    --p-success: #10b981;
    --p-warning: #f59e0b;
    --p-danger: #ef4444;

    /* Layout Tokens (Light Mode - Standardized) */
    --p-bg: #f8fafc;
    --p-bg-alt: #ffffff;
    --p-sidebar-bg: #0f172a;
    --p-header-bg: rgba(255, 255, 255, 0.8);
    --p-card-bg: #ffffff;
    --p-glass: rgba(255, 255, 255, 0.7);
    --p-border: #e2e8f0;
    --p-border-light: #f1f5f9;
    --p-text-main: #0f172a;
    --p-text-muted: #64748b;
    --p-input-bg: #ffffff;
    --p-hover: #f1f5f9;
    
    /* Premium Shadows */
    --p-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --p-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 10px -2px rgba(0, 0, 0, 0.04);
    --p-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --p-accent-gradient: linear-gradient(135deg, #3b82f6, #6366f1);
}

.dark-mode {
    --p-bg: #020617;
    --p-bg-alt: #0b1120;
    --p-sidebar-bg: #000000;
    --p-header-bg: rgba(2, 6, 23, 0.8);
    --p-card-bg: #0f172a;
    --p-glass: rgba(15, 23, 42, 0.7);
    --p-border: #1e293b;
    --p-border-light: #0f172a;
    --p-text-main: #f8fafc;
    --p-text-muted: #94a3b8;
    --p-input-bg: #0b1120;
    --p-hover: rgba(59, 130, 246, 0.08);
    --p-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --p-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6);
    --p-shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', sans-serif;
}

body {
    background: var(--p-bg);
    color: var(--p-text-main);
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Global Uppercase for Inputs */
input[type="text"]:not([name*="email"]):not([name*="password"]), 
input[type="tel"], 
textarea {
    text-transform: uppercase;
}

.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #020617;
    position: relative;
    overflow: hidden;
}

.login-body::before {
    content: "";
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 60%);
    top: -200px;
    right: -100px;
    filter: blur(80px);
    z-index: 0;
    animation: float 20s infinite alternate ease-in-out;
}

.login-body::after {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
    bottom: -150px;
    left: -100px;
    filter: blur(60px);
    z-index: 0;
    animation: float 25s infinite alternate-reverse ease-in-out;
}

@keyframes worldEntrance {
    0% { opacity: 0; filter: contrast(1.5) brightness(0); transform: scale(1.1) perspective(1000px) rotateX(10deg); }
    100% { opacity: 1; filter: contrast(1) brightness(1); transform: scale(1) perspective(1000px) rotateX(0deg); }
}

@keyframes textGlitch {
    0%, 100% { transform: translate(0); text-shadow: 0 0 10px rgba(59, 130, 246, 0.5); }
    10% { transform: translate(-2px, 1px); color: #0ea5e9; }
    20% { transform: translate(2px, -1px); color: #4f46e5; }
    30% { transform: translate(0); }
}

@keyframes scanBeam {
    0% { transform: translateY(-100vh); opacity: 0; }
    10% { opacity: 0.5; }
    50% { opacity: 1; }
    90% { opacity: 0.5; }
    100% { transform: translateY(100vh); opacity: 0; }
}

.login-wrapper {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.prof-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #010204 0%, #000000 100%);
    z-index: 0;
    overflow: hidden;
}

.prof-bg-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, transparent, rgba(59, 130, 246, 0.4), transparent);
    filter: blur(20px);
    z-index: 5;
    animation: scanBeam 8s infinite linear;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(51, 65, 85, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(51, 65, 85, 0.2) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
    animation: gridPulse 8s ease-in-out infinite alternate;
}

@keyframes gridPulse {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }

    100% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.circuit-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    mask-image: radial-gradient(circle, black 40%, transparent 80%);
}

.c-line {
    position: absolute;
    background: rgba(59, 130, 246, 0.15);
}

.cl-1 {
    width: 100%;
    height: 1px;
    top: 20%;
}

.cl-2 {
    width: 100%;
    height: 1px;
    top: 60%;
}

.cl-3 {
    width: 1px;
    height: 100%;
    left: 30%;
}

.cl-4 {
    width: 1px;
    height: 100%;
    right: 25%;
}

.signal {
    position: absolute;
    background: linear-gradient(to right, transparent, #3b82f6, #60a5fa, #3b82f6, transparent);
    box-shadow: 0 0 15px #3b82f6;
    z-index: 3;
}

.s-1 {
    width: 200px;
    height: 1px;
    top: 20%;
    animation: signalHoriz 4s infinite linear;
}

.s-2 {
    width: 200px;
    height: 1px;
    top: 60%;
    animation: signalHoriz 6s infinite linear reverse;
}

.s-3 {
    width: 1px;
    height: 200px;
    left: 30%;
    background: linear-gradient(to bottom, transparent, #3b82f6, #60a5fa, #3b82f6, transparent);
    animation: signalVert 5s infinite linear;
}

@keyframes signalHoriz {
    from {
        left: -300px;
    }

    to {
        left: 110%;
    }
}

@keyframes signalVert {
    from {
        top: -300px;
    }

    to {
        top: 110%;
    }
}

.cl-node {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 10px #3b82f6, 0 0 20px #3b82f6;
    animation: pulseNode 3s infinite;
}

.cn-1 {
    top: 20%;
    left: 30%;
}

.cn-2 {
    top: 60%;
    left: 30%;
    animation-delay: 1.5s;
}

.cn-3 {
    top: 20%;
    right: 25%;
    animation-delay: 0.8s;
}

.cn-4 {
    top: 60%;
    right: 25%;
    animation-delay: 2.2s;
}

@keyframes pulseNode {
    0% {
        transform: scale(1);
        opacity: 0.5;
        box-shadow: 0 0 5px #3b82f6;
    }

    50% {
        transform: scale(1.6);
        opacity: 1;
        box-shadow: 0 0 25px #3b82f6, 0 0 40px #3b82f6;
    }

    100% {
        transform: scale(1);
        opacity: 0.5;
        box-shadow: 0 0 5px #3b82f6;
    }
}

.hex-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hex {
    position: absolute;
    width: 60px;
    height: 70px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border: 1px solid rgba(59, 130, 246, 0.4);
    animation: floatHex 15s infinite ease-in-out, glowObject 5s infinite ease-in-out;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), transparent);
    backdrop-filter: blur(2px);
}

.hex::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.05), transparent);
}

.hex.hollow {
    background: transparent;
    border: 2px dashed rgba(59, 130, 246, 0.3);
}

.h1 {
    top: 5%;
    right: 5%;
    animation-delay: -2s;
}

.h2 {
    bottom: 10%;
    left: 10%;
    animation-delay: -5s;
}

.h3 {
    top: 35%;
    left: 3%;
    animation-duration: 25s;
}

.h4 {
    bottom: 40%;
    right: 8%;
    animation-delay: -7s;
}

.h5 {
    top: 60%;
    right: 35%;
    animation-duration: 30s;
    opacity: 0.1;
}

@keyframes floatHex {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    50% {
        transform: translate(-20px, 30px) rotate(10deg) scale(1.1);
    }

    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
}

/* Indian Elements */
.indian-stream {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.tr-pulse {
    position: absolute;
    width: 3px;
    height: 150px;
    opacity: 0.4;
    animation: trSignal 6s infinite linear;
}

.s-saffron {
    background: linear-gradient(to bottom, transparent, #FF9933, transparent);
    left: 20%;
    animation-delay: 0s;
}

.s-white {
    background: linear-gradient(to bottom, transparent, #ffffff, transparent);
    left: 50%;
    animation-delay: -2s;
}

.s-green {
    background: linear-gradient(to bottom, transparent, #128807, transparent);
    left: 80%;
    animation-delay: -4s;
}

@keyframes trSignal {
    from {
        transform: translateY(-200px);
        opacity: 0;
    }

    50% {
        opacity: 0.6;
    }

    to {
        transform: translateY(110vh);
        opacity: 0;
    }
}

.ashok-chakra {
    position: absolute;
    top: 15%;
    right: 15%;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(59, 130, 246, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: spinChakra 10s infinite linear, glowObject 4s infinite ease-in-out;
}

.ashok-chakra::after {
    content: "";
    position: absolute;
    width: 140%;
    height: 140%;
    border: 1px dashed rgba(59, 130, 246, 0.4);
    border-radius: 50%;
    animation: spinChakra 20s infinite linear reverse;
}

.ashok-chakra::before {
    content: "";
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 128, 0.2);
    box-shadow: 0 0 2px rgba(0, 0, 128, 0.1);
}

@keyframes spinChakra {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Rupee Symbols */
.rupee-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.rupee {
    position: absolute;
    font-size: 48px;
    font-weight: 700;
    color: rgba(96, 165, 250, 0.6);
    /* Brighter blue */
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
    animation: floatRupee 12s infinite ease-in-out, glowObject 6s infinite ease-in-out;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.4));
}

@keyframes glowObject {

    0%,
    100% {
        opacity: 0.4;
        filter: brightness(1) drop-shadow(0 0 5px rgba(59, 130, 246, 0.4));
    }

    50% {
        opacity: 1;
        filter: brightness(1.5) drop-shadow(0 0 20px rgba(59, 130, 246, 0.8));
    }
}

.r1 {
    top: 15%;
    left: 15%;
    animation-delay: 0s;
}

.r2 {
    bottom: 20%;
    right: 15%;
    animation-delay: -3s;
}

.r3 {
    top: 60%;
    left: 40%;
    animation-delay: -6s;
    opacity: 0.2;
}

.r4 {
    top: 30%;
    right: 40%;
    animation-delay: -9s;
}

@keyframes floatRupee {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0.1; filter: blur(2px); }
    50% { transform: translate(40px, -60px) rotate(180deg); opacity: 0.6; filter: blur(0); }
    100% { transform: translate(0, 0) rotate(360deg); opacity: 0.1; filter: blur(2px); }
}

/* Fragment Dots */
.fragments { position: absolute; width: 100%; height: 100%; top: 0; left: 0; pointer-events: none; z-index: 4; }
.f-dot { position: absolute; width: 2px; height: 2px; background: #3b82f6; border-radius: 50%; box-shadow: 0 0 10px #3b82f6; }
.f1 { top: 20%; left: 15%; animation: floatFragment 10s infinite linear; }
.f2 { top: 60%; left: 45%; animation: floatFragment 15s infinite linear reverse; }
.f3 { top: 30%; right: 20%; animation: floatFragment 12s infinite linear; }
.f4 { bottom: 10%; right: 10%; animation: floatFragment 18s infinite linear reverse; }
.f5 { top: 40%; left: 80%; animation: floatFragment 20s infinite linear; }
.f6 { bottom: 30%; left: 20%; animation: floatFragment 14s infinite linear reverse; }

@keyframes floatFragment {
    0% { transform: translate(0, 0) scale(1); opacity: 0; }
    20% { opacity: 0.8; }
    80% { opacity: 0.8; }
    100% { transform: translate(100px, -100px) scale(0.1); opacity: 0; }
}

/* Global Scanline Overlay */
.global-scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(59, 130, 246, 0.02) 50%);
    background-size: 100% 4px;
    z-index: 100;
    pointer-events: none;
    opacity: 0.3;
}

.hud-bracket { display: none; }

/* Tech Stats (Audio-style bars) */
.tech-stats { position: absolute; top: 50%; width: 40px; transform: translateY(-50%); display: flex; flex-direction: column; gap: 4px; }
.ts-left { left: 15px; }
.ts-right { right: 15px; }
.ts-bar { height: 2px; width: 100%; background: #3b82f6; opacity: 0.3; animation: barMove 2s infinite ease-in-out; }
.b1 { animation-delay: 0.1s; width: 60%; }
.b2 { animation-delay: 0.3s; width: 100%; }
.b3 { animation-delay: 0.5s; width: 40%; }
.b4 { animation-delay: 0.2s; width: 80%; }
.b5 { animation-delay: 0.4s; width: 50%; }
.b6 { animation-delay: 0.6s; width: 90%; }

@keyframes barMove {
    0%, 100% { transform: scaleX(1); opacity: 0.3; }
    50% { transform: scaleX(1.5); opacity: 0.7; }
}

.login-body {
    background: #000000;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    animation: worldEntrance 1.5s ease-out forwards;
}

@keyframes worldEntrance {
    0% { opacity: 0; filter: contrast(1.2) brightness(0.5); transform: scale(1.1); }
    100% { opacity: 1; filter: contrast(1) brightness(1); transform: scale(1); }
}

.login-wrapper {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 40px;
    position: relative;
    z-index: 11;
    animation: floatingEntrance 1.5s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    border-radius: 24px;
}

.glass-card {
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

/* Spotlight behind the form for readability */
.login-card::before {
    content: "";
    position: absolute;
    inset: -100px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

@keyframes floatingEntrance {
    from { opacity: 0; transform: scale(1.1); filter: blur(20px); }
    to { opacity: 1; transform: scale(1); filter: blur(0); }
}

/* Hide the shimmering border from previous version */
.login-card::after { display: none; }

/* Center Branding */
.login-header {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.brand-identity-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.brand-logo {
    max-width: 280px;
    margin: 0 auto 10px auto;
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(40px) scale(0.9); filter: blur(10px); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* Removed hover effect on login-card */


.brand-logo {
    max-width: 300px;
    height: auto;
    margin-bottom: 10px;
    display: block;
    filter: none !important; /* Remove any previous filters */
}

@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Clean up redundant blocks */

.logo-svg-wrapper {
    width: 75px;
    height: 75px;
}

.satyam-s {
    width: 100%;
    height: 100%;
}

.brand-text-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.brand-upper h1 {
    font-family: 'Ubuntu', sans-serif;
    font-size: 4.2rem;
    font-weight: 700;
    color: #3b82f6;
    margin: 0;
    letter-spacing: -2px;
    line-height: 0.7;
    position: relative;
    animation: textGlitch 8s infinite;
}

.brand-upper h1 sup {
    font-size: 0.7rem;
    top: -1.7rem;
    margin-left: 3px;
    color: #3b82f6;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    animation: neonFlicker 5s infinite;
}

@keyframes neonFlicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
    20%, 24%, 55% { opacity: 0.5; }
}

.brand-lower {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--p-text-main);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 5px;
    padding-right: 5px;
}

.login-card .form-group {
    margin-bottom: 20px;
    animation: fadeInForm 0.5s ease-out forwards;
    opacity: 0;
}

.login-card .form-group:nth-of-type(1) {
    animation-delay: 0.2s;
}

.login-card .form-group:nth-of-type(2) {
    animation-delay: 0.3s;
}

@keyframes fadeInForm {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card .form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #f8fafc;
}

.login-card .form-group input {
    width: 100%;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    color: #ffffff;
    padding: 12px 18px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.login-card .form-group input:focus {
    background: rgba(59, 130, 246, 0.12);
    border-color: #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.form-group input::placeholder,
.premium-input::placeholder {
    color: var(--p-text-muted);
    opacity: 0.6;
}

.login-card .form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.login-card .form-group input:focus {
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
    transform: scale(1.01);
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #0ea5e9, #4f46e5);
    color: white;
    padding: 16px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px -5px rgba(14, 165, 233, 0.4);
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 20px 25px -5px rgba(14, 165, 233, 0.4), 0 0 30px rgba(99, 102, 241, 0.3);
    background: linear-gradient(135deg, #0284c7, #4338ca);
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: -100%;
    left: -100%;
    width: 50%;
    height: 300%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(25deg);
    transition: none;
    pointer-events: none;
}

.btn-primary:hover::before {
    left: 200%;
    transition: left 0.8s ease-in-out;
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.97);
    box-shadow: 0 5px 10px -2px rgba(14, 165, 233, 0.5);
    filter: brightness(0.9);
}

.btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(14, 165, 233, 0.4);
}

.btn-primary:active {
    transform: scale(0.98);
}

.alert {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.875rem;
    text-align: center;
}

.alert.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.hidden {
    display: none !important;
}

.test-credentials {
    margin-top: 24px;
    text-align: center;
    color: #9ca3af;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Dashboard Layout with Sidebar */
.app-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background-color: var(--p-bg);
    transition: background-color 0.3s ease;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--p-sidebar-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    z-index: 1050;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s ease;
    overflow-y: auto;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.app-layout.collapsed .sidebar {
    transform: translateX(-100%);
}

.app-layout.collapsed .main-wrapper {
    margin-left: 0;
}

.sidebar-brand {
    height: 100px;
    min-height: 100px;
    padding: 0 20px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
}

.sidebar-brand h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
    flex-grow: 1;
}

.sidebar-menu li {
    padding: 2px 14px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    min-height: 52px;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    line-height: 1.3;
    position: relative;
    overflow: hidden;
}

.sidebar-menu a svg {
    margin-right: 14px;
    transition: transform 0.4s ease;
}

.sidebar-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    transform: translateX(4px);
}

.sidebar-menu a:hover svg {
    transform: scale(1.15) rotate(5deg);
}

.sidebar-menu .active a {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.85) 0%, rgba(37, 99, 235, 0.85) 100%);
    backdrop-filter: blur(8px);
    color: #ffffff;
    box-shadow: 0 8px 25px -5px rgba(59, 130, 246, 0.4);
    font-weight: 700;
}

.sidebar-menu .active a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 25%;
    height: 50%;
    width: 4px;
    background: #ffffff;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px #ffffff;
}

.menu-badge {
    background: var(--p-danger);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    margin-left: auto;
    font-family: sans-serif;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.4);
    animation: badgePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badgePop {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Main Content Area */
.main-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--p-bg);
    margin-left: 280px;
    height: 100vh;
    overflow-y: auto;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
    min-width: 0;
    max-width: 100%;
    position: relative;
    /* Added to anchor absolute children like the wizard modal */
}

/* Top Navigation */
.top-nav {
    background-color: var(--p-header-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    height: 100px;
    min-height: 100px;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--p-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.top-nav .nav-title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--p-text-main);
    letter-spacing: -0.025em;
    line-height: 1;
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-email {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--p-text-muted);
}

.logout-btn {
    color: #dc2626;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 8px 16px;
    background-color: #fee2e2;
    border-radius: 6px;
    transition: all 0.2s;
}

.logout-btn:hover {
    background-color: #fecaca;
}

/* Dashboard Content */
.dashboard-content {
    padding: 30px;
    flex-grow: 1;
}

.page-title {
    font-size: 1.5rem;
    color: var(--p-text-main);
    margin-bottom: 24px;
    font-weight: 600;
}

.welcome-card {
    background: var(--p-card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--p-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.welcome-card h3 {
    margin-bottom: 12px;
    color: var(--p-text-main);
    font-size: 1.25rem;
}

.welcome-card p {
    color: var(--p-text-muted);
    line-height: 1.5;
}

/* Sidebar Toggle Button (Visible everywhere) */
#menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--p-bg-alt);
    border: 1px solid var(--p-border);
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    margin-right: 15px;
    color: var(--p-text-main);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

#menu-toggle:hover {
    background: #e5e7eb;
}

/* Sidebar Collapsed State for Desktop */
.sidebar.collapsed {
    transform: translateX(-280px);
}

.sidebar.collapsed+.main-wrapper {
    margin-left: 0;
}

@media screen and (max-width: 1024px) {
    .sidebar {
        position: fixed;
        left: -250px;
        top: 0;
        bottom: 0;
        z-index: 1001;
        transition: left 0.3s ease;
    }

    .sidebar.active {
        left: 0;
    }

    /* Show Hamburger Menu only on Mobile/Tablet */
    #menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f3f4f6;
        border: 1px solid #d1d5db;
        border-radius: 6px;
        padding: 8px;
        cursor: pointer;
        margin-right: 15px;
        color: var(--p-text-main);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    .login-body {
        background: #0f172a;
        margin: 0;
        padding: 0;
        min-height: 100vh;
        position: relative;
        overflow: hidden;
    }

    .prof-bg-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    }

    .grid-overlay {
        position: absolute;
        width: 100%;
        height: 100%;
        background-image: radial-gradient(#334155 1px, transparent 1px);
        background-size: 40px 40px;
        opacity: 0.3;
    }

    .tech-particles {
        position: absolute;
        width: 100%;
        height: 100%;
    }

    .t-p {
        position: absolute;
        background: rgba(56, 189, 248, 0.1);
        border-radius: 50%;
    }

    .tp-1 {
        width: 300px;
        height: 300px;
        top: -100px;
        left: -100px;
    }

    .tp-2 {
        width: 200px;
        height: 200px;
        bottom: 50px;
        right: 50px;
    }

    .tp-3 {
        width: 150px;
        height: 150px;
        top: 20%;
        right: 20%;
    }

    .tp-4 {
        width: 100px;
        height: 100px;
        bottom: 20%;
        left: 10%;
    }

    .tp-5 {
        width: 400px;
        height: 400px;
        top: 40%;
        left: 30%;
        opacity: 0.05;
    }

    .login-wrapper {
        position: relative;
        z-index: 1;
        margin-left: 0 !important;
        width: 100%;
    }

    .top-nav {
        padding: 0 15px;
    }

    .dashboard-content {
        padding: 15px;
    }
}

@media screen and (max-width: 768px) {
    .page-title {
        font-size: 1.25rem;
    }

    .user-email {
        display: none;
        /* Hide email on small screens to save space */
    }

    /* Make large padding sections flexible for mobile */
    .form-section-body {
        padding: 20px !important;
    }

    /* Stack flex elements */
    .pay-period-row {
        gap: 20px !important;
    }

    /* Adjust data tables for mobile */
    .data-table-container {
        overflow-x: auto;
    }

    .data_table th,
    .data_table td {
        padding: 10px 15px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    /* Adjust modals for mobile */
    .modal-content {
        width: 90% !important;
        padding: 20px !important;
    }

    /* App-like Bottom Navigation for Employees (Customization for touch) */
    .sidebar-menu a {
        padding: 15px;
        font-size: 1rem;
    }
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.sidebar-overlay.active {
    display: block;
}

/* Dashboard Component Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--p-card-bg);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--p-border);
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.blue {
    background-color: #eff6ff;
    color: #3b82f6;
}

.stat-icon.green {
    background-color: #f0fdf4;
    color: #22c55e;
}

.stat-icon.red {
    background-color: #fef2f2;
    color: #ef4444;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--p-text-muted);
    font-weight: 500;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--p-text-main);
}

.dashboard-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 24px;
}

.info-panel {
    background: var(--p-card-bg);
    border-radius: 12px;
    border: 1px solid var(--p-border);
    overflow: hidden;
    box-shadow: var(--p-shadow-sm);
}

.panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--p-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.panel-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--p-text-main);
}

.panel-body {
    padding: 0;
    min-height: 120px;
}

.empty-state {
    padding: 40px 20px;
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
}

.upcoming-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--p-border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.upcoming-item:last-child {
    border-bottom: none;
}

.upcoming-name {
    font-weight: 500;
    color: var(--p-text-main);
}

.upcoming-date {
    font-size: 0.85rem;
    color: var(--p-text-muted);
    background: var(--p-bg-alt);
    padding: 4px 10px;
    border-radius: 4px;
}

/* Sidebar Toggle / Collapsed State */
.app-layout.collapsed .sidebar {
    transform: translateX(-100%) !important;
}

.app-layout.collapsed .main-wrapper {
    margin-left: 0 !important;
}

/* Sidebar Toggle / Collapsed State (Desktop) */
.app-layout.collapsed .sidebar {
    transform: translateX(-280px);
}

.app-layout.collapsed .main-wrapper {
    margin-left: 0;
}

/* Mobile Sidebar Behavior */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 2000;
        box-shadow: none;
    }

    .sidebar.active {
        transform: translateX(0);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.3);
    }

    .main-wrapper {
        margin-left: 0 !important;
        width: 100%;
    }

    .app-layout.collapsed .sidebar {
        transform: translateX(-100%);
    }

    .app-layout.collapsed .main-wrapper {
        margin-left: 0;
    }

    #menu-toggle {
        display: flex !important;
    }

    #close-sidebar {
        display: block !important;
    }
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1060;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* --- PREMIUM UI COMPONENTS --- */

.premium-card {
    background: var(--p-card-bg);
    border-radius: 16px;
    border: 1px solid var(--p-border);
    box-shadow: var(--p-shadow);
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-card:hover {
    box-shadow: var(--p-shadow-lg);
    transform: translateY(-5px);
}

.info-panel {
    background: var(--p-card-bg);
    border-radius: 16px;
    border: 1px solid var(--p-border);
    overflow: hidden;
    box-shadow: var(--p-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-panel:hover {
    box-shadow: var(--p-shadow-lg);
    transform: translateY(-4px);
    border-color: var(--p-primary);
}
.premium-filter-bar {
    display: flex;
    gap: 16px;
    align-items: center;
    background: var(--p-glass);
    backdrop-filter: blur(12px);
    padding: 16px 24px;
    border-radius: 14px;
    border: 1px solid var(--p-border);
    box-shadow: var(--p-shadow-sm);
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.premium-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--p-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.premium-input,
.premium-select {
    padding: 10px 14px;
    border: 1.5px solid var(--p-border);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--p-text-main);
    background: var(--p-input-bg);
    transition: all 0.2s ease;
    outline: none;
    min-width: 140px;
}

.premium-input:focus,
.premium-select:focus {
    border-color: var(--p-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

.premium-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-decoration: none;
}

.p-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.p-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.4);
    filter: brightness(1.1);
}

.p-btn-outline {
    background: transparent;
    border: 1.5px solid var(--p-border);
    color: var(--p-text-muted);
}

.p-btn-outline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--p-text-main);
}

/* Premium Action Buttons (Glass look) */
.p-action-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--p-card-bg);
    border: 1px solid var(--p-border);
    color: var(--p-text-muted);
    text-decoration: none;
    position: relative;
}

.p-action-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--p-shadow);
    z-index: 10;
}

.p-action-btn.view:hover {
    background: #eff6ff;
    color: #3b82f6;
    border-color: #bfdbfe;
}

.p-action-btn.edit:hover {
    background: #fffbeb;
    color: #d97706;
    border-color: #fef3c7;
}

.p-action-btn.delete:hover {
    background: #fef2f2;
    color: #ef4444;
    border-color: #fecaca;
}

.p-action-btn.attendance:hover {
    background: #f5f3ff;
    color: #8b5cf6;
    border-color: #ddd6fe;
}

.p-action-btn.enable:hover {
    background: #ecfdf5;
    color: #10b981;
    border-color: #d1fae5;
}

.p-action-btn.disable:hover {
    background: #fff1f2;
    color: #e11d48;
    border-color: #ffe4e6;
}

/* Status Badges */
.p-badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.p-badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.p-badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.p-badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.p-badge-info {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.p-badge-muted {
    background: var(--p-bg-alt);
    color: var(--p-text-muted);
    border: 1px solid var(--p-border);
}

/* Dashboard Header */
.premium-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.premium-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--p-text-main);
    letter-spacing: -0.5px;
}

/* --- Flatpickr Premium Theme Customization --- */
.flatpickr-calendar {
    background: var(--p-card-bg) !important;
    border: 1px solid var(--p-border) !important;
    box-shadow: var(--p-shadow-lg) !important;
    border-radius: 16px !important;
    font-family: inherit !important;
    width: 310px !important;
    padding: 8px !important;
}

.flatpickr-months {
    padding-top: 8px !important;
}

.flatpickr-month {
    color: var(--p-text-main) !important;
    fill: var(--p-text-main) !important;
    height: 34px !important;
}

.flatpickr-current-month {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: var(--p-text-main) !important;
}

.flatpickr-monthDropdown-months {
    font-weight: 700 !important;
    background: var(--p-card-bg) !important;
    color: var(--p-text-main) !important;
}

.flatpickr-weekday {
    color: var(--p-text-muted) !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
}

.flatpickr-day {
    color: var(--p-text-main) !important;
    border-radius: 10px !important;
    border: none !important;
    margin: 2px !important;
    max-width: 38px !important;
    height: 38px !important;
    line-height: 38px !important;
    transition: all 0.2s ease !important;
}

.flatpickr-day:hover, .flatpickr-day.prevMonthDay:hover, .flatpickr-day.nextMonthDay:hover, .flatpickr-day.focus {
    background: var(--p-hover) !important;
    color: var(--p-primary) !important;
}

.flatpickr-day.today {
    border: 1px solid var(--p-primary) !important;
}

.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange {
    background: var(--p-primary) !important;
    color: white !important;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.4) !important;
}

.flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay {
    color: var(--p-text-muted) !important;
    opacity: 0.4 !important;
}

.flatpickr-calendar.arrowTop:before, .flatpickr-calendar.arrowTop:after { border-bottom-color: var(--p-border) !important; }
.flatpickr-calendar.arrowBottom:before, .flatpickr-calendar.arrowBottom:after { border-top-color: var(--p-border) !important; }

.numInputWrapper span.arrowUp:after { border-bottom-color: var(--p-text-muted) !important; }
.numInputWrapper span.arrowDown:after { border-top-color: var(--p-text-muted) !important; }

/* Customizing the input specifically to look better */
input.premium-input[type="date"], input.premium-input.flatpickr-input {
    background-color: var(--p-bg) !important;
    color: var(--p-text-main) !important;
    border: 1.5px solid var(--p-border) !important;
    border-radius: 50px !important;
    padding: 12px 24px !important;
    padding-right: 48px !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%233b82f6' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 20px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: var(--p-shadow-sm) !important;
}

input.premium-input[type="date"]:hover, input.premium-input.flatpickr-input:hover {
    border-color: var(--p-primary) !important;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.1) !important;
}

input.premium-input[type="date"]:focus, input.premium-input.flatpickr-input:focus {
    border-color: var(--p-primary) !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1) !important;
    outline: none !important;
}


/* Hide native browser date picker icons when Flatpickr is used */
input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    cursor: pointer;
}

/* Reveal Animations */
.reveal-item { opacity: 0; transform: translateY(20px); transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal-active { opacity: 1; transform: translateY(0); }

/* --- Premium Form Redesign --- */
.p-form-container {
    max-width: 1400px;
    margin: 0 auto;
}

.p-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 1024px) {
    .p-form-grid {
        grid-template-columns: 1fr;
    }
}

.p-form-section {
    background: var(--p-card-bg);
    border-radius: 16px;
    border: 1px solid var(--p-border);
    box-shadow: var(--p-shadow);
    overflow: hidden;
    margin-bottom: 0;
}

.p-form-section-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--p-border-light);
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(59, 130, 246, 0.03);
}

.p-form-section-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--p-text-main);
}

.p-form-section-body {
    padding: 24px;
    flex-grow: 1;
}

.p-form-group {
    margin-bottom: 20px;
}

.p-form-group:last-child {
    margin-bottom: 0;
}

.p-form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--p-text-muted);
}

.p-form-label .req {
    color: var(--p-danger);
    margin-left: 2px;
}

.p-form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--p-border);
    background: var(--p-bg);
    color: var(--p-text-main);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    outline: none;
}

.p-form-control:focus {
    border-color: var(--p-primary);
    box-shadow: 0 0 0 3px var(--p-primary-glow);
    background: var(--p-card-bg);
}

/* Fix for Select dropdowns in current forms */
select.p-form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Button Toggles (Gender Selection, etc.) */
.button-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-toggle {
    padding: 10px 24px;
    border: 1px solid var(--p-border);
    background: var(--p-bg-alt);
    color: var(--p-text-main);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--p-shadow-sm);
}

.btn-toggle:hover {
    border-color: var(--p-primary);
    background: var(--p-hover);
    transform: translateY(-1px);
}

.btn-toggle.active {
    background: var(--p-primary);
    color: #ffffff;
    border-color: var(--p-primary);
    box-shadow: 0 4px 15px var(--p-primary-glow);
    transform: translateY(-1px);
}

.dark-mode .btn-toggle {
    background: var(--p-card-bg);
}

.dark-mode .btn-toggle.active {
    background: var(--p-primary);
    color: #ffffff;
}

/* Form Group Spacing */
.p-form-group {
    margin-bottom: 20px;
}



