:root {
    --primary: #FFD700;
    --primary-dark: #FFC000;
    --text: #333333;
    --text-light: #666666;
    --bg: #FFFFFF;
    --card-bg: #F8F8F8;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

html, body {
    margin: 0;
    padding: 0;
}

body.modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    top: 0 !important;
    left: 0 !important;
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: var(--bg);
}

.screen {
    display: none;
    padding: 24px;
    min-height: 100vh;
}

.screen.active {
    display: block;
}

/* Login Screen Styles */
.login-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.logo-container {
    text-align: center;
    color: var(--primary);
}

.logo-container i {
    font-size: 48px;
    margin-bottom: 12px;
}

.logo-container h1 {
    font-size: 24px;
    font-weight: 600;
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-form input {
    padding: 16px;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.signup-text {
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
}

.signup-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* Dashboard Styles */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.app-header h2 {
    font-size: 24px;
    font-weight: 600;
}

.profile-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 20px;
    cursor: pointer;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-card i {
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 8px;
}

.stat-card h3 {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.stat-card .value {
    font-size: 18px;
    font-weight: 600;
}

.quick-actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
}

.action-btn {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.action-btn:hover {
    transform: translateY(-4px);
}

.action-btn i {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 8px;
}
.action-btn span {
    font-size: 14px;
    font-weight: 500;
}
/* Energy Analytics Styles */
.energy-summary-card {
    display: flex;
    justify-content: space-between;
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.summary-item {
    text-align: center;
    flex: 1;
}

.summary-item h4 {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.summary-item .stat-value {
    font-size: 24px;
    font-weight: 600;
}

.summary-item .stat-value small {
    font-size: 14px;
    color: var(--text-light);
    font-weight: normal;
}

.summary-item.highlight .stat-value {
    color: var(--primary);
}

.section-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 16px;
}

.chart-wrapper {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    height: 250px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.tenant-comparison {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.comparison-chart {
    height: 200px;
}

.comparison-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.comparison-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.comparison-item:last-child {
    border-bottom: none;
}

.tenant-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.consumption-value {
    font-weight: 600;
}

.peak-hours {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.peak-tips {
    margin-top: 16px;
    padding: 16px;
    background-color: white;
    border-radius: 8px;
}

.peak-tips h4 {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.peak-tips ul {
    padding-left: 20px;
    font-size: 13px;
    color: var(--text-light);
}

.peak-tips li {
    margin-bottom: 4px;
}

/* Tenant Management Styles */
.tenant-selector {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: center;
}

.tenant-dropdown {
    flex: 1;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #E0E0E0;
    background-color: var(--card-bg);
    font-size: 14px;
}

.btn-add-tenant {
    background: none;
    border: 1px dashed #E0E0E0;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.outlet-controls {
    margin-bottom: 24px;
    padding: 16px;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.outlet-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.outlets-grid {
    display: grid;
    gap: 24px;
}

.outlet-section {
    display: grid;
    gap: 16px;
}

.outlet-section-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 4px;
}

/* Monitoring Dashboard Styles */
:root {
    --danger: #FF5252;
    --warning: #FFC107;
    --success: #4CAF50;
}

.monitoring-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.monitoring-stats {
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.monitoring-stat {
    flex: 1;
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow);
}

.monitoring-stat.danger {
    border-left: 4px solid var(--danger);
}

.monitoring-stat h4 {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.monitoring-stat .stat-value {
    font-size: 20px;
    font-weight: 600;
}

.monitoring-stat .stat-value small {
    font-size: 12px;
    color: var(--text-light);
    font-weight: normal;
}

.monitoring-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow);
}

.time-selector select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #E0E0E0;
    background-color: white;
    font-size: 14px;
}

.monitoring-grid {
    display: grid;
    gap: 24px;
}

.main-graph {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow);
}

.main-graph h3 {
    margin-bottom: 16px;
    font-size: 16px;
}

.graph-container {
    height: 200px;
    width: 100%;
}

.outlets-grid h3 {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--text-light);
}

.outlets-list {
    display: grid;
    gap: 16px;
}

.outlet-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow);
    transition: all 0.2s;
}

.outlet-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.outlet-card.active {
    border-left: 4px solid var(--primary);
}

.outlet-card.warning {
    border-left: 4px solid var(--warning);
}

.outlet-card.danger {
    border-left: 4px solid var(--danger);
}

.outlet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.outlet-info h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.outlet-location {
    font-size: 12px;
    color: var(--text-light);
}

.outlet-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.outlet-meta {
    display: flex;
    gap: 16px;
}

.outlet-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}
.outlet-stat i {
    font-size: 18px;
    color: var(--primary);
}

.outlet-stat .fa-exclamation-triangle {
    color: var(--warning);
}

.outlet-stat .fa-clock {
    color: var(--text-light);
}

.outlet-stat .fa-check-circle {
    color: var(--success);
}
.outlet-stat .stat-value {
    font-size: 14px;
    font-weight: 500;
}

.outlet-stat .stat-label {
    font-size: 12px;
    color: var(--text-light);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #4CAF50;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 1px #4CAF50;
}

/* Schedule Badge */
.schedule-badge {
    background: rgba(255, 255, 255, 0.3);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 6px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.6) !important;
    display: none !important;
    visibility: hidden !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 9999 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    pointer-events: none !important;
}

.modal-overlay[style*="display: flex"],
.modal-overlay[style*="display:flex"] {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.modal-content {
    background: white !important;
    border-radius: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 100vh !important;
    height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-shadow: none !important;
    position: relative !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    -webkit-overflow-scrolling: touch;
    z-index: 10000;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    background: white;
    position: sticky;
    top: 0;
    z-index: 10000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.modal-close {
    background: #f5f5f5;
    border: none;
    font-size: 18px;
    cursor: pointer !important;
    color: #666;
    padding: 8px;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    flex-shrink: 0;
    z-index: 10001 !important;
    position: relative;
    pointer-events: auto !important;
    touch-action: manipulation;
}

.modal-close:hover {
    background: #e0e0e0;
    color: #333;
}

.modal-close:active {
    transform: scale(0.95);
}

.modal-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    background: #fafafa;
}

/* Schedule List */
#schedulesList {
    margin-bottom: 24px;
    min-height: 40px;
}

#schedulesList:empty::before {
    content: "No schedules yet. Add one below.";
    display: block;
    text-align: center;
    padding: 32px 20px;
    color: #999;
    font-size: 14px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #e0e0e0;
}

/* Schedule Item */
.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 14px;
    margin-bottom: 12px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    transition: all 0.2s;
}

.schedule-item:hover {
    background: #f0f0f0;
    transform: translateX(2px);
}

.schedule-info {
    flex: 1;
    min-width: 0;
}

.schedule-info > div:first-child {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    margin-bottom: 6px;
}

.schedule-info > div:nth-child(2) {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.schedule-info > div:nth-child(3) {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
}

.schedule-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 12px;
}

.btn-icon-small {
    background: white;
    border: 1px solid #ddd;
    cursor: pointer;
    padding: 8px;
    color: #666;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.2s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-small:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-1px);
}

.btn-icon-small.btn-danger {
    border-color: #ffcccc;
}

.btn-icon-small.btn-danger:hover {
    background: #ff5252;
    border-color: #ff5252;
    color: white;
}

/* Form Styles */
.modal-form-section {
    border-top: 2px solid #f0f0f0;
    padding-top: 20px;
}

.modal-form-section h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.modal-form-group {
    margin-bottom: 18px;
}

.modal-form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.modal-form-input,
.modal-form-select {
    width: 100%;
    padding: 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.modal-form-input:focus,
.modal-form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.modal-form-input::placeholder {
    color: #bbb;
}

/* Days of Week */
.schedule-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.schedule-day-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 10px 4px;
    border-radius: 8px;
    transition: all 0.2s;
    border: 1.5px solid transparent;
}

.schedule-day-label:hover {
    background: #f8f8f8;
}

.schedule-day-label input[type="checkbox"] {
    margin-bottom: 6px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.schedule-day-label input[type="checkbox"]:checked + span {
    color: var(--primary);
    font-weight: 600;
}

.schedule-day-label span {
    font-size: 11px;
    color: #666;
    transition: all 0.2s;
    text-align: center;
}

/* Submit Button */
.modal-form-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.modal-form-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.modal-form-submit:active {
    transform: translateY(0);
}

/* Responsive - Medium Mobile (375px - 480px) */
@media (min-width: 376px) and (max-width: 480px) {
    .modal-overlay {
        padding: 16px !important;
        align-items: center !important;
    }
    
    .modal-content {
        width: calc(100% - 32px) !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 92vh !important;
        border-radius: 16px !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
    }
    
    .modal-body {
        padding: 20px 18px;
    }
}

/* Responsive - Desktop/Tablet */
@media (min-width: 481px) {
    .modal-overlay {
        padding: 20px !important;
        align-items: center !important;
    }
    
    .modal-content {
        width: calc(100% - 40px) !important;
        max-width: 420px !important;
        height: auto !important;
        max-height: 90vh !important;
        border-radius: 16px !important;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    }
}

/* Responsive - Small Mobile (320px and below) */
@media (max-width: 320px) {
    .modal-header {
        padding: 14px 16px;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .modal-form-group {
        margin-bottom: 16px;
    }
    
    .schedule-days-grid {
        gap: 6px;
    }
    
    .schedule-day-label {
        padding: 8px 2px;
    }
    
    .schedule-day-label span {
        font-size: 10px;
    }
    
    .schedule-item {
        padding: 12px;
        flex-direction: column;
        gap: 12px;
    }
    
    .schedule-actions {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
    }
}

.power-graph {
    height: 80px;
    width: 100%;
}

.monitoring-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.energy-summary h4 {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.summary-stats {
    display: flex;
    gap: 24px;
}

.summary-stat {
    text-align: center;
}

.summary-stat .stat-value {
    font-size: 16px;
    font-weight: 600;
}

.summary-stat .stat-label {
    font-size: 12px;
    color: var(--text-light);
}

.monitoring-actions {
    display: flex;
    gap: 12px;
}
.tenant-selector {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: center;
}

.tenant-dropdown {
    flex: 1;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #E0E0E0;
    background-color: var(--card-bg);
    font-size: 14px;
}

.btn-add-tenant {
    background: none;
    border: 1px dashed #E0E0E0;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.outlet-controls {
    margin-bottom: 24px;
    padding: 16px;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.outlet-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.outlets-grid {
    display: grid;
    gap: 24px;
}

.outlet-section {
    display: grid;
    gap: 16px;
}

.outlet-section-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 4px;
}

.outlet-actions {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.btn-secondary {
    background-color: white;
    color: var(--text);
    border: 1px solid #E0E0E0;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background-color: #f5f5f5;
}
.outlet-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow);
}

.outlet-card.active {
    border-left: 4px solid var(--primary);
}

.outlet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.outlet-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.outlet-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-light);
}

.outlet-stat i {
    color: var(--primary);
}

.power-graph {
    height: 100px;
    width: 100%;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Error Message Styles */
.error-message {
    background: #FFEBEE;
    color: #C62828;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    display: none;
}

.error-message.show {
    display: block;
}

/* ========================================
   ADMIN RESPONSIVE DASHBOARD STYLES
   ======================================== */

.admin-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.admin-container {
    min-height: 100vh;
    background: #F5F7FA;
    display: grid;
    grid-template-columns: 260px 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "sidebar header"
        "sidebar main";
    column-gap: 0;
    row-gap: 0;
    margin: 0;
    padding: 0;
    width: 100vw;
    max-width: 100%;
}

.admin-sidebar {
    grid-area: sidebar;
    background: #1A1D29;
    color: white;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 260px;
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.admin-header {
    grid-area: header;
    background: white;
    padding: 0 2rem;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-main {
    grid-area: main;
    padding: 2rem;
    overflow-y: auto;
    min-height: calc(100vh - 80px);
}

.sidebar-content {
    padding: 2rem 0;
}

.sidebar-content .logo-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 24px;
    color: #1A1D29;
}

.sidebar-content h1 {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
    color: white;
}

.sidebar-content .subtitle {
    font-size: 12px;
    color: #9CA3AF;
    text-align: center;
    margin-bottom: 2rem;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #9CA3AF;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--primary);
}

.nav-link.active {
    background: rgba(255, 215, 0, 0.15);
    color: var(--primary);
    border-left-color: var(--primary);
}

.nav-link i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.header-left .logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #1A1D29;
}

.header-left h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 1.3;
    display: block;
}

.header-left .subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
    margin-top: 2px;
    padding: 0;
    line-height: 1.4;
    display: block;
}

/* Hide subtitle on mobile by default - MOST SPECIFIC FIRST */
@media (max-width: 480px) {
    .admin-header .header-content .header-left > div:last-child > p.subtitle,
    .admin-header .header-content .header-left > div .subtitle,
    .admin-header .header-content .header-left .subtitle,
    .admin-header .header-left > div .subtitle,
    .admin-header .header-left > div:last-child .subtitle,
    .admin-header .header-left .subtitle,
    .admin-header .subtitle,
    .header-left > div:last-child .subtitle,
    .header-left > div .subtitle,
    .header-left .subtitle,
    .header-left p.subtitle,
    p.subtitle.header-left {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
        position: absolute !important;
        font-size: 0 !important;
        line-height: 0 !important;
        text-indent: -9999px !important;
        clip: rect(0, 0, 0, 0) !important;
        pointer-events: none !important;
        left: -9999px !important;
        top: -9999px !important;
    }
}

.header-left > div:last-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info span {
    font-weight: 500;
    color: var(--text);
}

/* Prevent adminName from appearing in header-left */
.header-left #adminName,
.header-left .user-info {
    display: none !important;
}

.btn-logout {
    background: #FF5252;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease;
}

.btn-logout:hover {
    background: #E53935;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text);
    cursor: pointer;
    padding: 0.5rem;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.view-section {
    display: none;
}

.view-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header h3 i {
    color: var(--primary);
}

.section-header .subtitle {
    font-size: 14px;
    color: var(--text-light);
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

.btn-action {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease;
}

.btn-action:hover {
    background: var(--primary-dark);
}

.btn-action.btn-primary {
    background: var(--primary);
}

.btn-action.btn-secondary {
    background: #6B7280;
}

.btn-action.btn-secondary:hover {
    background: #4B5563;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.stat-card.stat-power .stat-icon {
    background: #4CAF50;
}

.stat-card.stat-usage .stat-icon {
    background: #2196F3;
}

.stat-card.stat-cost .stat-icon {
    background: #FF9800;
}

.stat-content h4 {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 12px;
    color: var(--text-light);
}

.charts-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.chart-container {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.chart-wrapper {
    height: 300px;
    position: relative;
}

.activity-section {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #E5E7EB;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1A1D29;
}

.activity-content p {
    margin: 0 0 0.25rem 0;
    font-weight: 500;
}

.activity-content small {
    color: var(--text-light);
    font-size: 12px;
}

.table-container {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: #F9FAFB;
}

.data-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-light);
    font-size: 14px;
    border-bottom: 1px solid #E5E7EB;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #E5E7EB;
    font-size: 14px;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.tenant-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tenant-avatar {
    width: 32px;
    height: 32px;
    background: #E5E7EB;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 14px;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: #D1FAE5;
    color: #065F46;
}

.badge-warning {
    background: #FEF3C7;
    color: #92400E;
}

.badge-info {
    background: #DBEAFE;
    color: #1E40AF;
}

.badge-danger {
    background: #FEE2E2;
    color: #991B1B;
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 0.5rem;
    color: var(--text-light);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: #F3F4F6;
    color: var(--primary);
}

.btn-icon.delete:hover {
    color: #EF4444;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.analytics-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.analytics-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.settings-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.settings-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-card h4 i {
    color: var(--primary);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.form-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 12px;
    color: var(--text-light);
    font-style: italic;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.status-online {
    background: #10B981;
}

.status-dot.status-offline {
    background: #EF4444;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.btn-secondary {
    background: #6B7280;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.btn-secondary:hover {
    background: #4B5563;
}

.error-message {
    background: #FEE2E2;
    color: #991B1B;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 14px;
}

/* Responsive Admin Dashboard */
@media (max-width: 768px) {
    .admin-container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "main";
    }

    .admin-sidebar {
        transform: translateX(-100%);
        width: 260px;
    }

    .admin-sidebar.active {
        transform: translateX(0);
    }

    .menu-toggle {
        display: block;
    }

    .menu-overlay.active {
        display: block;
    }

    .admin-main {
        padding: 1rem;
    }

    .admin-header {
        padding: 0 1rem;
        height: 70px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .charts-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .analytics-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .settings-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .data-table {
        font-size: 12px;
        display: block;
        overflow-x: auto;
    }

    .data-table th,
    .data-table td {
        padding: 0.5rem;
        min-width: 100px;
    }
}

/* Mobile - Hide subtitle on all mobile sizes first */
@media (max-width: 480px) {
    .admin-header .header-content .header-left > div:last-child > .subtitle,
    .admin-header .header-content .header-left .subtitle,
    .admin-header .header-left > div .subtitle,
    .admin-header .header-left > div:last-child .subtitle,
    .admin-header .header-left .subtitle,
    .admin-header .subtitle,
    .header-left > div:last-child .subtitle,
    .header-left > div .subtitle,
    .header-left .subtitle,
    p.subtitle.header-left,
    .header-left p.subtitle {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
        position: absolute !important;
        font-size: 0 !important;
        line-height: 0 !important;
        text-indent: -9999px !important;
        clip: rect(0, 0, 0, 0) !important;
        pointer-events: none !important;
        left: -9999px !important;
        top: -9999px !important;
    }
}

/* Mobile - 375px and below */
@media (max-width: 375px) {
    .admin-container {
        width: 100vw;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .admin-header {
        padding: 0 0.75rem;
        height: 65px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .header-content {
        gap: 0.5rem;
    }

    .header-left {
        gap: 0.5rem;
        flex: 1;
        min-width: 0;
        align-items: center;
    }

    .header-left .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
        flex-shrink: 0;
    }

    .header-left > div:last-child {
        min-width: 0;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
    }

    .header-left h1 {
        font-size: 18px;
        line-height: 1.3;
        margin: 0;
        padding: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: block;
    }

    .header-left .subtitle {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
        position: absolute !important;
        width: 0 !important;
        font-size: 0 !important;
        line-height: 0 !important;
    }

    .header-left h1 {
        font-size: 18px;
        line-height: 1.3;
        margin: 0;
        padding: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: block;
        position: relative;
    }

    .header-left > div:last-child {
        min-width: 0;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
        position: relative;
    }

    .admin-header .header-content .header-left > div:last-child > p.subtitle,
    .admin-header .header-content .header-left > div .subtitle,
    .admin-header .header-content .header-left .subtitle,
    .admin-header .header-left > div .subtitle,
    .admin-header .header-left > div:last-child .subtitle,
    .admin-header .header-left .subtitle,
    .header-left > div:last-child .subtitle,
    .header-left > div .subtitle,
    .header-left .subtitle,
    .header-left p.subtitle {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
        position: absolute !important;
        font-size: 0 !important;
        line-height: 0 !important;
        text-indent: -9999px !important;
        clip: rect(0, 0, 0, 0) !important;
        pointer-events: none !important;
        left: -9999px !important;
        top: -9999px !important;
    }

    .header-right {
        gap: 0.5rem;
        flex-shrink: 0;
    }

    .user-info {
        gap: 0.5rem;
    }

    .user-info span {
        display: none;
    }

    .btn-logout {
        padding: 0.5rem;
        min-width: 40px;
    }

    .btn-logout .logout-text {
        display: none;
    }

    .menu-toggle {
        padding: 0.5rem;
        font-size: 18px;
        min-width: 36px;
        min-height: 36px;
    }

    .admin-main {
        padding: 0.75rem;
        padding-bottom: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .stat-card {
        padding: 1rem;
        gap: 0.75rem;
        border-radius: 10px;
        min-height: 85px;
        align-items: center;
    }

    .stat-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
        flex-shrink: 0;
    }

    .stat-content {
        min-width: 0;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
    }

    .stat-content h4 {
        font-size: 13px;
        margin-bottom: 0.25rem;
        line-height: 1.3;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .stat-value {
        font-size: 20px;
        line-height: 1.2;
        margin-bottom: 0.25rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .stat-label {
        font-size: 11px;
        line-height: 1.4;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        word-wrap: break-word;
        max-height: 2.8em;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .section-header h3 {
        font-size: 18px;
        gap: 0.5rem;
    }

    .section-header h3 i {
        font-size: 18px;
    }

    .action-buttons {
        width: 100%;
        gap: 0.5rem;
    }

    .btn-action {
        padding: 0.625rem 1rem;
        font-size: 13px;
        gap: 0.5rem;
        flex: 1;
        justify-content: center;
    }

    .btn-action span {
        font-size: 13px;
    }

    .charts-section {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .chart-container {
        padding: 1rem;
        border-radius: 10px;
    }

    .chart-wrapper {
        height: 250px;
    }

    .activity-section {
        padding: 1rem;
        border-radius: 10px;
    }

    .activity-item {
        padding: 0.75rem 0;
        gap: 0.75rem;
    }

    .activity-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
        flex-shrink: 0;
    }

    .table-container {
        border-radius: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .data-table {
        font-size: 11px;
        min-width: 600px;
    }

    .data-table th {
        padding: 0.625rem 0.5rem;
        font-size: 11px;
        font-weight: 600;
        white-space: nowrap;
    }

    .data-table td {
        padding: 0.625rem 0.5rem;
        font-size: 11px;
        white-space: nowrap;
    }

    .analytics-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .analytics-card {
        padding: 1rem;
        border-radius: 10px;
    }

    .analytics-card h4 {
        font-size: 15px;
        margin-bottom: 0.75rem;
    }

    .settings-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .settings-card {
        padding: 1rem;
        border-radius: 10px;
    }

    .settings-card h4 {
        font-size: 15px;
        margin-bottom: 1rem;
    }

    .form-group {
        margin-bottom: 0.875rem;
    }

    .form-group label {
        font-size: 13px;
        margin-bottom: 0.375rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.625rem;
        font-size: 13px;
        border-radius: 6px;
    }

    .modal-content {
        padding: 1.25rem;
        width: 95%;
        max-width: 95%;
        border-radius: 10px;
        margin: 1rem;
    }

    .modal-header h2 {
        font-size: 18px;
    }

    .form-actions {
        flex-direction: column-reverse;
        gap: 0.75rem;
        margin-top: 1.25rem;
    }

    .form-actions button {
        width: 100%;
        padding: 0.75rem;
        font-size: 14px;
    }

    .badge {
        padding: 0.2rem 0.5rem;
        font-size: 10px;
    }

    .btn-icon {
        padding: 0.375rem;
        font-size: 14px;
        min-width: 32px;
        min-height: 32px;
    }
}

/* Mobile - 320px and below */
@media (max-width: 320px) {
    .admin-header {
        padding: 0 0.5rem;
        height: 60px;
    }

    .header-left h1 {
        font-size: 16px;
        line-height: 1.3;
        margin: 0;
        padding: 0;
    }

    .header-left > div:last-child {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .admin-header .header-content .header-left > div:last-child > p.subtitle,
    .admin-header .header-content .header-left > div .subtitle,
    .admin-header .header-content .header-left .subtitle,
    .admin-header .header-left > div .subtitle,
    .admin-header .header-left > div:last-child .subtitle,
    .admin-header .header-left .subtitle,
    .header-left > div:last-child .subtitle,
    .header-left > div .subtitle,
    .header-left .subtitle,
    .header-left p.subtitle {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
        position: absolute !important;
        font-size: 0 !important;
        line-height: 0 !important;
        text-indent: -9999px !important;
        clip: rect(0, 0, 0, 0) !important;
        pointer-events: none !important;
        left: -9999px !important;
        top: -9999px !important;
    }

    .header-left .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .menu-toggle {
        padding: 0.375rem;
        font-size: 16px;
        min-width: 32px;
        min-height: 32px;
    }

    .btn-logout {
        padding: 0.375rem;
        min-width: 36px;
        min-height: 36px;
    }

    .admin-main {
        padding: 0.5rem;
        padding-bottom: 1rem;
    }

    .stats-grid {
        gap: 0.625rem;
        margin-bottom: 1.25rem;
    }

    .stat-card {
        padding: 0.875rem;
        gap: 0.625rem;
        min-height: 75px;
        align-items: center;
    }

    .stat-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
        flex-shrink: 0;
    }

    .stat-content {
        min-width: 0;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
    }

    .stat-content h4 {
        font-size: 12px;
        line-height: 1.3;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .stat-value {
        font-size: 18px;
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .stat-label {
        font-size: 10px;
        line-height: 1.4;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        word-wrap: break-word;
        max-height: 2.8em;
    }

    .section-header {
        margin-bottom: 1.25rem;
        gap: 0.625rem;
    }

    .section-header h3 {
        font-size: 16px;
    }

    .section-header h3 i {
        font-size: 16px;
    }

    .btn-action {
        padding: 0.5rem 0.75rem;
        font-size: 12px;
    }

    .btn-action span {
        font-size: 12px;
    }

    .chart-container {
        padding: 0.875rem;
    }

    .chart-wrapper {
        height: 220px;
    }

    .activity-section {
        padding: 0.875rem;
    }

    .activity-item {
        padding: 0.625rem 0;
    }

    .activity-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .data-table {
        font-size: 10px;
        min-width: 550px;
    }

    .data-table th,
    .data-table td {
        padding: 0.5rem 0.375rem;
        font-size: 10px;
    }

    .analytics-card,
    .settings-card {
        padding: 0.875rem;
    }

    .analytics-card h4,
    .settings-card h4 {
        font-size: 14px;
    }

    .form-group label {
        font-size: 12px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.5rem;
        font-size: 12px;
    }

    .modal-content {
        padding: 1rem;
        width: calc(100% - 1rem);
        margin: 0.5rem;
    }

    .modal-header h2 {
        font-size: 16px;
    }

    .btn-icon {
        min-width: 28px;
        min-height: 28px;
        font-size: 12px;
    }

    .admin-sidebar {
        width: 240px;
    }

    .sidebar-content {
        padding: 1.5rem 1rem;
    }

    .nav-link {
        padding: 0.875rem 1rem;
        font-size: 13px;
    }

    .nav-link i {
        font-size: 16px;
        margin-right: 0.5rem;
    }
}
/* ========================================
   LANDLORD RESPONSIVE DASHBOARD STYLES
   ======================================== */

.landlord-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.landlord-container {
    min-height: 100vh;
    background: #F5F7FA;
    display: grid;
    grid-template-columns: 260px 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "sidebar header"
        "sidebar main";
    column-gap: 0;
    row-gap: 0;
    margin: 0;
    padding: 0;
    width: 100vw;
    max-width: 100%;
}

/* Sidebar */
.landlord-sidebar {
    grid-area: sidebar;
    grid-column: 1 / 2;
    grid-row: 1 / -1;
    background: #1a1d29;
    color: white;
    padding: 2rem 0;
    position: sticky;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: none;
    margin: 0;
    width: 260px;
}

.sidebar-content {
    padding: 0 1.5rem;
}

.landlord-sidebar .logo-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.landlord-sidebar h1 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: white;
}

.landlord-sidebar .subtitle {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
}

.sidebar-nav {
    margin-top: 2rem;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9375rem;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 215, 0, 0.1);
    color: var(--primary);
}

.nav-link i {
    font-size: 1.125rem;
    width: 20px;
    text-align: center;
}

/* Header */
.landlord-header {
    grid-area: header;
    background: var(--bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #E0E0E0;
    margin: 0;
    padding: 0;
}

.header-content {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: var(--bg);
    width: 100%;
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.header-left h1 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

.menu-toggle:hover {
    color: var(--primary);
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.landlord-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    line-height: 1.2;
}

.landlord-header .subtitle {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: transparent;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: var(--card-bg);
    border-color: var(--primary);
    color: var(--primary);
}

.logout-text {
    display: inline;
}

/* Main Content */
.landlord-main {
    grid-area: main;
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 100%;
    min-width: 0;
    background: #F5F7FA;
    margin: 0;
}

/* Filter Section */
.filter-section {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    justify-content: space-between;
    background: transparent;
    margin-bottom: 0;
}

.filter-section > * {
    flex-shrink: 0;
}

.filter-group {
    flex: 1;
    min-width: 250px;
}

.filter-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.select-modern {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card-bg);
    font-size: 0.9375rem;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
}

.select-modern:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-action:hover {
    background: var(--bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-action.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-action.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.2s;
    flex: 1 1 auto;
    min-width: 0;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.stat-power .stat-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stat-usage .stat-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.stat-cost .stat-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.stat-content h4 {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0 0 0.5rem 0;
    font-weight: 500;
}

.stat-content .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.stat-content .stat-value small {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light);
}

/* Summary Card */
.summary-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-around;
    align-items: center;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: var(--text);
}

.summary-item i {
    font-size: 1.25rem;
    color: var(--primary);
}

.summary-item strong {
    font-weight: 600;
    color: var(--text);
}

/* Chart Section */
.chart-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.section-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header h3 i {
    color: var(--primary);
}

.section-header .subtitle {
    font-size: 0.875rem;
    color: var(--text-light);
}

.chart-wrapper {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Outlets Section */
.outlets-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.outlets-section .outlets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.loading-state i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
    display: block;
}

/* Outlet Card Redesign */
.outlets-section .outlet-card {
    background: white;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.outlets-section .outlet-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--border);
    transition: all 0.2s;
}

.outlets-section .outlet-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.outlets-section .outlet-card.online::before {
    background: #4CAF50;
}

.outlets-section .outlet-card.warning::before {
    background: #FF9800;
}

.outlets-section .outlet-card.offline::before {
    background: #999;
}

.outlets-section .outlet-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.outlets-section .outlet-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.375rem 0;
}

.outlets-section .outlet-location {
    font-size: 0.8125rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.outlets-section .outlet-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.outlets-section .outlet-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.outlets-section .outlet-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.outlets-section .outlet-stat i {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.outlets-section .outlet-stat .stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.outlets-section .outlet-stat .stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg);
    border-radius: 16px;
    padding: 0;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #E0E0E0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
}

#tenantForm,
#outletForm {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    font-size: 0.9375rem;
    color: var(--text);
    background: var(--bg);
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E0E0E0;
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--card-bg);
}

/* Button Icons */
.btn-icon {
    padding: 0.5rem;
    border: none;
    background: none;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 6px;
}

.btn-icon:hover {
    background: var(--card-bg);
    color: var(--text);
}

.btn-icon.delete:hover {
    color: #F44336;
}

.outlet-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #E0E0E0;
    margin-top: 1rem;
}

/* View Sections */
.view-section {
    display: none;
    flex-direction: column;
    gap: 2rem;
    animation: fadeIn 0.3s ease-in;
}

.view-section.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Data Tables */
.tenants-table-container,
.chart-section .data-table {
    background: var(--bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.data-table thead {
    background: var(--card-bg);
}

.data-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text);
    border-bottom: 2px solid #E0E0E0;
    white-space: nowrap;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #F0F0F0;
    font-size: 0.9375rem;
    color: var(--text);
}

.data-table tbody tr {
    transition: background 0.2s;
}

.data-table tbody tr:hover {
    background: #F8F9FA;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Action Buttons in Tables */
.table-actions {
    display: flex;
    gap: 0.5rem;
}

.table-actions .btn-icon {
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: #E8F5E9;
    color: #4CAF50;
}

.badge-warning {
    background: #FFF3E0;
    color: #FF9800;
}

.badge-danger {
    background: #FFEBEE;
    color: #F44336;
}

.badge-info {
    background: #E3F2FD;
    color: #2196F3;
}

/* ========================================
   BURGER MENU & SIDEBAR STYLES
   ======================================== */

.burger-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.burger-btn:hover {
    background-color: var(--card-bg);
    color: var(--primary);
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998 !important;
    opacity: 0;
    transition: opacity 0.3s ease;
    margin: 0 !important;
    padding: 0 !important;
    display: none;
}

.sidebar-overlay.active {
    opacity: 1 !important;
    display: block !important;
}

/* Sidebar Menu */
.sidebar-menu {
    position: fixed !important;
    top: 0 !important;
    right: -300px !important;
    left: auto !important;
    bottom: auto !important;
    width: 300px !important;
    height: 100vh !important;
    max-height: 100vh !important;
    min-height: 100vh !important;
    background: white !important;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15) !important;
    z-index: 99999 !important;
    transition: right 0.3s ease !important;
    display: none !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
    visibility: hidden !important;
    will-change: right;
    transform: none !important;
}

.sidebar-menu.active {
    right: 0 !important;
    display: flex !important;
    pointer-events: auto !important;
    visibility: visible !important;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #E0E0E0;
    background: var(--card-bg);
    position: sticky;
    top: 0;
    z-index: 10;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
}

.sidebar-close-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.sidebar-close-btn:hover {
    background-color: #E0E0E0;
    color: var(--text);
}

.sidebar-content {
    flex: 1;
    padding: 16px 0;
}

.sidebar-menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 15px;
    color: var(--text);
    position: relative;
}

.sidebar-menu-item:hover {
    background-color: var(--card-bg);
}

.sidebar-menu-item i {
    width: 24px;
    text-align: center;
    color: var(--text-light);
    font-size: 18px;
    transition: color 0.2s;
}

.sidebar-menu-item:hover i {
    color: var(--primary);
}

.sidebar-menu-item span:not(.menu-badge) {
    flex: 1;
    font-weight: 500;
}

.sidebar-menu-item-danger {
    color: #FF5252;
}

.sidebar-menu-item-danger i {
    color: #FF5252;
}

.sidebar-menu-item-danger:hover {
    background-color: #FFEBEE;
}

.sidebar-divider {
    height: 1px;
    background: #E0E0E0;
    margin: 8px 24px;
}

.menu-badge {
    background-color: #FF5252;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
    line-height: 1.4;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .sidebar-menu {
        width: 280px;
        right: -280px !important;
    }
    
    .sidebar-menu.active {
        right: 0 !important;
    }
}

/* ========================================
   NOTIFICATION STYLES
   ======================================== */

.notification-btn {
    position: relative;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
}

.notification-btn:hover {
    background-color: var(--card-bg);
    color: var(--primary);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #FF5252;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.4;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.back-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
}

.back-btn:hover {
    background-color: var(--card-bg);
    color: var(--primary);
}

/* Notification Tabs */
.notification-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.notification-tabs::-webkit-scrollbar {
    height: 4px;
}

.notification-tabs::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

.notification-tab {
    position: relative;
    background: var(--card-bg);
    border: none;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-tab:hover {
    background: #E8E8E8;
}

.notification-tab.active {
    background: var(--primary);
    color: white;
}

.tab-badge {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Notifications Container */
.notifications-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.notification-item {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    box-shadow: var(--shadow);
}

.notification-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.notification-item.unread {
    background: #FFF9E6;
    border-left: 4px solid var(--primary);
}

.notification-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.notification-item.unread .notification-icon {
    background: var(--primary-dark);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
    gap: 12px;
}

.notification-header h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    flex: 1;
}

.notification-time {
    font-size: 12px;
    color: var(--text-light);
    white-space: nowrap;
}

.notification-message {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

.notification-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
}

/* Loading State */
#notificationsLoading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.loading-state i {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 16px;
}

.loading-state p {
    font-size: 14px;
    margin: 0;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.empty-state i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 16px;
    color: var(--text-light);
    margin: 0 0 8px 0;
    font-weight: 500;
}

.empty-state small {
    font-size: 14px;
    color: #999;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .landlord-container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "main";
    }
    
    .landlord-sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        bottom: 0;
        height: 100vh;
        transition: left 0.3s ease-in-out;
        z-index: 1001;
    }
    
    .landlord-sidebar.active {
        left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .menu-overlay.active {
        display: block;
    }
}

@media (max-width: 768px) {
    .landlord-main {
        padding: 1rem;
        gap: 1.25rem;
    }
    
    .header-content {
        padding: 0.875rem 1rem;
        flex-wrap: wrap;
    }
    
    .header-left {
        gap: 0.75rem;
    }
    
    .landlord-header h1 {
        font-size: 1rem;
        flex-shrink: 1;
    }
    
    .landlord-header .subtitle {
        display: none;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
        flex-shrink: 0;
    }
    
    .logout-text {
        display: none;
    }
    
    .btn-logout {
        padding: 0.5rem 0.75rem;
    }
    
    /* Responsive Tables */
    .tenants-table-container,
    .chart-section {
        overflow-x: auto;
    }
    
    .data-table {
        font-size: 0.875rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .filter-section {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .filter-group label {
        margin-bottom: 0.375rem;
    }
    
    .action-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .btn-action {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
    
    .stat-content .stat-value {
        font-size: 1.5rem;
    }
    
    .summary-card {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .chart-section,
    .outlets-section {
        padding: 1rem;
    }
    
    .section-header h3 {
        font-size: 1rem;
    }
    
    .chart-wrapper {
        height: 250px;
    }
    
    .outlets-section .outlets-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .outlets-section .outlet-meta {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .outlets-section .outlet-card {
        padding: 1rem;
    }
    
    .modal-content {
        max-width: 100%;
        margin: 0;
        max-height: 95vh;
    }
    
    #tenantForm,
    #outletForm {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .landlord-header h1 {
        font-size: 0.875rem;
    }
    
    .outlets-section .outlet-meta {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .outlets-section .outlet-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .form-actions {
        flex-direction: column-reverse;
        gap: 0.5rem;
    }
    
    .form-actions button {
        width: 100%;
        padding: 0.875rem;
    }
    
    .btn-secondary,
    .btn-primary {
        width: 100%;
        padding: 0.875rem;
        font-size: 0.9375rem;
    }
}

/* ========================================
   REGISTRATION PAGE STYLES
   ======================================== */

.registration-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.registration-form-card,
.registration-list-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.registration-form-card h4,
.registration-list-card h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.registration-form-card h4 i,
.registration-list-card h4 i {
    color: var(--primary);
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

.form-group label input[type="checkbox"] {
    margin-right: 0.5rem;
}

.registration-form-card .form-group label,
.registration-list-card .form-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.registration-form-card .form-group label:not(:has(input)) {
    display: block;
}

.registration-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: #F9FAFB;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    transition: all 0.2s ease;
}

.registration-item:hover {
    background: #F3F4F6;
    border-color: var(--primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.registration-item:last-child {
    margin-bottom: 0;
}

.registration-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 1rem;
}

.registration-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.registration-info h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.registration-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon-small {
    background: none;
    border: 1px solid #D1D5DB;
    cursor: pointer;
    font-size: 14px;
    padding: 0.5rem;
    color: var(--text-light);
    border-radius: 6px;
    transition: all 0.2s ease;
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-small:hover {
    background: #FEE2E2;
    border-color: #EF4444;
    color: #EF4444;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-light);
}

.empty-state i {
    display: block;
    margin-bottom: 1rem;
}

.error-state {
    padding: 2rem;
    text-align: center;
    color: #F44336;
}

/* Responsive Registration */
@media (max-width: 768px) {
    .registration-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .registration-form-card,
    .registration-list-card {
        padding: 1.5rem;
    }

    .registration-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}