* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        ),
        linear-gradient(180deg, 
            #b8b8b8 0%,
            #d5d5d5 5%,
            #ebebeb 15%,
            #ffffff 25%,
            #f8f8f8 35%,
            #ffffff 45%,
            #fafafa 50%,
            #ffffff 55%,
            #f5f5f5 65%,
            #e8e8e8 75%,
            #d8d8d8 85%,
            #c8c8c8 95%,
            #b5b5b5 100%
        );
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 260px;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ============= SIDEBAR NAVIGATION ============= */
.sidebar {
    width: 260px;
    background: linear-gradient(135deg, #0F1B6F 0%, #3480BA 100%);
    color: white;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 25%, #ffffff 50%, #d0d0d0 75%, #c0c0c0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4));
}

.logo-megatk {
    width: 100%;
    max-width: 180px;
    height: auto;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.sidebar-header p {
    font-size: 12px;
    opacity: 0.8;
    text-align: center;
}

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

.sidebar-menu li {
    margin-bottom: 5px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: white;
}

.menu-item.active {
    background: rgba(255, 255, 255, 0.15);
    border-left-color: #ffd700;
    font-weight: bold;
}

.menu-item .icon {
    font-size: 20px;
    margin-right: 12px;
    min-width: 24px;
}

.menu-item .text {
    font-size: 14px;
}

.sidebar-footer {
    position: relative;
    z-index: 1;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-footer .status-badge {
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px;
    border-radius: 5px;
    font-size: 12px;
    margin-bottom: 8px;
}

.sidebar-footer .last-update {
    display: block;
    font-size: 10px;
    text-align: center;
    opacity: 0.7;
}

/* ============= MAIN CONTENT AREA ============= */
.main-content {
    margin-left: 260px;
    width: calc(100% - 260px);
    min-height: 100vh;
    padding: 20px;
    background: transparent;
}

.top-header {
    background: white;
    padding: 20px 30px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e0e0e0;
}

.top-header h1 {
    color: #0F1B6F;
    font-size: 24px;
    margin: 0;
    font-weight: 600;
}

.top-header .status-badge {
    font-size: 12px;
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: 500;
}

/* ============= VIEW SECTIONS ============= */
.view-section {
    display: none;
}

.view-section.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============= CONTAINERS AND CARDS ============= */

.status-badge.connected {
    background: #10b981;
    color: white;
}

.status-badge.disconnected {
    background: #ef4444;
    color: white;
}

.status-badge::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.last-update {
    font-size: 12px;
    color: #dadada;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    flex-wrap: wrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.card-header > div {
    display: flex;
    gap: 10px;
}

.card-header h2 {
    color: #0F1B6F;
    font-size: 22px;
    font-weight: 600;
}

.btn-refresh {
    padding: 10px 20px;
    background: #3480BA;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-refresh:hover {
    background: #3480BA;
    transform: translateY(-2px);
}

.btn-refresh:active {
    transform: translateY(0);
}

.stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-item {
    flex: 1;
    min-width: 150px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #5e5e5e;
}

.stat-item.connected {
    border-left-color: #10b981;
}

.stat-item.disconnected {
    border-left-color: #ef4444;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: #333;
}

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

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

thead {
    background: #f8f9fa;
}

th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
}

td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}

tbody tr {
    transition: background 0.2s ease;
}

tbody tr:hover {
    background: #f8f9fa;
}

.loading {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 30px !important;
}

.empty {
    text-align: center;
    color: #999;
    padding: 30px !important;
}

.device-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 13px;
}

.device-status.online {
    background: #d1fae5;
    color: #065f46;
}

.device-status.offline {
    background: #fee2e2;
    color: #991b1b;
}

.device-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.record-type {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.record-type.entrada {
    background: #dbeafe;
    color: #1e40af;
}

.record-type.salida {
    background: #fef3c7;
    color: #92400e;
}

.temperature {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.temperature.normal {
    color: #10b981;
}

.temperature.high {
    color: #ef4444;
    font-weight: bold;
}

footer {
    text-align: center;
    color: white;
    margin-top: 30px;
    padding: 15px;
    font-size: 14px;
}

/* ============= MODALES ============= */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid #e5e7eb;
}

.modal-header h3 {
    color: #333;
    font-size: 20px;
}

.close {
    color: #999;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover,
.close:focus {
    color: #333;
}

/* ============= FORMULARIOS ============= */
form {
    padding: 25px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3480BA;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #6b7280;
    font-size: 12px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
}

/* ============= BOTONES ============= */
.btn-add {
    background: #10b981;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.btn-cancel {
    background: #6b7280;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background: #4b5563;
}

.btn-submit {
    background: #3480BA;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-submit:hover {
    background: #0F1B6F;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 128, 186, 0.3);
}

.btn-submit:disabled,
.btn-cancel:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-edit {
    background: #f59e0b;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-edit:hover {
    background: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.btn-delete {
    background: #ef4444;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-delete:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

.btn-delete:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .server-status {
        align-items: center;
    }

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

    .stats {
        flex-direction: column;
    }

    table {
        font-size: 12px;
    }

    th, td {
        padding: 8px;
    }
}

/* ============= ESTILOS PARA ORGANIZACIÓN ============= */
.organization-summary {
    display: flex;
    gap: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* ============= FILTERS SECTION ============= */
.filters-section {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filters-section label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 140px;
    flex-shrink: 0;
}

.filters-section label span {
    font-size: 0.85em;
    color: #555;
    font-weight: 500;
}

/* Filtros para gestión de ubicaciones */
.filters-container {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 180px;
}

.filter-group label {
    font-size: 0.9em;
    color: #555;
    font-weight: 500;
    margin-bottom: 5px;
}


.filters-section select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    font-size: 0.85em;
    cursor: pointer;
}

.filters-section select:disabled {
    background: #e9ecef;
    cursor: not-allowed;
}

.filters-section .btn-secondary {
    padding: 6px 14px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 500;
    transition: background 0.2s;
    white-space: nowrap;
    height: fit-content;
    margin-top: 20px;
}

.filters-section .btn-secondary:hover {
    background: #5a6268;
}

.filters-section .btn-primary {
    padding: 6px 14px;
    background: #3480BA;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 500;
    transition: background 0.2s;
    white-space: nowrap;
    height: fit-content;
    margin-top: 5px;
}

.filters-section .btn-primary:hover {
    background: #0F1B6F;
}

.filters-section .btn-download {
    padding: 5px 10px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    height: fit-content;
    margin-top: 20px;
}

.filters-section .btn-download:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(40, 167, 69, 0.3);
}

.filters-section input[type="date"] {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    width: 100%;
}

/* Hacer que los labels de fecha sean completamente clickeables */
.filters-section label#labelDateFrom,
.filters-section label#labelDateTo {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
}

.filters-section label#labelDateFrom:hover,
.filters-section label#labelDateTo:hover {
    background: rgba(52, 128, 186, 0.05);
}

.filters-section label#labelDateFrom span,
.filters-section label#labelDateTo span {
    cursor: pointer;
    white-space: nowrap;
}

.filters-section input[type="date"]:hover {
    border-color: #3480BA;
    box-shadow: 0 2px 5px rgba(52, 128, 186, 0.15);
    transform: translateY(-1px);
}

.filters-section input[type="date"]:focus {
    outline: none;
    border-color: #3480BA;
    box-shadow: 0 0 8px rgba(52, 128, 186, 0.4);
    transform: translateY(-1px);
}

/* ============= LOCATION SECTIONS ============= */
.location-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.btn-nav {
    flex: 1;
    padding: 12px 20px;
    background: #f8f9fa;
    color: #0F1B6F;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background: #e9ecef;
    border-color: #3480BA;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.btn-nav.active {
    background: linear-gradient(135deg, #3480BA, #0F1B6F);
    color: white;
    border-color: #0F1B6F;
    box-shadow: 0 4px 12px rgba(52, 128, 186, 0.3);
}

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

.location-section.hidden {
    display: none;
}

.location-section h3 {
    margin-bottom: 15px;
    color: #0F1B6F;
    font-size: 1.3em;
    padding-bottom: 10px;
    border-bottom: 2px solid #3480BA;
}

.filter-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    width: 200px;
    transition: border 0.3s ease;
}

.filter-input:focus {
    outline: none;
    border-color: #3480BA;
    box-shadow: 0 0 5px rgba(52, 128, 186, 0.3);
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    width: 220px;
    transition: border 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #3480BA;
    box-shadow: 0 0 5px rgba(52, 128, 186, 0.3);
}

.btn-clear-filter {
    padding: 8px 16px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-clear-filter:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.location-section .btn-edit-location {
    padding: 5px 12px;
    background: #3480BA;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    transition: background 0.2s;
}

.location-section .btn-edit-location:hover {
    background: #0F1B6F;
}

/* ============= ESTILOS PARA BULK UPLOAD ============= */
.file-input {
    width: 100%;
    padding: 10px;
    border: 2px dashed #3480BA;
    border-radius: 5px;
    background: #f8f9fa;
    cursor: pointer;
}

.file-input:hover {
    background: #e9ecef;
    border-color: #0F1B6F;
}

.upload-preview {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
}

.upload-preview h4 {
    color: #0F1B6F;
    margin-bottom: 10px;
}

.preview-scroll {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 10px;
}

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

.preview-scroll th,
.preview-scroll td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.preview-scroll thead {
    background: #0F1B6F;
    color: white;
    position: sticky;
    top: 0;
}

.modal-body {
    padding: 20px;
}

.modal-body ul {
    margin: 10px 0;
    padding-left: 20px;
}

.modal-body ul li {
    margin: 5px 0;
    color: #555;
}

/* ============= COMANDOS REMOTOS ============= */
.commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.command-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.command-card:hover {
    border-color: #3480BA;
    box-shadow: 0 6px 12px rgba(52, 128, 186, 0.15);
    transform: translateY(-2px);
}

.command-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 15px;
}

.command-card h3 {
    color: #0F1B6F;
    font-size: 18px;
    margin-bottom: 10px;
    text-align: center;
}

.command-card p {
    color: #666;
    font-size: 13px;
    margin-bottom: 20px;
    text-align: center;
    min-height: 40px;
}

.command-card p.text-danger {
    color: #dc3545;
    font-weight: 600;
}

.device-selector,
.user-selector {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.device-selector:focus,
.user-selector:focus {
    outline: none;
    border-color: #3480BA;
}

.command-status {
    margin-top: 12px;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    min-height: 20px;
    text-align: center;
}

.command-status.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.command-status.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.command-status.info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #3b82f6;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-download {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* ============= RESPONSIVE DESIGN ============= */
@media (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }
    
    .main-content {
        margin-left: 220px;
        width: calc(100% - 220px);
    }
    
    .menu-item .text {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }
    
    .main-content {
        margin-left: 70px;
        width: calc(100% - 70px);
        padding: 10px;
    }
    
    .sidebar-header p,
    .menu-item .text {
        display: none;
    }
    
    .sidebar-header h2 {
        font-size: 18px;
        text-align: center;
    }
    
    .menu-item .icon {
        font-size: 24px;
        margin: 0 auto;
    }
    
    .menu-item {
        justify-content: center;
        padding: 15px 10px;
    }
    
    .top-header h1 {
        font-size: 18px;
    }
    
    .card-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .stats {
        flex-direction: column;
    }
    
    table {
        font-size: 12px;
    }
    
    th, td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .top-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .top-header h1 {
        font-size: 18px;
    }
    
    .top-header .status-badge {
        align-self: stretch;
        text-align: center;
    }
}
