/* Estilos personalizados para el sistema de gestión de hosting */

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-brand {
    font-weight: bold;
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}

.btn {
    border-radius: 5px;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: #495057;
}

.badge {
    font-size: 0.75em;
}

.alert {
    border: none;
    border-radius: 8px;
}

/* Estilos para los cards de estadísticas */
.card.bg-primary,
.card.bg-success,
.card.bg-info,
.card.bg-warning {
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Estilos para formularios */
.form-control {
    border-radius: 8px;
    border: 1px solid #ced4da;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Estilos para botones */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Animaciones */
.card:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease-in-out;
}

/* Estados de vencimiento */
.vencimiento-critico {
    background-color: #f8d7da !important;
}

.vencimiento-proximo {
    background-color: #fff3cd !important;
}

/* Loader */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estilos para SVG y placeholders */
.svg-placeholder {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 20px;
    color: #6c757d;
    text-align: center;
    min-height: 60px;
}

.svg-placeholder i {
    font-size: 2em;
    margin-bottom: 8px;
}

.svg-error {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f8d7da;
    border: 2px dashed #f5c6cb;
    border-radius: 8px;
    padding: 20px;
    color: #721c24;
    text-align: center;
    min-height: 60px;
}

.svg-error i {
    font-size: 2em;
    margin-bottom: 8px;
}

/* Estilos para SVG responsivos */
svg {
    max-width: 100%;
    height: auto;
}

/* Mejorar la presentación de logos SVG */
.login-header svg,
.card-body svg {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}