/* Sidebar Styles */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.toggle-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-btn:hover {
    background: rgba(255,255,255,0.2);
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
    gap: 15px;
}

.sidebar-nav a:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.sidebar-nav a.active {
    background: rgba(255,255,255,0.15);
    border-left: 3px solid #667eea;
    color: white;
}

.sidebar-nav a i {
    width: 20px;
}

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

.sidebar-footer .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}

.sidebar-footer .user-info i {
    font-size: 1.5rem;
}

/* Main Content */
.main-content {
    margin-left: 260px;
    transition: all 0.3s ease;
    min-height: 100vh;
    background: #f7fafc;
}

.sidebar.collapsed + .main-content {
    margin-left: 70px;
}

.content-header {
    background: white;
    padding: 20px 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.content-header h2 {
    margin: 0;
    color: #2d3748;
}

.content-body {
    padding: 0 30px 30px 30px;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.card-header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 20px;
    font-weight: 600;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.table th {
    background: #f8fafc;
    font-weight: 600;
    color: #4a5568;
}

/* Badges */
.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.badge-solicitado { background: #fed7d7; color: #c53030; }
.badge-preparando { background: #feebc8; color: #c05621; }
.badge-listo { background: #c6f6d5; color: #276749; }
.badge-entregado { background: #c6f6d5; color: #276749; }
.badge-pendiente { background: #fed7d7; color: #c53030; }
.badge-pagado { background: #c6f6d5; color: #276749; }
.badge-disponible { background: #c6f6d5; color: #276749; }
.badge-ocupada { background: #fed7d7; color: #c53030; }

/* Buttons */
.btn-sm {
    padding: 5px 10px;
    font-size: 0.875rem;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    border: 3px solid #e2e8f0;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal */
.modal-xl {
    max-width: 90%;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px;
    color: #a0aec0;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }
    .sidebar.collapsed {
        width: 0;
        overflow: hidden;
    }
    .main-content {
        margin-left: 70px;
    }
    .sidebar.collapsed + .main-content {
        margin-left: 0;
    }
    .content-body {
        padding: 0 15px 15px 15px;
    }
}