/* Import Google Font Outfit and Inter */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* Color system & tokens */
:root {
    --bg-main: #0B0F19;
    --bg-card: rgba(17, 24, 39, 0.7);
    --bg-card-hover: rgba(17, 24, 39, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(99, 102, 241, 0.2);

    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;

    --primary: #6366F1;
    /* Indigo */
    --primary-hover: #4F46E5;
    --primary-glow: rgba(99, 102, 241, 0.4);

    --accent-cyan: #06B6D4;
    --accent-cyan-glow: rgba(6, 182, 212, 0.3);

    --success: #10B981;
    /* Emerald */
    --success-glow: rgba(16, 185, 129, 0.2);

    --danger: #EF4444;
    /* Rose */
    --danger-glow: rgba(239, 68, 68, 0.2);

    --warning: #F59E0B;
    /* Amber */
    --warning-glow: rgba(245, 158, 11, 0.2);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets & styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    background-image:
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.12) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Utility Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
}

/* Header design */
header {
    text-align: center;
    margin-bottom: 3rem;
    animation: none;
}

header h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #FFF 30%, #A5B4FC 70%, #22D3EE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    display: inline-block;
    position: relative;
}

header h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 25%;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent-cyan), transparent);
    border-radius: 2px;
}

header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 0.8rem;
    font-weight: 300;
}

/* Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Glass Card styling */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.2rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
}

.glass-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 15px 35px -5px rgba(99, 102, 241, 0.08);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.card-title i {
    color: var(--accent-cyan);
}

/* Forms styling */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    transition: var(--transition-fast);
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-container i {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
    font-size: 1.05rem;
}

input,
textarea,
select {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.85rem 1rem 0.85rem 2.8rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-normal);
    outline: none;
}

textarea {
    padding-left: 2.8rem;
    resize: vertical;
    min-height: 90px;
}

input:focus,
textarea:focus,
select:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

input:focus+i,
textarea:focus+i {
    color: var(--primary);
}

/* Config Accordion/Tabs styling */
.accordion-header {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 1.5rem;
    transition: var(--transition-normal);
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.accordion-content.open {
    max-height: 1200px;
    transition: max-height 0.8s ease-in-out;
    margin-bottom: 1.5rem;
    padding: 0.5rem;
}

/* Button styling */
.btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    padding: 1rem 2rem;
    cursor: pointer;
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    transition: transform 0.5s ease-out;
}

.btn:active::after {
    transform: translate(-50%, -50%) scale(1);
    transition: 0s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.5);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    box-shadow: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #FFF;
    box-shadow: none;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #DC2626 100%);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.45);
}

/* Call Overlay / Wave Animation */
.call-status-panel {
    background: rgba(6, 182, 212, 0.05);
    border: 1px dashed var(--accent-cyan);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    display: none;
    animation: pulseBorder 2s infinite;
}

.call-status-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-cyan);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.call-timer {
    font-size: 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

/* Audio wave animation */
.sound-waves {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    height: 40px;
    margin: 1.2rem 0;
}

.sound-waves span {
    display: block;
    width: 4px;
    height: 10px;
    background: var(--accent-cyan);
    border-radius: 2px;
    animation: wave 1.2s infinite ease-in-out;
}

.sound-waves span:nth-child(2) {
    animation-delay: 0.1s;
    height: 18px;
}

.sound-waves span:nth-child(3) {
    animation-delay: 0.2s;
    height: 26px;
}

.sound-waves span:nth-child(4) {
    animation-delay: 0.3s;
    height: 35px;
}

.sound-waves span:nth-child(5) {
    animation-delay: 0.4s;
    height: 22px;
}

.sound-waves span:nth-child(6) {
    animation-delay: 0.5s;
    height: 14px;
}

.sound-waves span:nth-child(7) {
    animation-delay: 0.6s;
    height: 30px;
}

/* Call History Styling */
.history-section {
    margin-top: 3rem;
    animation: fadeInUp 0.8s ease;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.history-header h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.history-header h2 i {
    color: var(--primary);
}

.history-table-container {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

th,
td {
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: var(--bg-card-hover);
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    font-size: 0.88rem;
    text-transform: uppercase;
}

tr {
    transition: var(--transition-fast);
}

tr:hover td {
    background: rgba(255, 255, 255, 0.015);
}

td {
    color: var(--text-secondary);
    vertical-align: middle;
}

.cell-bold {
    color: var(--text-primary);
    font-weight: 500;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #F87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #FBBF24;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.empty-state {
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1.2rem;
    display: block;
}

/* Animations */
@keyframes wave {

    0%,
    100% {
        transform: scaleY(0.3);
    }

    50% {
        transform: scaleY(1);
    }
}

@keyframes pulseBorder {
    0% {
        border-color: rgba(6, 182, 212, 0.4);
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.1);
    }

    50% {
        border-color: rgba(6, 182, 212, 1);
        box-shadow: 0 0 15px 2px rgba(6, 182, 212, 0.25);
    }

    100% {
        border-color: rgba(6, 182, 212, 0.4);
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.1);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive fixes */
@media (max-width: 768px) {
    body {
        padding: 1rem 0.8rem;
    }

    header h1 {
        font-size: 2.2rem;
    }

    .glass-card {
        padding: 1.5rem;
    }

    th,
    td {
        padding: 0.8rem 1rem;
    }
}

/* Premium Login Styles */
.login-wrapper {
    min-height: calc(100vh - 4rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

/* Split Page Container */
.login-split-container {
    display: flex;
    width: 100%;
    max-width: 1000px;
    min-height: 560px;
    background: #FFFFFF;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-left-pane {
    flex: 1;
    padding: 3.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #FFFFFF;
    color: #1F2937;
}

.login-right-pane {
    flex: 1.1;
    background: linear-gradient(135deg, #1E3A8A 0%, #172554 100%);
    padding: 3.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    color: #FFFFFF;
    text-align: center;
    position: relative;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

/* Left Pane Details */
.login-form-container {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

.login-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #6B7280;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.form-group-login {
    margin-bottom: 1.5rem;
}

.form-group-login label {
    display: block;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

.forgot-pass-link {
    font-size: 0.85rem;
    color: #2563EB;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.forgot-pass-link:hover {
    text-decoration: underline;
    color: #1D4ED8;
}

.form-group-login input {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: #111827;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-normal);
    outline: none;
}

.form-group-login input::placeholder {
    color: #9CA3AF;
}

.form-group-login input:focus {
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    background: #FFFFFF;
}

/* Checkbox remember me */
.remember-me-row {
    margin-bottom: 1.8rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 1.8rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #4B5563;
    user-select: none;
    font-weight: 500;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 16px;
    width: 16px;
    background-color: #FFFFFF;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    transition: var(--transition-fast);
}

.checkbox-container:hover input~.checkmark {
    border-color: #9CA3AF;
}

.checkbox-container input:checked~.checkmark {
    background-color: #1E3A8A;
    border-color: #1E3A8A;
}

.checkmark::after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked~.checkmark::after {
    display: block;
}

.checkbox-container .checkmark::after {
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Login Submit Button */
.btn-login-submit {
    background: #1E3A8A;
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
    width: 100%;
    text-align: center;
}

.btn-login-submit:hover {
    background: #172554;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(30, 58, 138, 0.35);
}

.signup-prompt {
    text-align: center;
    margin-top: 1.8rem;
    font-size: 0.9rem;
    color: #4B5563;
}

.signup-prompt a {
    color: #2563EB;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.signup-prompt a:hover {
    text-decoration: underline;
    color: #1D4ED8;
}

/* Right Pane Details */
.brand-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    align-self: center;
    margin-bottom: 1.5rem;
}

.brand-logo {
    background: #FFFFFF;
    color: #1E3A8A;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.brand-logo i {
    color: #1E3A8A;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #FFFFFF;
}

/* Macbook Pro Mockup Frame */
.laptop-illustration {
    width: 100%;
    max-width: 400px;
    margin: 1rem auto;
    perspective: 1000px;
}

.macbook-frame {
    width: 100%;
    position: relative;
}

.macbook-screen {
    width: 90%;
    margin: 0 auto;
    aspect-ratio: 16/10;
    background: #111827;
    border: 8px solid #E5E7EB;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    position: relative;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.macbook-screen::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #374151;
    border-radius: 50%;
    z-index: 10;
}

.dashboard-preview {
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.macbook-keyboard {
    width: 100%;
    height: 10px;
    background: #D1D5DB;
    border-radius: 0 0 6px 6px;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.macbook-keyboard::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #9CA3AF;
    border-radius: 0 0 4px 4px;
}

/* Carousel Text */
.carousel-text {
    width: 100%;
    max-width: 380px;
    margin-top: 1rem;
}

.carousel-text h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #FFFFFF;
}

.carousel-text p {
    font-size: 0.88rem;
    color: #93C5FD;
    line-height: 1.4;
    margin-bottom: 1.2rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.carousel-dots .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: var(--transition-fast);
}

.carousel-dots .dot.active {
    background: #FFFFFF;
    transform: scale(1.2);
}

/* Main Header modifications for Dashboard */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    animation: none;
    text-align: left;
}

.main-header .header-titles h1::after {
    left: 0;
    width: 60px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.55rem 1.1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.user-badge i {
    color: var(--accent-cyan);
}

.btn-logout {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #EF4444;
    padding: 0.55rem 1.1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: none;
    text-decoration: none;
    transition: var(--transition-normal);
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-logout:hover {
    background: #EF4444;
    color: #FFF;
    border-color: #EF4444;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.35);
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .login-split-container {
        flex-direction: column;
        max-width: 480px;
    }

    .login-right-pane {
        display: none;
    }
}

@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .btn-logout {
        width: auto;
    }
}

/* White background for login screen */
body.login-body {
    background-color: #f1f5f9 !important;
    background-image: none !important;
    color: #1F2937 !important;
}

/* ---------------------------------------------------- */
/* LIGHT THEME OVERRIDES FOR THE MVC VIEW WRAPPER      */
/* ---------------------------------------------------- */
.dash-wrapper {
    /* Override dark theme tokens to match FinDash light theme */
    --bg-main: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F8FAFC;
    --border-color: #E2E8F0;
    --border-glow: #CBD5E1;
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
}

/* Override input styling inside panel wrapper to be premium light-themed */
.dash-wrapper input,
.dash-wrapper textarea,
.dash-wrapper select {
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    color: #0F172A;
}

.dash-wrapper input:focus,
.dash-wrapper textarea:focus,
.dash-wrapper select:focus {
    background: #FFFFFF;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

/* Override Accordion styles inside panel wrapper */
.dash-wrapper .accordion-header {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
}

.dash-wrapper .accordion-header:hover {
    background: #F1F5F9;
    border-color: #CBD5E1;
}

/* Secondary button for light theme */
.dash-wrapper .btn-secondary {
    background: #F1F5F9;
    border: 1px solid #CBD5E1;
    color: #475569;
    box-shadow: none;
}

.dash-wrapper .btn-secondary:hover {
    background: #E2E8F0;
    border-color: #94A3B8;
    color: #0F172A;
    box-shadow: none;
}

/* Badge & Status Styles */
.dash-wrapper .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dash-wrapper .badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.dash-wrapper .badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.dash-wrapper .badge-info {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Action button icons styling */
.dash-wrapper .action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    font-size: 0.9rem;
    margin: 0 0.25rem;
}

.dash-wrapper .action-btn-toggle {
    background: rgba(99, 102, 241, 0.1);
    color: #6366F1;
}

.dash-wrapper .action-btn-toggle:hover {
    background: #6366F1;
    color: #FFFFFF;
}

.dash-wrapper .action-btn-delete {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.dash-wrapper .action-btn-delete:hover {
    background: #EF4444;
    color: #FFFFFF;
}