/* =========================================
   SAMARTH Portal Theme - Enterprise UI
   Government of India Style
   ========================================= */

/* --- Variables --- */
:root {
    /* Colors */
    --primary-color: #009688;
    /* Teal - Gov Standard */
    --primary-dark: #00796b;
    --secondary-color: #1a237e;
    /* Dark Navy - Sidebar */
    --accent-color: #ff9800;
    /* Orange - Highlights */
    --text-color: #333333;
    --text-muted: #666666;
    --bg-color: #ffffff;
    /* White Page Background */
    --card-bg: #f8f9fa;
    /* Light Grey Card Background */
    --white: #ffffff;
    --border-color: #e0e0e0;
    --danger: #d32f2f;
    --success: #388e3c;
    --warning: #fbc02d;

    /* Metrics */
    --sidebar-width: 260px;
    --header-height: 60px;
    --content-padding: 24px;
    --card-padding: 20px;
    --card-margin: 24px;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    /* Subtle shadow */
    --transition-speed: 0.3s;
}

/* --- Responsive Adjustments --- */
@media screen and (max-width: 1600px) {
    :root {
        --sidebar-width: 240px;
        --content-padding: 20px;
    }
}

@media screen and (max-width: 1400px) {
    :root {
        --sidebar-width: 220px;
        --header-height: 55px;
        --content-padding: 15px;
        --card-padding: 15px;
        --card-margin: 15px;
    }
    body { font-size: 13px !important; }
}

@media screen and (max-width: 1200px) {
    :root {
        --sidebar-width: 200px;
        --header-height: 50px;
    }
    body { font-size: 12.5px !important; }
}

@media screen and (max-width: 992px) {
    :root {
        --sidebar-width: 60px; /* Mini sidebar or hidden */
    }
    .header-brand { font-size: 16px; }
}

/* --- Reset & Base --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.app-btn-warning {
    background-color: var(--warning);
    color: #333;
}

.app-btn-success {
    background-color: var(--success);
    /* #388e3c */
    color: var(--white);
    border: 1px solid var(--success);
}

.app-btn-success:hover {
    background-color: #2e7d32;
}

body {
    font-family: 'Roboto', 'Open Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

/* Global Focus Ring */
:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 1px;
    box-shadow: 0 0 0 4px rgba(0, 150, 136, 0.1);
}

.hamburger-btn:focus, .header-brand:focus, .nav-item:focus {
    outline-color: var(--white);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 500;
    margin-bottom: 0.8rem;
    color: #2c3e50;
}

.page-title {
    font-size: 18px;
    font-weight: 500;
    color: #444;
    margin: 0;
    /* Removed border-bottom as it's now often in card-header */
}

/* --- Layout Structure --- */
.main-wrapper {
    display: flex;
    min-height: 100vh;
}

.content-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    padding: var(--content-padding);
    background-color: var(--bg-color);
    transition: margin-left var(--transition-speed) ease;
}

/* Sidebar Toggle State */
.sidebar-closed .content-wrapper {
    margin-left: 0;
}

.sidebar-closed .app-sidebar {
    transform: translateX(-100%);
}

/* --- Header --- */
.app-header {
    height: var(--header-height);
    background-color: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid var(--border-color);
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
}

.hamburger-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #555;
    margin-right: 15px;
}

.header-brand {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary-color);
    letter-spacing: 0.5px;
}

.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.header-center .page-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Header User Dropdown --- */
.header-user-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 12px;
    cursor: pointer;
    position: relative;
    border-radius: 4px;
    transition: background 0.2s;
}

.header-user-dropdown:hover {
    background: #f5f5f5;
}

.user-avatar {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
}

.user-name {
    font-weight: 500;
    color: #444;
}

.header-user-dropdown .arrow {
    font-size: 10px;
    color: #888;
    transition: transform 0.2s;
}

.header-user-dropdown.open .arrow {
    transform: rotate(180deg);
}

.header-user-dropdown .dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: #fff;
    min-width: 180px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 8px 0;
    z-index: 2000;
    display: block;
    /* Managed by ng-show */
}

.dropdown-header {
    background: #f8f9fa;
    padding: 8px 15px;
    font-size: 11px;
    text-transform: uppercase;
    color: #888;
    font-weight: 600;
    margin-bottom: 5px;
}

.header-user-dropdown .dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: #444;
    font-size: 13px;
    transition: background 0.2s;
}

.header-user-dropdown .dropdown-menu li a:hover {
    background: #f5f5f5;
    color: var(--primary-color);
}

.header-user-dropdown .dropdown-menu li a i {
    width: 16px;
    text-align: center;
}

.divider {
    height: 1px;
    background: #eee;
    margin: 5px 0;
}

/* --- Sidebar --- */
.app-sidebar {
    width: var(--sidebar-width);
    background-color: var(--secondary-color);
    color: #fff;
    position: fixed;
    top: var(--header-height);
    bottom: 0;
    left: 0;
    transition: transform var(--transition-speed) ease;
    z-index: 900;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar-menu {
    padding: 10px 0;
}

.sidebar-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-menu li a {
    display: block;
    padding: 12px 20px;
    color: #cfd8dc;
    font-size: 14px;
    border-left: 4px solid transparent;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-left-color: var(--accent-color);
}

.menu-category {
    padding: 15px 20px 5px;
    font-size: 11px;
    text-transform: uppercase;
    color: #9fa8da;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.menu-category:hover {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-menu li [ng-show] {
    transition: all 0.3s ease;
}

.float-right {
    float: right;
}

.sidebar-menu i,
.sidebar-menu .icon {
    width: 20px;
    text-align: center;
    margin-right: 10px;
}

/* --- Cards & Containers --- */
.card {
    background: var(--card-bg);
    /* Light Grey Card */
    border-radius: 0;
    /* No Rounded Corners */
    box-shadow: var(--card-shadow);
    padding: var(--card-padding);
    /* Reduced padding might be needed inside, but card padding is standard */
    margin-bottom: var(--card-margin);
    border: 1px solid var(--border-color);
}

.card-header {
    background: transparent;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
}

/* --- Enterprise Data Tables --- */
.table-container {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    /* Boundary for the scrollable area */
    background: #fff;
}

table.dataTable {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0 !important;
    white-space: nowrap;
    /* Prevent wrapping for dense data */
}

table.dataTable thead th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 500;
    padding: 12px 10px;
    border-bottom: none;
    font-size: 13px;
    text-transform: uppercase;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

table.dataTable tbody td {
    padding: 8px 10px;
    /* Compact rows */
    border-bottom: 1px solid #eee;
    font-size: 13px;
    color: #444;
    border-right: 1px solid #eee;
}

table.dataTable.stripe tbody tr.odd,
table.dataTable.display tbody tr.odd {
    background-color: #f9f9f9;
    /* Very light alternate shading */
}

table.dataTable tbody tr:hover {
    background-color: #e0f2f1;
}

/* Pagination & Controls Styling Override */
.dataTables_wrapper .dataTables_paginate {
    float: right;
    text-align: right;
    padding-top: 10px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    box-sizing: border-box;
    display: inline-block;
    min-width: 1.5em;
    padding: 0.5em 1em;
    margin-left: 2px;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    color: #333 !important;
    border: 1px solid transparent;
    border-radius: 0;
    /* Rectangular */
    background: transparent;
    font-size: 13px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    color: white !important;
    border: 1px solid var(--primary-color);
    background-color: var(--primary-color);
    background: var(--primary-color);
    /* Override gradient */
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    color: white !important;
    border: 1px solid var(--primary-color);
    background-color: var(--primary-color);
    background: var(--primary-color);
}

.dataTables_wrapper .dataTables_info {
    padding-top: 15px;
    font-size: 13px;
    color: #666;
}

/* --- Forms (Gov Style) --- */
.form-section-header {
    background-color: #eeeeee;
    padding: 10px 15px;
    margin: -20px -20px 20px -20px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: #444;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
    color: #444;
}

.form-group label.required::after {
    content: " *";
    color: var(--danger);
}

.app-input-control {
    width: 100%;
    padding: 8px 10px;
    /* Standard Gov Height ~34px */
    border: 1px solid #ccc;
    border-radius: 0;
    /* Square borders */
    font-size: 13px;
    transition: border 0.2s;
    background-color: #fff;
    height: 34px;
}

.app-input-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: none;
    /* No shadow for strict gov style */
}

/* Icon Support for Inputs */
.has-icon-left {
    position: relative;
    width: 100%;
}

.has-icon-left .app-input-control {
    padding-left: 40px !important;
}

.has-icon-left>i,
.has-icon-left>span>i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    z-index: 5;
    pointer-events: none;
}

/* --- Buttons --- */
.app-btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border: 1px solid var(--primary-color);
    border-radius: 0;
    /* Rectangular */
    font-size: 13px;
    font-weight: 500;
    text-transform: capitalize;
    /* Normal case usually */
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: none;
    /* Flat buttons preferred */
}

.app-btn:hover {
    background-color: var(--primary-dark);
}

/* Secondary Button (toolbar style) */
.app-btn-secondary,
button.dt-button {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ccc;
}

.app-btn-secondary:hover,
button.dt-button:hover {
    background: #e2e6ea;
}

/* --- Custom Grid & Utils --- */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-md-3,
.col-md-4,
.col-md-6,
.col-md-8,
.col-md-9,
.col-4 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 768px) {
    .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-md-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }

    .col-md-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }
}

.col-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

/* Helper Classes */
.pb-0 {
    padding-bottom: 0 !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

/* Dashboard Cards - Keep them white */
.stat-card {
    background: #fff;
    border-radius: 0;
    box-shadow: var(--card-shadow);
    border-left: 4px solid var(--primary-color);
}

.stat-icon {
    border-radius: 0;
}

/* Login adjustments */
.login-card {
    border-top: 5px solid var(--primary-color);
    background: #fff;
}

/* --- Assessor Form Specifics --- */
.radio-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.radio-inline {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    cursor: pointer;
}

.radio-inline input[type="radio"] {
    margin-right: 8px;
    accent-color: var(--primary-color);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Import Section */
.import-card {
    border: 1px dashed #ccc;
    background: #f9f9f9;
    padding: 20px;
    text-align: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.import-card:hover {
    border-color: var(--primary-color);
    background: #f0fdfc;
}

.import-icon {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.import-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.import-desc {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
}

.file-upload-wrapper {
    position: relative;
    display: inline-block;
}

/* =========================================
   ENHANCED APP-SELECT STYLES
   ========================================= */

.app-select-container {
    position: relative;
    width: 100%;
}

.app-select-display {
    width: 100%;
    padding: 8px 35px 8px 10px;
    border: 1px solid #ccc;
    border-radius: 0;
    background-color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    outline: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.app-select-display:hover {
    border-color: var(--primary-color);
}

.app-select-container.open .app-select-display {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 150, 136, 0.1);
}

.app-select-display .selected-text {
    color: #333;
    font-weight: 500;
}

.app-select-display .placeholder {
    color: #999;
}

.app-select-display .arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: #666;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.app-select-display .arrow.rotated {
    transform: translateY(-50%) rotate(180deg);
}

.app-select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    max-height: 320px;
    overflow: hidden;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-select-search-wrapper {
    position: relative;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.app-select-search-wrapper .search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 12px;
    pointer-events: none;
}

.app-select-search {
    width: 100%;
    padding: 10px 10px 10px 32px;
    border: none;
    outline: none;
    font-size: 13px;
    background: transparent;
}

.app-select-search:focus {
    background: #fff;
}

.app-select-options {
    max-height: 220px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

.app-select-options::-webkit-scrollbar {
    width: 6px;
}

.app-select-options::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.app-select-options::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.app-select-options::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.app-select-options li {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #f5f5f5;
}

.app-select-options li:hover,
.app-select-options li.highlighted {
    background-color: #e0f2f1;
}

.app-select-options li.selected {
    background-color: #009688;
    color: #fff;
    font-weight: 600;
}

.app-select-options li.selected:hover {
    background-color: #00796b;
}

.app-select-options li .check-icon {
    color: var(--primary-color);
    font-size: 12px;
    flex-shrink: 0;
}

.app-select-options li.no-results {
    color: #999;
    text-align: center;
    cursor: default;
    padding: 20px;
    flex-direction: column;
    gap: 8px;
}

.app-select-options li.no-results:hover {
    background-color: transparent;
}

.app-select-options li.no-results i {
    font-size: 24px;
    color: #ccc;
}

/* =========================================
   ENHANCED APP-DATE (CALENDAR) STYLES
   ========================================= */

.app-date-container {
    position: relative;
    width: 100%;
}

.app-date-input-wrapper {
    position: relative;
    width: 100%;
}

.app-date-input-wrapper .calendar-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s ease;
    pointer-events: all;
}

.app-date-input-wrapper .calendar-icon:hover {
    color: var(--primary-dark);
}

.app-date-container.open .app-input-control {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 150, 136, 0.1);
}

.app-calendar {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: #fff;
    border: 1px solid var(--primary-color);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    min-width: 300px;
    animation: slideDown 0.2s ease;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: var(--primary-color);
    color: #fff;
}

.calendar-nav-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 6px 10px;
    font-size: 14px;
    transition: background 0.2s ease;
    border-radius: 2px;
}

.calendar-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.calendar-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.calendar-month {
    font-size: 15px;
    font-weight: 600;
}

.calendar-year {
    font-size: 12px;
    opacity: 0.9;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.calendar-weekday {
    padding: 8px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    padding: 8px;
    background: #fafafa;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.15s ease;
    background: #fff;
    color: #333;
    font-weight: 500;
}

.calendar-day.empty {
    cursor: default;
    background: transparent;
    pointer-events: none;
}

.calendar-day:not(.empty):hover {
    background: #e0f2f1;
    color: var(--primary-dark);
    transform: scale(1.05);
}

.calendar-day.selected {
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
}

.calendar-day.today {
    border: 2px solid var(--accent-color);
    font-weight: 600;
}

.calendar-day.today.selected {
    border-color: #fff;
}

.calendar-footer {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.calendar-today-btn,
.calendar-clear-btn {
    flex: 1;
    padding: 6px 12px;
    font-size: 12px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.calendar-today-btn {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.calendar-today-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.calendar-clear-btn {
    color: #666;
}

.calendar-clear-btn:hover {
    background: #f5f5f5;
    border-color: #999;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .app-calendar {
        min-width: 280px;
    }

    .calendar-day {
        font-size: 12px;
    }
}

/* =========================================
   ENHANCED GLOBAL SNACKBAR STYLES
   ========================================= */

.app-snackbar {
    visibility: hidden;
    min-width: 300px;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 14px 24px;
    position: fixed;
    z-index: 10000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    border-radius: 4px;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s ease-in-out, bottom 0.3s ease-in-out;
}

.app-snackbar.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
    /* Slight slight up animation */
}

/* Success State */
.app-snackbar.success {
    background-color: #2e7d32;
    /* Green */
    border-left: 5px solid #1b5e20;
}

/* Error State */
.app-snackbar.error {
    background-color: #c62828;
    /* Red */
    border-left: 5px solid #b71c1c;
}

/* Info State */
.app-snackbar.info {
    background-color: #0277bd;
    /* Blue */
    border-left: 5px solid #01579b;
}

/* Warning State */
.app-snackbar.warning {
    background-color: #f9a825;
    /* Yellow/Orange */
    color: #333;
    border-left: 5px solid #f57f17;
}


/* --- Global Key Handling Styles --- */
table.dataTable tbody tr.selected-row {
    background-color: #b2dfdb !important;
    cursor: pointer;
    outline: 2px solid var(--primary-color);
}

/* =========================================
   BOOTSTRAP COMPATIBILITY & UTILS
   ========================================= */

/* Cursor Fixes */
button,
input[type="button"],
input[type="submit"],
.btn,
.app-btn,
.badge,
.status-badge,
a {
    cursor: pointer;
}

/* Button Mappings */
.btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 0;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

.btn-secondary {
    background-color: #f8f9fa;
    color: #333;
    border-color: #ccc;
}

.btn-secondary:hover {
    background-color: #e2e6ea;
}

.btn-success {
    background-color: var(--success);
    color: var(--white);
    border-color: var(--success);
}

.btn-success:hover {
    background-color: #2e7d32;
}

.btn-danger {
    background-color: var(--danger);
    color: var(--white);
    border-color: var(--danger);
}

.btn-danger:hover {
    background-color: #c62828;
}

.btn-info {
    background-color: #0288d1;
    /* Info Blue */
    color: var(--white);
    border-color: #0288d1;
}

.btn-info:hover {
    background-color: #0277bd;
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Badge Mappings */
.badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.badge-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-warning {
    background: #fff3e0;
    color: #ef6c00;
}

.badge-danger {
    background: #ffebee;
    color: #c62828;
}

.badge-info {
    background: #e3f2fd;
    color: #0288d1;
}

/* Form Control Mapping */
.form-control {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    font-size: 13px;
    height: 34px;
    background: #fff;
    border-radius: 0;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Margin/Padding Utils matching Bootstrap */
.mr-1 {
    margin-right: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

/* --- Gallery Zoom & Fullscreen --- */
.zoom-enabled {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.is-zoomed {
    transform: scale(2);
    cursor: zoom-out;
    max-height: none !important;
    max-width: none !important;
}

.gallery-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    z-index: 2000 !important;
}

.gallery-fullscreen .modal-content {
    height: 100vh !important;
    border-radius: 0 !important;
}

.gallery-fullscreen .modal-body {
    height: 100vh !important;
}

.modal-body {
    min-height: 400px;
}

.media-viewer-container {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.media-control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.media-control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* --- Row Navigation Highlights --- */
.nav-row-focused {
    background-color: rgba(0, 150, 136, 0.1) !important;
    outline: 2px solid var(--primary-color) !important;
    outline-offset: -2px;
}

.table.hover tbody tr.nav-row-focused:hover {
    background-color: rgba(0, 150, 136, 0.15) !important;
}

.app-select-options li.highlighted {
    background-color: #f0fdfa !important;
    color: var(--primary-color);
}

/* --- Brand Logo & Typography Styles --- */
.brand-logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-brand-logo {
    transition: opacity 0.3s, padding 0.3s;
}

.app-sidebar.closed .sidebar-brand-logo {
    display: none;
}

.sidebar-brand-logo img {
    transition: transform 0.4s ease;
}

.sidebar-brand-logo:hover img {
    transform: scale(1.08);
}

/* Fix for Innocox Logo Pill in Login */
.innocox-logo-pill {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.v-panel-logo {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.header-brand span {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}