﻿/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hide browser's default password reveal button */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none !important;
}

/* For WebKit browsers (Chrome, Edge) - hide auto-fill button only */
input[type="password"]::-webkit-credentials-auto-fill-button {
    display: none !important;
}
/* Remove unwanted focus outlines from non-interactive elements */
h1, h2, h3, h4, h5, h6, p, span, div, label {
    outline: none !important;
    user-select: text; /* Prevents text selection on headings */
}

/* Remove outline from all elements on click */
*:focus {
    outline: none !important;
}

/* But keep outline for interactive elements for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #4A90E2 !important;
    outline-offset: 2px;
}

/* Remove default focus styles */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Prevent text selection on non-input elements */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow text selection only where needed */
input, textarea, [contenteditable="true"] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background-color: #F5F5F5;
    color: #1A1A1A;
    overflow-x: hidden;
}
.error-message {
    background: #fee2e2;
    border-left: 4px solid #dc2626;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 6px;
    color: #dc2626;
    font-size: 14px;
    font-weight: 500;
}
/* Main Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles - Always Visible on Desktop */
.sidebar {
    width: 250px;
    background-color: white;
    position: fixed;
    left: 0;
    top: 71px;
    bottom: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
    z-index: 1000;
}
.sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    border-bottom: 1px solid #F0F0F0;
}


    .sidebar-logo img {
        height: 33px;
        width: 136px;
        object-fit: contain;
        position: fixed;
        top: 17px;
        left: 28px;
        z-index: 1000;
    }





.sidebar-menu {
    list-style: none;
    padding: 20px 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
}

.sidebar-menu-item {
    position: relative;
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 2px 10px;
    border-radius: 8px;
}

    .sidebar-menu-item:hover {
        background-color: #F8F8F8;
    }
    .sidebar-menu-item.active {
        background-color: #E3F2FD;
        color: #0088FF;
        font-weight: 500;
        border-right: 3px solid #0088FF;
        margin-left: 10px;
    }

       

   /* .sidebar-menu-item img {
        width: 20px;
        height: 20px;
        opacity: 0.6;
    }*/

    .sidebar-menu-item.active img {
        opacity: 1;
    }

    .sidebar-menu-item span {
        font-size: 14px;
        color: #333333;
        font-weight: 500;
    }

    .sidebar-menu-item.active span {
        color: #0088FF;
        font-weight: 600;
    }

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #F0F0F0;
}

.sign-out-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    color: #DC3545;
    font-size: 14px;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border-radius: 8px;
    transition: background-color 0.2s;
}

    .sign-out-btn:hover {
        background-color: #FFF5F5;
    }

/* Top Bar Styles */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 30px;
    z-index: 999;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.top-bar-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-info {
    text-align: right;
}

.profile-name {
    font-size: 14px;
    font-weight: 600;
    color: #1A1A1A;
}

.profile-role {
    font-size: 12px;
    color: #666666;
}

.profile-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #0088FF;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

    .profile-circle:hover {
        transform: scale(1.05);
    }

/* Main Content */
.main-content {
    margin-left: 250px;
    margin-top: 70px;
    padding: 30px;
    flex: 1;
    min-height: calc(100vh - 70px);
}

/* Login Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    height: 100%;
    height: -webkit-fill-available;
    overflow-x: hidden;
}

body {
    width: 100%;
    min-height: 100%;
    min-height: -webkit-fill-available;
}

.login-container {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    min-height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--h2-bg-page);
    padding: 20px;
    font-family: var(--h2-font-family);
    overflow-x: hidden;
    overflow-y: auto;
}

.header-section {
    text-align: center;
    margin-bottom: 30px;
    flex-shrink: 0;
}

.logo {
    height: 50px;
    margin-bottom: 25px;
}

/* Mobile: align to top, use safe viewport height */
@media (max-width: 768px) {
    .login-container {
        justify-content: flex-start;
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .header-section {
        margin-bottom: 16px;
    }

    .logo {
        height: 40px;
        margin-bottom: 12px;
    }
}

.header-section h1 {
    font-size: var(--h2-font-size-4xl);
    font-weight: var(--h2-font-weight-semibold);
    color: var(--h2-text-heading);
    margin-bottom: 8px;
}

.header-section p {
    font-size: var(--h2-font-size-base);
    color: var(--h2-brand-primary);
}

.login-card {
    background: var(--h2-bg-card);
    padding: 20px;
    border-radius: var(--h2-radius-lg);
    box-shadow: var(--h2-shadow-md);
    width: 100%;
    max-width: 450px;
}

.card-header {
    padding: 0px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    background-color: transparent;
    border-bottom: 0px solid rgba(0, 0, 0, .125);
}

.shield-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.card-header h2 {
    font-size: var(--h2-font-size-3xl);
    font-weight: var(--h2-font-weight-normal);
    color: var(--h2-brand-primary);
    margin: 0;
}

.card-subtitle {
    font-size: var(--h2-font-size-sm);
    color: var(--h2-text-muted);
    margin-bottom: 30px;
    margin-left: 5px;
    margin-top: 0;
}

.form-group {
    margin-bottom: 24px;
}

    .form-group label {
        display: block;
        font-size: var(--h2-font-size-sm);
        font-weight: var(--h2-font-weight-light);
        color: var(--h2-text-muted);
        margin-bottom: 8px;
    }

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

.input-icon {
    position: absolute;
    left: 16px;
    width: 18px;
    height: 18px;
    object-fit: contain;
    opacity: 0.5;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 1px solid var(--h2-border-default);
    border-radius: var(--h2-radius-lg);
    font-size: var(--h2-font-size-base);
    outline: none;
    transition: border-color var(--h2-transition-fast);
    background: var(--h2-bg-card);
    color: var(--h2-text-primary);
}

    .input-wrapper input:focus {
        border-color: var(--h2-brand-accent);
    }

    .input-wrapper input::placeholder {
        color: var(--h2-text-muted);
    }

.toggle-btn {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eye-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.toggle-btn:hover .eye-icon {
    opacity: 0.7;
}

.signin-btn {
    width: 100%;
    padding: 16px;
    background-color: var(--h2-brand-primary);
    color: var(--h2-text-inverse);
    border: none;
    border-radius: var(--h2-radius-md);
    font-size: var(--h2-font-size-base);
    font-weight: var(--h2-font-weight-semibold);
    cursor: pointer;
    transition: background-color var(--h2-transition-fast);
    margin-top: 10px;
}

    .signin-btn:hover {
        background-color: var(--h2-brand-primary-hover);
    }

    .signin-btn:active {
        transform: translateY(1px);
    }

/* Dashboard Styles */
/*.page-header {
    margin-bottom: 30px;
}

.page-title {
    font-size: 28px;
    font-weight: bold;
    color: #1A1A1A;
    margin-bottom: 4px;
}

.page-subtitle {
    font-size: 14px;
    color: #666666;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

    .stat-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

.stat-label {
    font-size: 14px;
    color: #666666;
    margin-bottom: 12px;
    font-weight: 500;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #1A1A1A;
    margin-bottom: 8px;
}

.stat-change {
    font-size: 13px;
    color: #10B981;
    font-weight: 500;
}*/

/* Content Sections */
.content-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.content-card {
    background-color: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.content-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 4px;
}

.content-card-subtitle {
    font-size: 13px;
    color: #666666;
    margin-bottom: 20px;
}

/* Session List */
.session-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    background-color: #F8F9FA;
}



    .session-info {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .session-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: #E3F2FD;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
    }

    .session-details h4 {
        font-size: 14px;
        font-weight: 600;
        color: #1A1A1A;
        margin-bottom: 2px;
    }

    .session-details p {
        font-size: 12px;
        color: #666666;
    }

    .session-badge {
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
        color: white;
    }

        .session-badge.completed {
            background-color: #10B981;
        }

        .session-badge.dispensing {
            background-color: #3B82F6;
        }

        .session-badge.warning {
            background-color: #EF4444;
        }
    /* Source Pressure Items */
    .pressure-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px;
        border-radius: 8px;
        margin-bottom: 10px;
        background-color: #F8F9FA;
    }

    .pressure-info h4 {
        font-size: 14px;
        font-weight: 600;
        color: #1A1A1A;
        margin-bottom: 2px;
    }

    .pressure-info p {
        font-size: 12px;
        color: #666666;
    }

    .pressure-badge {
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
        color: white;
        background-color: #10B981;
    }

    .pressure-value {
        font-size: 14px;
        font-weight: 600;
        color: #666666;
    }

        @media (max-width: 768px) {
            .session-item{
                display:block;
            }
            .pressure-item{
                display:block;
            }
        }
    /* System Health */
    .health-bar {
        margin-bottom: 20px;
    }

    .health-label {
        display: flex;
        justify-content: space-between;
        font-size: 13px;
        margin-bottom: 8px;
    }

    .health-label-text {
        color: #1A1A1A;
        font-weight: 500;
    }

    .health-label-value {
        color: #10B981;
        font-weight: 600;
    }

    .health-progress {
        width: 100%;
        height: 8px;
        background-color: #E8E8E8;
        border-radius: 4px;
        overflow: hidden;
    }

    .health-progress-fill {
        height: 100%;
        background-color: #10B981;
        transition: width 0.3s ease;
    }

    .health-info {
        display: flex;
        justify-content: space-between;
        margin-top: 15px;
    }

    .health-info-item {
        text-align: center;
    }

    .health-info-label {
        font-size: 12px;
        color: #666666;
        margin-bottom: 4px;
    }

    .health-info-value {
        font-size: 14px;
        font-weight: 600;
        color: #0088FF;
    }
    /* Compressor Unit Styles */
    /*.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #f2f1eb;
    min-height: 100vh;
}*/

    .page-header {
        margin-bottom: 25px;
    }

    .page-title {
        font-size: 24px;
        font-weight: 600;
        color: #1A1A1A;
        margin-bottom: 5px;
    }

    .page-subtitle {
        font-size: 13px;
        color: #666666;
    }

    .compressor-card {
        background-color: white;
        border-radius: 12px;
        padding: 25px;
        margin-bottom: 20px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    }

    .compressor-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 20px;
    }

    .compressor-title {
        font-size: 20px;
        font-weight: 600;
        color: #1A1A1A;
        margin-bottom: 4px;
    }

    .compressor-location {
        font-size: 13px;
        color: #666666;
    }

    .status-badge {
        background-color: #10B981;
        color: white;
        padding: 6px 16px;
        border-radius: 20px;
        font-size: 13px;
        font-weight: 600;
    }

        .status-badge.online {
            background-color: #10B981;
        }

    .progress-section {
        margin-bottom: 25px;
    }

    .progress-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
    }

    .progress-label {
        font-size: 14px;
        font-weight: 600;
        color: #333333;
    }

    .progress-value {
        font-size: 18px;
        color: #999999;
    }

    .progress-bar-container {
        width: 100%;
        height: 10px;
        background-color: #E8E8E8;
        border-radius: 5px;
        overflow: hidden;
        margin-bottom: 8px;
    }

    .progress-bar-fill {
        height: 100%;
        background-color: #15a349;
        transition: width 0.3s ease;
    }

    .progress-labels {
        display: flex;
        justify-content: space-between;
        font-size: 12px;
        color: #999999;
    }
    /* INFO GRID - HORIZONTAL LAYOUT WITH ICON ON LEFT */
    .info-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .info-block {
        background-color: #F8F9FA;
        border-radius: 10px;
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        min-height: 60px;
    }

    .info-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .info-icon img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

    .xinfo-block-label {
        font-size: 13px;
        color: #666666;
        margin-bottom: 8px;
        font-weight: 400;
    }

    .info-block-value {
        font-size: 20px;
        color: #1A1A1A;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 18px;
        font-weight: 600;
        color: #1A1A1A;
        margin-bottom: 4px;
    }

    .section-subtitle {
        font-size: 13px;
        color: #666666;
    }

    .overview-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
        padding: 20px 0;
    }

    .overview-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .overview-online {
        font-size: 48px;
        font-weight: 600;
        color: #28A745;
        margin-bottom: 10px;
        line-height: 1;
    }

    .overview-maintenance {
        font-size: 48px;
        font-weight: 600;
        color: #FFC107;
        margin-bottom: 10px;
        line-height: 1;
    }

    .overview-offline {
        font-size: 48px;
        font-weight: 600;
        color: #6C757D;
        margin-bottom: 10px;
        line-height: 1;
    }

    .overview-error {
        font-size: 48px;
        font-weight: 600;
        color: #DC3545;
        margin-bottom: 10px;
        line-height: 1;
    }

    .overview-label {
        font-size: 14px;
        color: #666666;
        font-weight: 400;
    }

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

        .overview-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }
    /* Session History Export Button */
    .sessionexport-btn {
        background-color: #0D3D5C;
        color: white;
        border: none;
        border-radius: 8px;
        padding: 12px 24px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 25px;
        transition: background-color 0.2s;
    }

    .export-btn:hover {
        background-color: #0A2D45;
    }

    .info-cards-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .info-card {
        background-color: white;
        border-radius: 12px;
        padding: 25px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    }

    .info-card-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 15px;
    }

    .info-card-title {
        font-size: 14px;
        color: #666666;
        font-weight: 500;
    }

    .info-card-icon {
        font-size: 28px;
    }

    .info-card-value {
        font-size: 36px;
        font-weight: bold;
        color: #1A1A1A;
        margin-bottom: 8px;
    }

    .info-card-subtitle {
        font-size: 13px;
        color: #10B981;
        font-weight: 500;
    }
    /* Responsive Design */
    @media (max-width: 1400px) {
        .stats-grid {
            grid-template-columns: repeat(2, 1fr);
        }

        .info-cards-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 768px) {
        .sidebar {
            width: 70px;
        }

        .sidebar-menu-item span {
            display: none;
        }

        .main-content {
            margin-left: 70px;
        }



        .stats-grid,
        .info-cards-grid,
        .content-row,
        .info-grid {
            grid-template-columns: 1fr;
        }
    }
    /*Dashboard*/
    .dashboard-container {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .page-header {
        margin-bottom: 30px;
    }

    .page-title {
        font-size: 28px;
        font-weight: 600;
        color: #1A1A1A;
        margin-bottom: 6px;
    }

    .page-subtitle {
        font-size: 14px;
        color: #666666;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        margin-bottom: 30px;
    }

    .stat-card {
        background-color: white;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        transition: transform 0.2s, box-shadow 0.2s;
    }

        .stat-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
        }

    .stat-label {
        font-size: 14px;
        color: #666666;
        margin-bottom: 0px;
        font-weight: 500;
    }

    .stat-value {
        font-size: 32px;
        font-weight: 700;
        color: #1A1A1A;
        margin-bottom: 8px;
    }

    .stat-change {
        font-size: 13px;
        color: #10B981;
        font-weight: 500;
    }

        .stat-change.positive {
            color: #10B981;
        }

        .stat-change.negative {
            color: #e74c3c;
        }

    .content-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }

    .content-card {
        background-color: white;
        border-radius: 12px;
        padding: 24px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    }

    .content-card-title {
        font-size: 18px;
        font-weight: 600;
        color: #1A1A1A;
        margin-bottom: 4px;
    }

    .content-card-subtitle {
        font-size: 13px;
        color: #666666;
        margin-bottom: 20px;
    }



    .session-info {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .session-avatar {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background-color: transparent;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
    }

    .session-details h4 {
        font-size: 14px;
        font-weight: 600;
        color: #1A1A1A;
        margin-bottom: 4px;
    }

    .session-details p {
        font-size: 14px;
        color: #64748B;
        margin: 0;
    }

    .session-right {
        margin-top: 1rem;
    }

    .session-badge {
        padding: 6px 14px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
        color: white;
        display: inline-block;
    }

        .session-badge.completed {
            background-color: #10B981;
        }

        .session-badge.dispensing {
            background-color: #3B82F6;
        }

        .session-badge.error {
            background-color: #EF4444;
        }

    .session-amount {
        font-size: 12px;
        color: #666666;
        margin-top: 6px;
    }



    .pressure-info {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .pressure-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        flex-shrink: 0;
    }

        .pressure-dot.green {
            background-color: #10B981;
        }

        .pressure-dot.red {
            background-color: #EF4444;
        }

    .pressure-details h4 {
        font-size: 14px;
        font-weight: 600;
        color: #1A1A1A;
        margin-bottom: 4px;
    }

    .pressure-details p {
        font-size: 12px;
        color: #666666;
        margin: 0;
    }

    .pressure-right {
        margin-top: 1rem;
    }

    .pressure-badge {
        padding: 6px 14px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
        color: white;
        display: inline-block;
    }

        .pressure-badge.good {
            background-color: #10B981;
        }

        .pressure-badge.error {
            background-color: #EF4444;
        }
    /* HEALTH SECTION - UPDATED */
    .health-section {
        padding-top: 10px;
    }
    /* Single row container */
    .health-single-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: center;
    }

    @media (max-width: 1138px) {
        .health-single-row {
            display: flex;
        }
    }
    /* After screen size 1062px → add flex-wrap: wrap */
    @media (max-width: 1062px) {
        .health-single-row {
            flex-wrap: wrap;
        }
    }

    @media (max-width: 768px) {
        .health-single-row {
            flex-direction: column;
            gap: 20px; /* smaller gap for small screens */
        }
    }
    /* <= 480px: Reduce padding, spacing, and improve mobile readability */
    @media (max-width: 480px) {
        .health-single-row > * {
            width: 100%; /* full width items */
        }
    }
    /* Left Section: System Uptime */
    .health-uptime-section {
        display: flex;
        flex-direction: column;
    }

    .health-label {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 13px;
        margin-bottom: 8px;
    }

    .health-label-text {
        color: #1A1A1A;
        font-weight: 500;
    }

    .health-highlight {
        color: #10B981;
        font-weight: 600;
    }

    .health-label-value {
        color: #10B981;
        font-weight: 700;
        font-size: 14px;
    }

    .health-progress {
        width: 100%;
        height: 8px;
        background-color: #E8E8E8;
        border-radius: 4px;
        overflow: hidden;
    }

    .health-progress-fill {
        height: 100%;
        background-color: #10B981;
        transition: width 0.3s ease;
        border-radius: 4px;
    }
    /* Maintenance Container - Side by Side Layout */
    .maintenance-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        align-items: start;
    }

    .maintenance-info-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        margin-bottom: 12px;
        margin-top: 20px;
    }

    .maintenance-info-item {
        text-align: center;
    }

    .maintenance-column {
        display: flex;
        flex-direction: column;
    }

    .health-info-label {
        font-size: 14px;
        color: #666666;
        margin-bottom: 8px;
        font-weight: 500;
        text-align: center;
    }

    .maintenance-value {
        font-size: 16px;
        font-weight: 600;
        color: #0088FF;
    }

    .health-info-value {
        font-size: 16px;
        font-weight: 600;
        text-align: center;
        margin-bottom: 12px;
    }

    .maintenance-yes {
        color: #0088FF;
    }

    .maintenance-cycle {
        color: #0088FF;
    }

    .maintenance-label {
        font-size: 14px;
        color: #666666;
        margin-bottom: 8px;
        font-weight: 500;
    }
    /* Maintenance Progress Bar */
    .health-maintenance-section {
        display: flex;
        flex-direction: column;
    }

    .maintenance-labels {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 13px;
        margin-bottom: 8px;
    }

    .maintenance-label-left {
        color: #1A1A1A;
        font-weight: 500;
    }

    .maintenance-label-right {
        color: #1A1A1A;
        font-weight: 500;
    }

    .maintenance-highlight {
        color: #0088FF;
        font-weight: 600;
    }

    .maintenance-progress-bar {
        width: 100%;
        height: 8px;
        background-color: #E8E8E8;
        border-radius: 4px;
        overflow: hidden;
    }

    .maintenance-progress-fill {
        height: 100%;
        background-color: #0088FF;
        transition: width 0.3s ease;
        border-radius: 4px;
    }
    /* Responsive Design */
    @media (max-width: 1400px) {
        .stats-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

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

        .stats-grid {
            grid-template-columns: 1fr;
        }

        .maintenance-container {
            grid-template-columns: 1fr;
            gap: 20px;
        }
    }

    .compressor-card {
        background-color: white;
        border-radius: 12px;
        padding: 25px;
        margin-bottom: 20px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    }

    .compressor-header {
        display: flex;
        justify-content: start;
        align-items: baseline;
        margin-bottom: 20px;
    }

    .compressor-title {
        font-size: 20px;
        font-weight: 600;
        color: #1A1A1A;
        margin-bottom: 4px;
    }

    .compressor-location {
        font-size: 13px;
        color: #666666;
    }
    /*    .status-badge {
        background-color: #10B981;
        color: white;
        padding: 6px 16px;
        border-radius: 6px;
        font-size: 13px;
        font-weight: 600;
    }*/

    .status-badge.online {
        background-color: #10B981;
        margin-left: 30px;
    }

    .status-badge.offline {
        background-color: #EF4444;
    }

    .progress-section {
        margin-bottom: 25px;
    }

    .progress-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
    }

    .progress-label {
        font-size: 14px;
        font-weight: 600;
        color: #333333;
    }

    .progress-value {
        font-size: 18px;
        color: #64748B;
    }

    .progress-bar-container {
        width: 100%;
        height: 10px;
        background-color: #E8E8E8;
        border-radius: 5px;
        overflow: hidden;
        margin-bottom: 8px;
    }

    .progress-bar-fill {
        height: 100%;
        background-color: #0088FF;
        transition: width 0.3s ease;
    }

    .progress-labels {
        display: flex;
        justify-content: space-between;
        font-size: 12px;
        color: #999999;
    }

    .info-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .info-block {
        background-color: #F8F9FA;
        border-radius: 10px;
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        transition: transform 0.2s, box-shadow 0.2s;
    }

        .info-block:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }

    .info-icon {
        font-size: 32px;
        margin-bottom: 12px;
    }

    .info-block-label {
        font-size: 13px;
        color: #666666;
        margin-bottom: 0px;
        font-weight: 500;
    }

    .info-block-value {
        font-size: 18px;
        color: #1A1A1A;
    }
    /* Search and Filter Section */
    .search-filter-section {
        background-color: white;
        border-radius: 12px;
        padding: 25px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    }

    .filter-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        margin-top: 20px;
    }

    .filter-input,
    .filter-select {
        width: 100%;
        height: 48px;
        padding: 0 15px;
        border: 1px solid #D0D0D0;
        border-radius: 6px;
        font-size: 14px;
        background-color: white;
    }

        .filter-input:focus,
        .filter-select:focus {
            outline: none;
            border-color: #0088FF;
        }

    .btn-filter {
        width: 100%;
        height: 48px;
        background-color: #0D3D5C;
        color: white;
        border: none;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: background-color 0.2s;
    }

        .btn-filter:hover {
            background-color: #0A2D45;
        }
    /*Session History*/
    .session-history-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
        background-color: transparent;
    }

    .session-history-container {
        width: 100%;
        /*        max-width: 1400px;
        padding: 0 20px;*/
    }

    .page-header {
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 30px;
    }

    .session-history-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 30px;
    }

    .header-left {
        flex: 1;
    }

    .page-title {
        font-size: 28px;
        font-weight: 600;
        color: #1A1A1A;
        margin-bottom: 6px;
    }

    .page-subtitle {
        font-size: 14px;
        color: #666666;
    }

    .export-btn {
        align-items: center;
        gap: 8px;
        background-color: #1e3a5f;
        color: white;
        border: none;
        border-radius: 8px;
        padding: 12px 24px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: background-color 0.2s;
    }

        .export-btn:hover {
            background-color: #152d4a;
        }

    .btn-icon {
        width: 16px;
        height: 16px;
        object-fit: contain;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        margin-bottom: 25px;
    }



    .stat-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
    }

    .stat-label {
        font-size: 13px;
        color: #666;
    }

    .stat-icon {
        width: 24px;
        height: 24px;
        object-fit: contain;
    }

    .stat-value {
        font-size: 28px;
        font-weight: 600;
        color: #1a1a1a;
        margin-bottom: 0px;
        margin-top: -1.25rem;
    }

    .stat-change {
        font-size: 15px;
        color: #43b56d;
    }

    .filter-section {
        background-color: white;
        border-radius: 12px;
        padding: 24px;
        margin-bottom: 30px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    }

    .filter-header {
        margin-bottom: 20px;
    }

    .filter-title {
        font-size: 18px;
        font-weight: 600;
        color: #1A1A1A;
        margin-bottom: 4px;
    }

    .filter-subtitle {
        font-size: 13px;
        color: #666666;
    }

    .filter-controls {
        display: flex;
        gap: 12px;
        align-items: center;
    }

    .search-box {
        position: relative;
        flex: 1;
        max-width: 300px;
    }

    .search-icon {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        width: 16px;
        height: 16px;
        opacity: 0.5;
    }

    .search-box input {
        width: 100%;
        padding: 10px 14px 10px 40px;
        border: 1px solid #E0E0E0;
        border-radius: 8px;
        font-size: 14px;
        outline: none;
    }

        .search-box input:focus {
            border-color: #3b82f6;
        }

    .filter-dropdown {
        padding: 10px 14px;
        border: 1px solid #E0E0E0;
        border-radius: 8px;
        font-size: 14px;
        color: #666666;
        background-color: white;
        cursor: pointer;
        outline: none;
        min-width: 190px;
    }

        .filter-dropdown:focus {
            border-color: #3b82f6;
        }

    .advanced-filter-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 16px;
        border: 1px solid #E0E0E0;
        border-radius: 8px;
        background-color: white;
        color: #666666;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;
    }

        .advanced-filter-btn:hover {
            border-color: #3b82f6;
            color: #3b82f6;
        }

    .filter-icon {
        width: 16px;
        height: 16px;
        object-fit: contain;
    }

    .table-section {
        background-color: white;
        border-radius: 12px;
        padding: 24px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        margin-bottom: 30px;
    }

    .table-header {
        margin-bottom: 20px;
    }

    .table-title {
        font-size: 18px;
        font-weight: 600;
        color: #1A1A1A;
        margin-bottom: 4px;
    }

    .table-subtitle {
        font-size: 13px;
        color: #666666;
    }

    .table-wrapper {
        overflow-x: auto;
    }

    .sessions-table {
        width: 100%;
        border-collapse: collapse;
    }

        .sessions-table thead {
            background-color: #F8F9FA;
        }

        .sessions-table th {
            padding: 12px 16px;
            text-align: left;
            font-size: 13px;
            font-weight: 600;
            color: #666666;
            border-bottom: 2px solid #E0E0E0;
            white-space: nowrap;
        }

        .sessions-table td {
            padding: 16px;
            font-size: 13px;
            color: #333333;
            border-bottom: 1px solid #F0F0F0;
            vertical-align: top;
        }

        .sessions-table tbody tr:hover {
            background-color: #F8F9FA;
        }

    .sub-text {
        font-size: 12px;
        color: #999999;
    }

    .mode-badge {
        display: ruby-text;
        padding: 6px 12px;
        margin-top: 20px;
        background-color: #F0F0F0;
        color: #666666;
        border-radius: 6px;
        font-size: 12px;
        font-weight: 500;
    }

    .status-badge {
        display: ruby-text;
        margin-top: 20px;
        padding: 6px 14px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
        color: white;
    }

        .status-badge.completed {
            background-color: #10B981;
        }

        .status-badge.progress {
            background-color: #3B82F6;
        }

        .status-badge.failed {
            background-color: #EF4444;
        }

    @media (max-width: 1400px) {

        .filter-controls {
            flex-wrap: wrap;
        }
    }

    @media (max-width: 968px) {




        .page-header {
            flex-direction: column;
            gap: 20px;
        }
    }
    /*Analytics*/
    .dashboard-wrapper {
        width: 100%;
        min-height: 100vh;
        background: var(--h2-bg-page);
    }

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

    .analytics-header {
        margin-bottom: 30px;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }

    .header-left {
        flex: 1;
    }

    .page-title {
        font-size: 28px;
        font-weight: 600;
        color: #1a1a1a;
        margin-bottom: 5px;
    }

    .page-subtitle {
        font-size: 15px;
        color: #0C2B42;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .date-dropdown {
        padding: 10px 16px;
        background: white;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 14px;
        color: #333;
        cursor: pointer;
        outline: none;
        min-width: 150px;
    }

        .date-dropdown:hover {
            border-color: #999;
        }

        .date-dropdown:focus {
            border-color: #2c3e50;
        }

    .export-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 24px;
        background: #2c3e50;
        color: white;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 500;
        transition: background 0.2s;
    }

        .export-btn:hover {
            background: #1a252f;
        }

    .export-icon {
        width: 16px;
        height: 16px;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        margin-bottom: 25px;
    }


    .stat-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 12px;
    }

    .stat-label {
        font-size: 13px;
        color: #0C2B42;
        flex: 1;
    }

    .stat-icon {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .stat-icon img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

    .stat-value {
        font-size: 28px;
        font-weight: 600;
        color: #1a1a1a;
        margin-bottom: 5px;
    }

    .stat-change {
        font-size: 15px;
        color: #43b56d;
    }

        .stat-change.positive {
            color: #2ecc71;
        }

        .stat-change.negative {
            color: #e74c3c;
        }

    .content-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-bottom: 20px;
    }

    .content-row-Performance-Metrics {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-bottom: 10px;
    }

    @media (max-width: 1100px) {
        .content-row-Performance-Metrics {
            grid-template-columns: repeat(1, 1fr);
        }
    }


    .content-card {
        background: white;
        padding: 24px;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    .content-card-Performance-Metrics {
        background: white;
        padding: 24px;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    .content-card-title {
        font-size: 22px;
        font-weight: 600;
        color: #1a1a1a;
        margin-bottom: 5px;
        line-height: normal;
    }

    .content-card-subtitle {
        font-size: 15px;
        color: #666;
        margin-bottom: 16pxpx;
    }

    .chart-container {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .chart-row {
        display: flex;
        align-items: center;
        gap: 12px;
    }



    .chart-label {
        min-width: 100px;
        font-size: 13px;
        color: #333;
    }

    .chart-bar-wrapper {
        flex: 1;
        height: 10px;
        background: #f0f0f0;
        border-radius: 4px;
        overflow: hidden;
    }

    .chart-bar {
        height: 100%;
        border-radius: 4px;
        transition: width 0.3s ease;
    }

        .chart-bar.blue {
            background: #3498db;
        }

        .chart-bar.green {
            background: #2ecc71;
        }

        .chart-bar.red {
            background: #e74c3c;
        }

        .chart-bar.orange {
            background: #f39c12;
        }

    .chart-value {
        min-width: 60px;
        text-align: right;
        font-size: 13px;
        color: #333;
        font-weight: 500;
    }

    .metrics-list {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .metric-item {
        display: flex;
        align-items: center;
        gap: 12px;
    }


    @media (max-width: 768px) {
        .metric-item {
            display: block;
        }

        .chart-row {
            display: block;
        }
    }

    .metric-label {
        min-width: 180px;
        font-size: 13px;
        color: #333;
    }

    .metric-bar-container {
        flex: 1;
        height: 10px;
        background: #f0f0f0;
        border-radius: 4px;
        overflow: hidden;
    }

    .metric-bar {
        height: 100%;
        border-radius: 4px;
    }

        .metric-bar.green {
            background: #2ecc71;
        }

    .metric-value {
        min-width: 60px;
        text-align: right;
        font-size: 13px;
        color: #333;
        font-weight: 500;
    }

    .metric-target {
        font-size: 12px;
        color: #888;
        margin-top: -10px;
        margin-left: 0px;
        margin-bottom: 26px;
    }

    .alerts-section {
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid #e0e0e0;
    }

    .alert-item {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 4px;
        background: #fff9e6;
        border-radius: 8px;
        border: 1px solid #f39c12;
    }

    .alert-icon {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }

        .alert-icon img {
            width: 100%;
            height: 100%;
            object-fit: scale-down;
            margin-top: 10px;
        }

    .alert-content {
        flex: 1;
    }

    .alert-title {
        font-size: 14px;
        font-weight: 600;
        color: #1a1a1a;
        margin-bottom: 4px;
    }

    .alert-description {
        font-size: 13px;
        color: #666;
    }

    .alert-time {
        font-size: 12px;
        color: #888;
        white-space: nowrap;
    }




    @media (max-width: 1300px) {
        .stats-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 1200px) {



        .content-row {
            grid-template-columns: 1fr;
        }

        .page-header {
            flex-direction: column;
            gap: 15px;
        }
    }

    @media (max-width: 1030px) {
        .stats-grid {
            grid-template-columns: repeat(1, 1fr);
        }

        .analytics-header {
            display: flex;
            flex-direction: column;
        }

        .header-actions {
            margin-top: 10px;
            justify-content: flex-start;
        }
    }


    @media (max-width: 768px) {


        .header-actions {
            flex-direction: column;
            align-items: stretch;
        }

        .date-dropdown,
        .export-btn {
            width: 100%;
            justify-content: center;
        }
    }

    .content-card {
        background: white;
        border-radius: 8px 8px 8px 8px;
        padding: 26px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        margin-bottom: 0px;
        margin-top: 20px;
    }

    .content-card-dashboard {
        background: white;
        border-radius: 8px 8px 8px 8px;
        padding: 20px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        margin-bottom: 10px;
        margin-top: 20px;
        width: 100%;
    }

    .performance-container {
        display: flex;
        gap: 20px;
        align-items: flex-start;
        grid-column: 1 / -1; /* THIS IS THE FIX - Makes it span full width */
    }

    .content-card-performance {
        background: white;
        border-radius: 8px;
        padding: 32px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        margin-bottom: 20px;
        margin-top: 20px;
        max-height: max-content;
        flex: 1;
        min-width: 0;
    }

    .content-card-notification {
        background: white;
        border-radius: 0 8px 8px 8px;
        padding: 32px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        margin-bottom: 20px;
        margin-top: 20px;
    }
    /*Settings*/
    .tabs-wrapper {
        background-color: transparent;
        padding: 0;
        border-radius: 0;
        display: block;
        margin-bottom: 20px;
    }

    .settings-container {
        /*        max-width: 900px;
        margin: 0 auto;
        padding: 40px 20px;*/
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
        /*        min-height: 100vh;*/
    }

    .settings-header h1 {
        font-size: 28px;
        font-weight: 600;
        color: #1a1a1a;
        margin: 0 0 5px 0;
    }

    .subtitle {
        font-size: 14px;
        color: #6b7280;
        margin: 0 0 30px 0;
    }

    .tabs-container {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 0;
    }

    .tab-button {
        padding: 8px 16px;
        background: #e5e5e0;
        border: none;
        border-radius: 8px;
        background-color: transparent;
        cursor: pointer;
        color: #5a5a5a;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.2s ease-in-out;
        text-align: center;
    }


        .tab-button:hover {
            background-color: rgba(255, 255, 255, 0.6);
        }

        .tab-button.active {
            box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
            background: white;
            color: #000;
        }
    /*.content-card {
    background: white;
    border-radius: 8px 8px 8px 8px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    margin-top: 20px;
}
.performance-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.content-card-performance {
    background: white;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    margin-top: 20px;
    max-height: max-content;
    flex: 1;
    min-width: 0;*/ /* Prevents flex items from overflowing */
    /*}
.content-card-notification {
    background: white;
    border-radius: 0 8px 8px 8px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    margin-top: 20px;
}*/



    .section-header h2 {
        font-size: 18px;
        font-weight: 600;
        color: #1a1a1a;
        margin: 0 0 5px 0;
    }

    .section-subtitle {
        font-size: 13px;
        color: #9ca3af;
        margin: 0 0 30px 0;
    }

    .form-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px 30px;
    }

    .form-group {
        display: flex;
        flex-direction: column;
        position: relative;
    }

        .form-group label {
            font-size: 15px;
            font-weight: 400;
            color: #d1d1d1;
            margin-bottom: 8px;
        }

    .form-input,
    .form-select {
        padding: 10px 12px;
        border: 1px solid #d1d5db;
        border-radius: 6px;
        font-size: 14px;
        color: #1a1a1a;
        background: white;
        transition: all 0.2s;
    }

        .form-input:focus,
        .form-select:focus {
            outline: none;
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }

    .form-select {
        cursor: pointer;
        appearance: none;
        background-repeat: no-repeat;
        background-position: right 12px center;
        padding-right: 36px;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-image: url('data:image/svg+xml;utf8,<svg fill="%23666" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
        transition: border-color 0.2s ease-in-out, box-shadow 0.2s;
        background-size: 16px;
        border: 1px solid #ccc;
        border-radius: 6px;
        padding: 10px 36px 10px 12px;
        font-size: 14px;
        color: #333;
    }

        .form-select::after {
            content: '▼';
            position: absolute;
            right: 12px;
            pointer-events: none;
        }

    .button-container {
        display: flex;
        justify-content: flex-end;
    }

    .save-button {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px 20px;
        background: #1e3a5f;
        color: white;
        border: none;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 600;
    }

    .icon {
        font-size: 16px;
    }

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

        .tabs-container {
            flex-wrap: wrap;
        }

        .tab-button {
            flex: 1 1 auto;
            min-width: 100px;
        }
    }
    /*Sucess Message*/
    /* Success message styling */
    .success-message {
        background-color: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
        border-radius: 6px;
        padding: 12px 16px;
        margin-bottom: 16px;
        display: flex;
        align-items: center;
        font-size: 14px;
        animation: slideIn 0.3s ease-out;
    }

        .success-message::before {
            content: "✓";
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 20px;
            height: 20px;
            background-color: #28a745;
            color: white;
            border-radius: 50%;
            margin-right: 10px;
            font-weight: bold;
            font-size: 14px;
        }
    /* Existing error message styling (for reference) */
    .error-message {
        background-color: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
        border-radius: 6px;
        padding: 12px 16px;
        margin-bottom: 16px;
        display: flex;
        align-items: center;
        font-size: 14px;
        animation: slideIn 0.3s ease-out;
    }

        .error-message::before {
            content: "⚠";
            margin-right: 10px;
            font-size: 18px;
        }

    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

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







