* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
#sidebar {
    width: 250px;
    background: linear-gradient(180deg, #1a365d 0%, #2d3748 100%);
    color: #fff;
    height: 100vh;
    position: fixed;
    transition: all 0.3s;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

#sidebar .brand {
    display: flex;
    align-items: center;
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
}

#sidebar .brand i {
    font-size: 32px;
    margin-right: 15px;
    color: #63b3ed;
    background: rgba(99, 179, 237, 0.1);
    padding: 10px;
    border-radius: 10px;
}

#sidebar .side-menu {
    padding: 20px 0;
}

#sidebar .side-menu li {
    list-style: none;
    margin: 5px 0;
}

#sidebar .side-menu li a {
    display: flex;
    align-items: center;
    padding: 16px 25px;
    color: #cbd5e0;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 4px solid transparent;
    font-size: 1rem;
}

#sidebar .side-menu li a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-left: 4px solid #4299e1;
    padding-left: 30px;
}

#sidebar .side-menu li.active a {
    background: linear-gradient(90deg, rgba(66, 153, 225, 0.15) 0%, transparent 100%);
    color: white;
    border-left: 4px solid #4299e1;
    font-weight: 600;
}

#sidebar .side-menu li a i {
    font-size: 22px;
    margin-right: 15px;
    width: 24px;
    text-align: center;
}

/* CONTENT */
#content {
    margin-left: 250px;
    width: calc(100% - 250px);
    min-height: 100vh;
}

#content nav {
    background: white;
    padding: 18px 35px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

#content nav i {
    font-size: 28px;
    margin-right: 20px;
    cursor: pointer;
    color: #4a5568;
    transition: color 0.3s;
}

#content nav i:hover {
    color: #4299e1;
}

#content nav span {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    letter-spacing: 0.5px;
}

/* MAIN CONTENT */
main {
    padding: 35px;
}

.head-title {
    margin-bottom: 40px;
}

.head-title h1 {
    font-size: 2.2rem;
    color: #2d3748;
    font-weight: 800;
    background: linear-gradient(90deg, #2d3748 0%, #4a5568 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 10px;
    border-bottom: 3px solid #e2e8f0;
}

/* MONITOR STATUS SECTION */
.monitor-status {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.status-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    position: relative;
    overflow: hidden;
}

.status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #4299e1 0%, #3182ce 100%);
}

.status-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.status-card:nth-child(2)::before { background: linear-gradient(180deg, #ed8936 0%, #dd6b20 100%); }
.status-card:nth-child(3)::before { background: linear-gradient(180deg, #38b2ac 0%, #319795 100%); }
.status-card:nth-child(4)::before { background: linear-gradient(180deg, #48bb78 0%, #38a169 100%); }
.status-card:nth-child(5)::before { background: linear-gradient(180deg, #f56565 0%, #e53e3e 100%); }

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f7fafc;
}

.status-header h3 {
    font-size: 2.5rem;
    color: #2d3748;
    font-weight: 800;
}

.status-time {
    background: #ebf8ff;
    color: #3182ce;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-time.warning {
    background: #fed7d7;
    color: #c53030;
}

.status-content h4 {
    font-size: 1.25rem;
    color: #2d3748;
    margin-bottom: 8px;
    font-weight: 700;
}

.status-content p {
    color: #718096;
    font-size: 0.95rem;
    margin-top: 5px;
}

/* LOCATION STATUS */
.location-status {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.location-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.location-header h3 {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.master-btn {
    background: linear-gradient(45deg, #4299e1, #3182ce);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.3);
}

.master-btn:hover {
    background: linear-gradient(45deg, #3182ce, #2c5282);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(66, 153, 225, 0.4);
}

/* SUMMARY & PERFORMANCE SECTIONS */
.summary-section,
.performance-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.summary-header,
.performance-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #f7fafc;
}

.summary-header h3,
.performance-header h3 {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-content,
.performance-content {
    display: flex;
    gap: 25px;
}

.summary-card,
.performance-card {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 30px;
    border-radius: 14px;
    border-left: 6px solid #4299e1;
    flex: 1;
    transition: transform 0.3s;
}

.summary-card:hover,
.performance-card:hover {
    transform: translateX(5px);
}

.summary-value,
.performance-value {
    font-size: 3.5rem;
    font-weight: 900;
    color: #2d3748;
    margin-right: 25px;
    min-width: 80px;
    text-align: center;
}

.summary-details h4,
.performance-details h4 {
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 700;
}

.summary-details p,
.performance-details p {
    color: #718096;
    font-size: 1rem;
}

/* TABLE SECTION */
.table-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
    margin-bottom: 40px;
}

.data-table {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.data-table:hover {
    transform: translateY(-5px);
}

.table-header {
    background: linear-gradient(90deg, #f7fafc 0%, #edf2f7 100%);
    padding: 25px;
    border-bottom: 3px solid #e2e8f0;
}

.table-header h3 {
    color: #2d3748;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: #f7fafc;
}

.data-table th {
    padding: 18px 25px;
    text-align: left;
    color: #4a5568;
    font-weight: 700;
    border-bottom: 2px solid #e2e8f0;
    font-size: 1rem;
}

.data-table td {
    padding: 18px 25px;
    border-bottom: 1px solid #edf2f7;
    color: #2d3748;
    font-size: 1rem;
}

.data-table tbody tr:hover {
    background: #f7fafc;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* TANK OVERVIEW */
.tank-overview-section {
    background: white;
    border-radius: 16px;
    padding: 35px;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.section-header h3 {
    color: #2d3748;
    font-size: 1.5rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.box-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    list-style: none;
    padding: 0;
}

.box-info li {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 14px;
    padding: 25px;
    border-left: 5px solid #4299e1;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.box-info li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.box-info li.warning {
    border-left: 5px solid #ed8936;
    background: linear-gradient(135deg, #fffaf0 0%, #feebc8 100%);
}

.box-info li.critical {
    border-left: 5px solid #f56565;
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
}

.box-info li i {
    font-size: 32px;
    color: #4299e1;
    margin-bottom: 15px;
    display: block;
}

.box-info li.warning i { color: #ed8936; }
.box-info li.critical i { color: #f56565; }

.box-info li .text h3 {
    color: #2d3748;
    font-size: 1.6rem;
    margin-bottom: 8px;
    font-weight: 800;
}

.box-info li .text p {
    color: #718096;
    font-size: 1rem;
    font-weight: 600;
}

/* TABLE DATA */
.table-data {
    background: white;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.order .head h3 {
    color: #2d3748;
    font-size: 1.5rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.table-data table {
    width: 100%;
    border-collapse: collapse;
}

.table-data thead {
    background: linear-gradient(90deg, #f7fafc 0%, #edf2f7 100%);
}

.table-data th {
    padding: 20px;
    text-align: left;
    color: #4a5568;
    font-weight: 700;
    border-bottom: 3px solid #e2e8f0;
    font-size: 1.1rem;
}

.table-data td {
    padding: 20px;
    border-bottom: 1px solid #edf2f7;
    color: #2d3748;
    font-size: 1.05rem;
}

.table-data tbody tr:hover {
    background: #f7fafc;
}

/* CHART PAGE SPECIFIC */
.chart-container {
    background: white;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    margin-top: 30px;
}

.chart-header {
    margin-bottom: 30px;
}

.chart-header h2 {
    color: #2d3748;
    font-size: 1.8rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.chart-controls {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    background: #f7fafc;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.control-group label {
    color: #4a5568;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

#tank, #time-range {
    padding: 14px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1.1rem;
    color: #2d3748;
    background: white;
    min-width: 250px;
    transition: all 0.3s;
}

#tank:focus, #time-range:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

.chart-wrapper {
    background: #f7fafc;
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
    border: 2px solid #e2e8f0;
}

.chart-info {
    margin-top: 30px;
    background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
    padding: 25px;
    border-radius: 12px;
    border-left: 6px solid #4299e1;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-card i {
    font-size: 28px;
    color: #3182ce;
    margin-top: 5px;
}

.info-card p {
    color: #2d3748;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
    .monitor-status {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .box-info {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .table-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    #sidebar {
        width: 80px;
    }
    
    #sidebar .brand .text,
    #sidebar .side-menu li a .text {
        display: none;
    }
    
    #content {
        margin-left: 80px;
        width: calc(100% - 80px);
    }
    
    .monitor-status {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .box-info {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    #sidebar {
        width: 0;
        transform: translateX(-100%);
    }
    
    #content {
        margin-left: 0;
        width: 100%;
    }
    
    main {
        padding: 20px;
    }
    
    .monitor-status {
        grid-template-columns: 1fr;
    }
    
    .box-info {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .location-header {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .master-btn {
        justify-content: center;
    }
    
    .chart-controls {
        flex-direction: column;
    }
    
    #tank, #time-range {
        min-width: 100%;
    }
}

@media (max-width: 576px) {
    .head-title h1 {
        font-size: 1.8rem;
    }
    
    .box-info {
        grid-template-columns: 1fr;
    }
    
    .status-header h3 {
        font-size: 2rem;
    }
    
    .summary-value,
    .performance-value {
        font-size: 2.5rem;
    }
    
    #content nav {
        padding: 15px 20px;
    }
}