@import '../src/styles/colors.css';

/*//////////////////////////////////////*/

.main-content-lake {
    flex: 1 1 !important;
    padding: 2rem !important;
    background-color: var(--main-bg) !important;
    margin-left: 170px;
    transition: margin-left 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-y: auto !important;
    height: 130vh;
    overflow: hidden;
}

body {
    margin: 0;
    padding: 0;
    /* font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; */
    font-family: 'Public Sans', sans-serif;
    background-color: #f8fafc;
}

/* .container {
    padding: 1rem;
    min-height: 40vh;
} */

/* Header Row */
.header-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 1000px) {
    .header-row {
        grid-template-columns: 25% 50% 25%;
    }
}

/* Gauge Section */
/* .gauge-container {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: 100%; /* Make it auto-adjust with water panel */
/* display: flex;
    flex-direction: column;
    justify-content: space-between;
} */

/* Ensure Gauge Section Height Matches Water Stat Panel */
.header-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: stretch;
    /* Ensure equal height */
}

@media (min-width: 1000px) {
    .header-row {
        grid-template-columns: 25% 50% 25%;
        align-items: stretch;
        /* Match height */
    }
}


/* Fix the height to match other cards */
/* .gauge-container {
    height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
} */

.gauge-title {
    text-align: left;
    margin-bottom: 0rem;
}

.gauge-title h3 {
    font-size: 12px;
    font-weight: 600;
    color: var(--page-heading-color);
    cursor: auto;
}

.gauge-title .status {
    background-color: var(--azure-50);
    color: var(--azure-400);
    border-radius: 9999px;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    /* 12px */
    cursor: auto;
}


/* Stats Section */
.stats-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

Grid Layout .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    align-items: stretch;
    /* Ensure all cards stretch to same height */
}

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

/* Stat Card */
.stat-card {
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 1rem;
    border-radius: 0.75rem;
}

/* Stat Content */
.stat-content {
    flex-grow: 1;
}

/* Text Styling */
.stat-content p {
    color: var(--page-heading-color);
    margin: 0 0 0.5rem 0;
    font-size: 10.5px;
}

.stat-content h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--page-heading-color);
}

/* Icon Styling */
.stat-card i {
    font-size: 24px;
    color: var(--slate-gray);
    margin-top: auto;
}

.stat-card.blue {
    background-color: var(--azure-50);
}

.stat-card.green {
    background-color: var(--azure-50);
}

.stat-card.red {
    background-color: var(--azure-50);

}


.stat-card.yellow {
    background-color: var(--azure-50);
}

.stat-card.purple {
    background-color: var(--azure-50);
}

.stat-card.pink {
    background-color: var(--azure-50);
}

.stat-card.amber {
    background-color: var(--azure-50);

}

.stat-card.cyan {
    background-color: var(--azure-50);

}

/* Middle Row */
.middle-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
    margin-top: -32px;
}


@media (min-width: 1024px) {
    .middle-row {
        grid-template-columns: 20% 80%;
    }
}

.lakes-impacted {
    background: var(--white);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lakes-impacted h6 {
    color: var(--azure-500);
    font-weight: 500;
    margin: 0;
    cursor: default;
}

.lakes-impacted h5 {
    font-size: 48px;
    color: var(--ruby-400);
    margin: 0;
    line-height: 1;
    cursor: default;
}

.lakes-impacted>p {
    color: var(--ruby-500);
    margin: 0.5rem 0 1.5rem 0;
    font-size: 15px;
    cursor: default;
}


.metrics {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.metric {
    display: flex;
    align-items: center;
    gap: 0rem;
    padding: 1rem;
    border-radius: 0.5rem;
}

.metric.green {
    background-color: var(--emerald-100);

}

.metric.red {
    background-color: var(--ruby-50);
}

.metric p {
    margin: 0;
    font-weight: 500;
    font-size: 12px;
}

.metric span {
    font-size: 10.5px;
    color: var(--slate-gray);
}


/* Lake Health Report */
.lake-health-report {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    /* Set maximum height for the table */
    overflow-y: auto;
    /* Enable scroll if height exceeds */
    position: relative;
    left: -15px;
}

/* Reduce Column Height */
.lake-health-report table {
    width: 100%;
    border-collapse: collapse;
}

/* Reduce Header (th) Height */
.lake-health-report th {
    background: var(--azure-400);
    color: var(--white);
    padding: 0.5rem;
    /* Reduced padding */
    text-align: left;
    font-weight: 500;
    font-size: 10.5px !important;
    /* Slightly smaller font */
    line-height: 1.2;
    /* Reduced line height */
    cursor: default;
}

/* Reduce Cell (td) Height */
.lake-health-report td {
    padding: 0.4rem;
    /* Reduced padding */
    border-bottom: 1px solid var(--gray-200);
    font-size: 10.2px !important;
    /* Slightly smaller font */
    line-height: 1.2;
    /* Reduced line height */
    color: var(--azure-800);
    cursor: default;
}

/* Reduce Row Height */
.lake-health-report tr {
    height: 32px;
    /* Set a fixed height for rows */
}

/* Reduce the height of alternating row colors */
.lake-health-report tr:nth-child(even) {
    background-color: var(--blue-50);
}

/* Progress Bar */
.progress-bar {
    width: 80px;
    /* Reduce progress bar width */
    height: 4px;
    /* Reduce progress bar height */
    background: var(--gray-200);
    border-radius: 3px;
    margin: 0.2rem 0;
}

.progress {
    height: 100%;
    background: var(--emerald-500);
    border-radius: 3px;
}

/* Reduce Badge Size */
.status-badge {
    padding: 2px 6px;
    font-size: 0.75rem;
    border-radius: 4px;
}


/* Task Section */
.task-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Panel Section */
.task-panels {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.task-panels .panel {
    background: var(--white);
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.task-panels .panel span {
    font-size: 10.5px;
    color: var(--slate-gray);
}

.task-panels .panel h3 {
    font-size: 18px;
    margin: 0;
    color: var(--gray-900);
}

/* Panel Hover Effect */
.task-panels .panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Task Cards */
.task-cards-dashboard {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-top: -3rem;
}

/* Task Card */
.task-card-lake {
    background: var(--white);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.task-card-lake h3 {
    font-size: 13.5px;
    color: var(--azure-900);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
}

.task-no {
    background: var(--azure-50);
    color: var(--azure-500);
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 10.5px;
}

.task-info {
    font-size: 10.5px;
}


/* Status */
.task-status {
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 10.5px;
    margin-top: 0.5rem;
}

.task-status.on-time {
    background: var(--emerald-50);
    color: var(--emerald-500);
}

.task-status.breached {
    background: var(--ruby-50);
    color: var(--ruby-400);
}

/* Task Area */
.task-area {
    font-size: 10.5px;
    color: var(--slate-gray);
}

/* Water Bodies Panel */
.water-bodies-panel {
    background: var(--white);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    left: 359px;
    transition: width 0.3s ease, left 0.3s ease;
    height: 90%;
}

.water-bodies-panel.shrink {
    width: 250px;
}

.water-bodies-panel.expand {
    width: 300px;
}


.water-bodies-panel h5 {
    color: var(--azure-400);
    margin: 0 0 1.5rem 0;
    font-weight: 500;
    cursor: default;
}

.water-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.water-stat i {
    color: var(--azure-400);
}

.water-stat p {
    margin: 0;
    color: var(--slate-gray);
    font-size: 10.5px;
    cursor: default;
}

.water-stat h4 {
    margin: 0.5rem 0 0 0;

    font-size: 1.5rem;
}

.water-stat h4.green {
    color: var(--emerald-500);
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    background: var(--emerald-50);
    color: var(--emerald-500);
    padding: 0.2rem 0.5rem;
    /* 3.2px vertical, 8px horizontal */
    font-size: 10.5px;
    /* 12px */
    border-radius: 0.25rem;
    /* 4px */
}


.open-alert {
    background-color: #ffe5e5;
    color: var(--ruby-400);
}

.ae-aee-analysis {
    background-color: #e5f4ff;
    color: var(--azure-500);
}

.allocated-contractor {
    background-color: #e5ffee;
    color: var(--slate-700);
}

.work-in-progress {
    background-color: #fff3cd;
    color: var(--ruby-700);
}

.work-completed {
    background-color: #e7ffe5;
    color: var(--emerald-500);
}


.app-container2 {
    display: flex;
    min-height: 100vh;
    transition: all 0.3s ease;
}

/* Sidebar */
.side-nav2 {
    width: 260px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.side-nav2.collapsed {
    width: 80px;
}

.side-nav2.collapsed .nav-text {
    display: none;
}

/* Content */
.main-content2 {
    flex: 1;
    background-color: var(--white-200);
    padding: 20px;
    transition: all 0.3s ease;
}

.app-container2.nav-collapsed .main-content2 {
    margin-left: 80px;
}

/* Button */
.nav-toggle2 {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
}

/* Transition Effect */
.side-nav2.collapsed+.main-content2 {
    flex-grow: 1;
    transition: all 0.3s ease;
}

/* Smooth Transition */
.app-container2.nav-collapsed .main-content2 {
    width: calc(100% - 80px);
}

.app-container2 .main-content2 {
    width: calc(100% - 260px);
}

/* Active Link */
.nav-links li.active {

    background-color: var(--primary-color);
}


.lakedashboard {
    position: relative;
    top: 70px;
    margin-left: 20px !important;
}



.month-selector {
    position: relative;
    top: -21px;
    left: -16px;
}


.chart-container-stats {
    height: 300px;
    margin-bottom: 20px;
    width: 686px;
    background-color: var(--white);
    border-radius: 8px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}