/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fc;
    color: #495057;
}

/* Sidebar Styles */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

#sidebar {
    min-width: 250px;
    max-width: 250px;
    background: #1e3c72 !important;
    color: #fff;
    transition: all 0.3s;
    min-height: 100vh;
}

#sidebar.active {
    margin-left: -250px;
}

#sidebar .logo {
    text-decoration: none;
    padding: 10px;
}

#sidebar ul.components {
    padding: 20px 0;
}

#sidebar ul li a {
    padding: 15px 25px;
    font-size: 1.1em;
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: 0.3s;
}

#sidebar ul li a:hover, #sidebar ul li.active > a {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid #28a745;
}

#sidebar ul li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Content Styles */
#content {
    width: 100%;
    padding: 20px;
    min-height: 100vh;
    transition: all 0.3s;
}

.navbar {
    background: #fff !important;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    padding: 15px 20px;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.dashboard-stat-card {
    padding: 25px;
    color: white;
    border-radius: 15px;
}

.bg-primary-grad { background: linear-gradient(45deg, #1e3c72, #2a5298); }
.bg-success-grad { background: linear-gradient(45deg, #28a745, #218838); }
.bg-info-grad { background: linear-gradient(45deg, #17a2b8, #138496); }
.bg-warning-grad { background: linear-gradient(45deg, #ffc107, #e0a800); }

/* Table Styles */
.table-responsive {
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    padding: 20px;
}

.table th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

/* Form Styles */
.form-control:focus, .form-select:focus {
    box-shadow: none;
    border-color: #2a5298;
}

.btn-primary {
    background: #2a5298;
    border-color: #2a5298;
}

.btn-primary:hover {
    background: #1e3c72;
    border-color: #1e3c72;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
::-webkit-scrollbar-thumb {
    background: #c1c1c1; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8; 
}

/* Loading Overlay */
#loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #2a5298;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ═══════════════════════════════════════════════════════════════
   Domain & Server Manager Styles
   ═══════════════════════════════════════════════════════════════ */

/* Stat Cards */
.dsm-stat-card {
    border-radius: 14px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.dsm-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08) !important;
}
.dsm-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.bg-primary-soft { background: rgba(42, 82, 152, 0.12); }
.bg-success-soft { background: rgba(40, 167, 69, 0.12); }
.bg-warning-soft { background: rgba(255, 193, 7, 0.12); }
.bg-info-soft    { background: rgba(23, 162, 184, 0.12); }
.bg-danger-soft  { background: rgba(220, 53, 69, 0.12); }

/* Status Badges */
.dsm-badge-active {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 20px;
}
.dsm-badge-expiring {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: #fff;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 20px;
    animation: pulse-warning 2s ease-in-out infinite;
}
.dsm-badge-expired {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: #fff;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 20px;
    animation: pulse-danger 2s ease-in-out infinite;
}

@keyframes pulse-warning {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(255, 193, 7, 0); }
}
@keyframes pulse-danger {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(220, 53, 69, 0); }
}

/* Countdown Badge */
.dsm-countdown {
    font-weight: 700;
    font-size: 1.05rem;
    padding: 4px 10px;
    border-radius: 8px;
    display: inline-block;
}
.dsm-countdown-active  { color: #28a745; background: rgba(40,167,69,0.08); }
.dsm-countdown-expiring { color: #e67e22; background: rgba(255,193,7,0.12); }
.dsm-countdown-expired  { color: #dc3545; background: rgba(220,53,69,0.08); }

/* Days Remaining Badge */
.dsm-days-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 2px;
}
.dsm-days-active   { color: #28a745; background: rgba(40,167,69,0.10); }
.dsm-days-expiring { color: #e67e22; background: rgba(255,193,7,0.15); }
.dsm-days-expired  { color: #dc3545; background: rgba(220,53,69,0.10); }

/* Table Row */
.dsm-row {
    transition: background 0.2s ease;
}
.dsm-row:hover {
    background: rgba(42, 82, 152, 0.03) !important;
}

/* Dashboard renewal alert list */
.list-group-item {
    transition: background 0.2s ease;
}
.list-group-item:hover {
    background: #f8f9fa;
}
