/* Estilos Modernos para WHMCS Teramont Theme */

/* ====================================
   DASHBOARD MODERNO
   ==================================== */

.modern-dashboard {
    padding: 0;
}

.welcome-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1rem;
    padding: 2.5rem;
    color: white;
    margin-bottom: 2rem;
}

.welcome-section h1 {
    color: white !important;
    font-weight: 300;
    font-size: 2.2rem;
}

.welcome-section p {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1.1rem;
}

.account-status .badge {
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ====================================
   CARDS DE ESTADÍSTICAS
   ==================================== */

.stats-grid {
    margin-top: -1rem;
}

.stat-card .card {
    transition: all 0.3s ease;
    border: none !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08) !important;
}

.stat-card .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15) !important;
}

.stat-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.stat-icon.services {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.stat-icon.domains {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.stat-icon.affiliates,
.stat-icon.quotes {
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}

.stat-icon.tickets {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.stat-icon.invoices {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* ====================================
   ACCIONES RÁPIDAS
   ==================================== */

.quick-actions .card {
    border: none !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08) !important;
}

.quick-action-btn {
    display: block;
    padding: 1.5rem 1rem;
    text-decoration: none;
    color: inherit;
    border-radius: 0.75rem;
    background: #f8f9fa;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    text-decoration: none;
    color: #007bff;
    background: rgba(0, 123, 255, 0.05);
    border-color: #007bff;
    transform: translateY(-2px);
}

.quick-action-icon {
    width: 3rem;
    height: 3rem;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #6c757d;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.quick-action-btn:hover .quick-action-icon {
    background: #007bff;
    color: white;
}

/* ====================================
   PANELES DINÁMICOS MODERNIZADOS
   ==================================== */

.dynamic-panels .modern-panel {
    border: none !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08) !important;
    border-radius: 1rem !important;
    overflow: hidden;
    transition: all 0.3s ease;
}

.dynamic-panels .modern-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.12) !important;
}

.dynamic-panels .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.dynamic-panels .card-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.dynamic-panels .list-group-item {
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    transition: all 0.2s ease;
}

.dynamic-panels .list-group-item:hover {
    background-color: #f8f9fa;
    padding-left: 2rem !important;
}

.dynamic-panels .list-group-item:last-child {
    border-bottom: none !important;
}

.font-weight-500 {
    font-weight: 500;
}

.font-weight-600 {
    font-weight: 600;
}

/* ====================================
   LAYOUT MODERNO
   ==================================== */

.modern-layout {
    padding: 2rem 0;
}

.primary-content {
    background: transparent;
}

/* ====================================
   SIDEBAR MODERNA
   ==================================== */

.modern-sidebar-container {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.modern-nav-header h6 {
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.modern-nav-link {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.modern-nav-link:hover {
    text-decoration: none;
    color: #007bff;
    border-color: #007bff !important;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 123, 255, 0.15);
    transform: translateY(-1px);
}

.modern-nav-link.active {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
    color: white !important;
    border-color: transparent !important;
}

.modern-nav-link.active .text-primary {
    color: white !important;
}

.modern-nav-link.active .text-dark {
    color: white !important;
}

/* ====================================
   RESPONSIVE
   ==================================== */

@media (max-width: 768px) {
    .welcome-section {
        padding: 2rem 1.5rem;
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .welcome-section h1 {
        font-size: 1.8rem;
    }
    
    .stats-grid .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .quick-action-btn {
        padding: 1rem 0.5rem;
    }
    
    .quick-action-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
    
    .modern-layout {
        padding: 1rem 0;
    }
}

/* ====================================
   ANIMACIONES
   ==================================== */

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

.stat-card {
    animation: fadeInUp 0.6s ease;
}

.stat-card:nth-child(2) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(4) {
    animation-delay: 0.3s;
}

.quick-actions {
    animation: fadeInUp 0.6s ease 0.4s both;
}

.dynamic-panels {
    animation: fadeInUp 0.6s ease 0.5s both;
}

/* ====================================
   MEJORAS ADICIONALES
   ==================================== */

.card {
    border-radius: 0.75rem !important;
}

.btn {
    border-radius: 0.5rem;
}

.badge {
    border-radius: 0.375rem;
}

.alert {
    border-radius: 0.75rem;
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}