body {
    background-color: #f8f9fa;
}
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
}
.table-responsive {
    margin-top: 1rem;
}

.card a {
    color: inherit !important;
    transition: transform 0.15s, box-shadow 0.15s;
}
.card a:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Sidebar */
.sidebar {
    background-color: #335566;
    border-right: 1px solid #dee2e6;
}
@media (max-width: 767.98px) {
    .sidebar {
        height: auto !important;
        min-height: auto !important;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
        padding-bottom: 1rem !important;
        margin-bottom: 1rem;
    }
    .vh-100 {
        height: auto !important;
    }
}



/* Colores personalizados para tarjetas */
.card-total { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}
.card-activos { 
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}
.card-vencidos { 
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: white;
}

.card-por-vencer { 
    background: linear-gradient(135deg, #ee8d1c 0%, #f9e403 100%);
    color: white;
}


/* ============================================
   SIDEBAR PERSONALIZADO
   ============================================ */

/* Fondo del sidebar con degradado */
.sidebar {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ffffff;
    border-right: none;
    box-shadow: 2px 0 15px rgba(0,0,0,0.3);
    padding: 1.5rem 1rem !important;
}

/* Título del sidebar */
.sidebar h4 {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    margin-bottom: 1.5rem;
}
.sidebar h4 i {
    color: #e94560;
    margin-right: 10px;
}

/* Separador */
.sidebar hr {
    border-color: rgba(255,255,255,0.1);
    margin: 1.5rem 0;
}

/* Texto informativo del sidebar */
.sidebar .text-muted {
    color: rgba(255,255,255,0.6) !important;
    font-size: 0.85rem;
}
.sidebar .text-muted p {
    margin-bottom: 0.25rem;
}

/* ============================================
   BOTONES DEL SIDEBAR
   ============================================ */

/* Botón Nuevo Cliente */
.btn-cliente {
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: white;
    border: none;
    font-weight: 600;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 206, 201, 0.3);
}
.btn-cliente:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 206, 201, 0.5);
    color: white;
    background: linear-gradient(135deg, #00a381, #00b8b3);
}
.btn-cliente i {
    margin-right: 8px;
}

/* Botón Nuevo Servicio */
.btn-servicio {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
    border: none;
    font-weight: 600;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}
.btn-servicio:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.5);
    color: white;
    background: linear-gradient(135deg, #5f3dc4, #8c7ae6);
}
.btn-servicio i {
    margin-right: 8px;
}

/* Botón Editar Servicio */
.btn-edit-servicio {
    background: linear-gradient(135deg, #fdcb6e, #f39c12);
    color: #2d3436;
    border: none;
    font-weight: 600;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}
.btn-edit-servicio:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.5);
    color: #2d3436;
    background: linear-gradient(135deg, #fdcb6e, #e67e22);
}
.btn-edit-servicio i {
    margin-right: 8px;
}

/* ============================================
   RESPONSIVE DEL SIDEBAR
   ============================================ */

@media (max-width: 767.98px) {
    .sidebar {
        background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
        height: auto !important;
        min-height: auto !important;
        border-right: none;
        border-bottom: 3px solid #e94560;
        padding: 1rem !important;
        margin-bottom: 0;
        border-radius: 0 0 20px 20px;
    }
    .sidebar .d-grid {
        display: flex !important;
        flex-wrap: wrap;
        gap: 8px;
    }
    .sidebar .d-grid .btn {
        flex: 1;
        min-width: 120px;
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
    .sidebar h4 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    .sidebar hr {
        margin: 1rem 0;
    }
    .sidebar .text-muted {
        display: none;
    }
}


/* Contenido principal */
main {
    background-color: #f5f6fa;
    min-height: 100vh;
}

/* Tarjetas de estadísticas con sombras mejoradas */
main .card {
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
}
main .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* Botón Respaldo */
.btn-backup {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    font-weight: 600;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
    text-decoration: none;
    display: block;
    text-align: center;
}
.btn-backup:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.5);
    color: white;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}
.btn-backup i {
    margin-right: 8px;
}

/* Estilos para días restantes */
.badge {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    min-width: 70px;
    display: inline-block;
}
.badge.bg-success {
    background-color: #2ecc71 !important;
}
.badge.bg-warning {
    background-color: #f39c12 !important;
    color: #2d3436 !important;
}
.badge.bg-danger {
    background-color: #e74c3c !important;
}
.badge.bg-primary {
    background-color: #3498db !important;
}
