/* Reset y base - MEJORADO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a6491;
    --primary-dark: #3a5479;
    --primary-light: #5d78a6;
    --secondary-color: #2c3e50;
    --accent-color: #f0f2f5;
    --text-primary: #333;
    --text-secondary: #666;
    --text-light: #888;
    --border-color: #e9ecef;
    --success-color: #388e3c;
    --info-color: #1976d2;
    --error-color: #d32f2f;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #f0f2f5 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Contenedor principal - MEJORADO */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar - MEJORADO */
.sidebar {
    width: 220px;
    background: var(--white);
    color: var(--text-primary);
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    z-index: 100;
    transition: var(--transition);
}

.sidebar-header {
    text-align: center;
    padding: 0 20px 25px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 25px;
}

.sidebar-header h2 {
    font-size: 18px;
    font-weight: 700;
    margin-top: 15px;
    color: var(--secondary-color);
    letter-spacing: -0.5px;
}

.sidebar-header .logo {
    width: 100px;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 0 auto;
    display: block;
    object-fit: contain;
    padding: 8px;
    background: var(--white);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.sidebar-header .logo:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Navegación sidebar - MEJORADO */
.sidebar-nav {
    padding: 0 15px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    transition: var(--transition);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-item:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: var(--white);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(74, 100, 145, 0.2);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(74, 100, 145, 0.3);
}

.nav-item:hover::before,
.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--white);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.nav-item i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    font-size: 16px;
}

/* Estadísticas - MEJORADO */
.nav-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.nav-section h3 {
    font-size: 13px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 1px;
}

.stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.stat {
    flex: 1;
    min-width: 80px;
    text-align: center;
    background: linear-gradient(135deg, var(--accent-color) 0%, #e9ecef 100%);
    padding: 12px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.stat-number {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
}

.stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Contenido principal - MEJORADO */
.main-content {
    flex: 1;
    margin-left: 220px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: transparent;
}

/* Top bar - MEJORADO */
.top-bar {
    background: var(--white);
    padding: 18px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 90;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.search-container {
    position: relative;
    flex: 1;
    max-width: 450px;
}

.search-container i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    z-index: 1;
}

.search-container input {
    width: 100%;
    padding: 12px 20px 12px 48px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    background: var(--accent-color);
}

.search-container input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(74, 100, 145, 0.1);
}

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

.avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.avatar:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

/* Contenido - MEJORADO */
.content {
    flex: 1;
    padding: 30px;
    animation: fadeIn 0.5s ease-out;
}

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

/* Cards - MEJORADO */
.card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    padding: 22px 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--white) 0%, #fafafa 100%);
}

.card-header h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 19px;
    font-weight: 700;
    color: var(--secondary-color);
}

.card-header h3 i {
    color: var(--primary-color);
}

.card-body {
    padding: 30px;
}

/* Formularios - MEJORADO */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: var(--transition);
    background: var(--accent-color);
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(74, 100, 145, 0.15);
    transform: translateY(-1px);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

.form-actions {
    text-align: right;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

/* Botones - MEJORADO */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(74, 100, 145, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #2c3e50 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 100, 145, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent-color) 0%, #e4e7eb 100%);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #e4e7eb 0%, #d1d5db 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-text {
    background: transparent;
    color: var(--text-secondary);
    padding: 10px 16px;
}

.btn-text:hover {
    color: var(--primary-color);
    background: rgba(74, 100, 145, 0.05);
    transform: translateY(-1px);
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: scale(1.1);
}

/* BOTÓN DE EXPORTAR - COMPLETAMENTE REDISEÑADO */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--white) 0%, #f8f9fa 100%);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    min-width: 140px;
    justify-content: center;
}

.dropdown-toggle:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.dropdown-toggle i {
    font-size: 16px;
    transition: var(--transition);
}

.dropdown-toggle:hover i {
    transform: translateY(1px);
}

.dropdown-toggle::after {
    content: '▾';
    margin-left: 4px;
    font-size: 12px;
    opacity: 0.7;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    min-width: 200px;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
    overflow: hidden;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    font-weight: 500;
    font-size: 14px;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, var(--accent-color) 0%, #e9ecef 100%);
    color: var(--primary-color);
    padding-left: 24px;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
    font-size: 16px;
}

.dropdown-item:hover i {
    transform: translateX(2px);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

/* Tabla - MEJORADA */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--white);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 800px;
}

table th {
    text-align: left;
    padding: 18px 20px;
    background: linear-gradient(135deg, var(--white) 0%, #f8f9fa 100%);
    font-weight: 700;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
}

table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
    transition: var(--transition);
}

table tr:hover td {
    background: linear-gradient(135deg, rgba(74, 100, 145, 0.03) 0%, rgba(74, 100, 145, 0.01) 100%);
}

table tr:last-child td {
    border-bottom: none;
}

.date-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.date {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 15px;
}

.time {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

/* Badge - MEJORADO */
.badge {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(74, 100, 145, 0.1) 0%, rgba(74, 100, 145, 0.05) 100%);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid rgba(74, 100, 145, 0.2);
    transition: var(--transition);
}

.badge:hover {
    background: linear-gradient(135deg, rgba(74, 100, 145, 0.2) 0%, rgba(74, 100, 145, 0.1) 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(74, 100, 145, 0.1);
}

/* Activity preview - MEJORADO */
.activity-preview {
    max-width: 350px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-small {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.actions {
    display: flex;
    gap: 8px;
}

/* Filter bar - MEJORADO */
.filter-bar {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    white-space: nowrap;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 14px;
    min-width: 70px;
}

.filter-group label i {
    margin-right: 6px;
    color: var(--primary-color);
}

.filter-group input,
.filter-group select {
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    flex: 1;
    min-width: 150px;
    background: var(--accent-color);
    transition: var(--transition);
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(74, 100, 145, 0.1);
}

/* Alertas - MEJORADAS */
.alert {
    padding: 18px 24px;
    border-radius: var(--radius-md);
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideDown 0.4s ease-out;
    border-left: 4px solid;
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.3) 100%);
    opacity: 0.5;
}

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

.alert-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: var(--info-color);
    border-left-color: var(--info-color);
}

.alert-success {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: var(--success-color);
    border-left-color: var(--success-color);
}

.alert-error {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: var(--error-color);
    border-left-color: var(--error-color);
}

.alert-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    opacity: 0.7;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.alert-close:hover {
    opacity: 1;
    background: rgba(0,0,0,0.05);
}

/* Modal - MEJORADO */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    padding: 24px 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 1;
}

.modal-header h3 {
    color: var(--secondary-color);
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close:hover {
    color: var(--error-color);
    background: rgba(211, 47, 47, 0.05);
}

.modal-body {
    padding: 30px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.detail-item {
    margin-bottom: 20px;
}

.detail-item.full {
    grid-column: 1 / -1;
}

.detail-item label {
    display: block;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item span,
.detail-item strong {
    display: block;
    font-size: 16px;
    color: var(--text-primary);
}

.detail-item code {
    display: inline-block;
    padding: 6px 12px;
    background: var(--accent-color);
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.activity-detail {
    white-space: pre-line;
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    line-height: 1.7;
    margin-top: 10px;
    font-size: 15px;
}

/* Footer - MEJORADO */
.footer {
    text-align: center;
    padding: 24px 30px;
    color: var(--text-secondary);
    font-size: 14px;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--white) 0%, #fafafa 100%);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer p {
    margin: 0;
    font-weight: 500;
}

.footer p:first-child {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Empty state - MEJORADO */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-radius: var(--radius-md);
    border: 2px dashed var(--border-color);
}

.empty-state i {
    font-size: 56px;
    margin-bottom: 24px;
    opacity: 0.3;
    color: var(--primary-color);
}

.empty-state p {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Notificación - MEJORADA */
.notification {
    position: fixed;
    top: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--success-color) 0%, #2e7d32 100%);
    color: var(--white);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1100;
    animation: slideInRight 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 400px;
}

.notification::before {
    content: '✓';
    font-size: 20px;
    font-weight: bold;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive - MEJORADO */
@media (max-width: 1200px) {
    .sidebar {
        width: 200px;
    }
    
    .main-content {
        margin-left: 200px;
    }
}

@media (max-width: 992px) {
    .sidebar {
        width: 70px;
        padding: 15px 0;
    }
    
    .sidebar-header h2,
    .nav-item span,
    .nav-section h3,
    .stat-label,
    .stat-number {
        display: none;
    }
    
    .sidebar-header {
        padding: 0 10px 15px;
    }
    
    .sidebar-header .logo {
        width: 50px;
        padding: 4px;
    }
    
    .nav-item {
        justify-content: center;
        padding: 12px;
    }
    
    .nav-item i {
        margin-right: 0;
        font-size: 18px;
    }
    
    .stats {
        flex-direction: column;
        gap: 8px;
    }
    
    .main-content {
        margin-left: 70px;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .content {
        padding: 20px;
    }
    
    .card-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .card-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: flex-start;
    }
    
    .activity-preview {
        max-width: 200px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10px;
        max-height: 80vh;
    }
}

@media print {
    .sidebar,
    .top-bar,
    .filter-bar,
    .card-actions,
    .actions,
    .btn-export,
    .notification {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
    
    table {
        min-width: auto;
    }
    
    .badge {
        border: 1px solid #ccc;
    }
}