/* ==========================================================================
   Client Hosting & Website Renewal Management Application - Style Sheet
   ========================================================================== */

:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-color: #64748b;
    --bg-light: #f8fafc;
    --card-border: #e2e8f0;
    --sidebar-width: 260px;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --status-paid: #10b981;
    --status-upcoming: #06b6d4;
    --status-due: #f59e0b;
    --status-overdue: #ef4444;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-size: 0.925rem;
}

.app-wrapper {
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    z-index: 1040;
    transition: all 0.3s ease;
    background-color: #0f172a !important;
}

.sidebar .nav-link {
    color: #94a3b8;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    border-radius: 0.375rem;
    margin: 0.15rem 0.75rem;
    transition: all 0.2s ease-in-out;
}

.sidebar .nav-link .nav-icon {
    width: 24px;
    text-align: center;
    margin-right: 12px;
    font-size: 1rem;
}

.sidebar .nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
}

.sidebar .nav-link.active {
    color: #ffffff;
    background-color: var(--primary-color);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.extra-small {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Glass & Card Design */
.card {
    border: 1px solid var(--card-border);
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

/* KPI Summary Cards */
.stat-card {
    border: none;
    border-left: 4px solid var(--primary-color);
    border-radius: 0.75rem;
    background: #ffffff;
}

.stat-card.stat-primary { border-left-color: var(--primary-color); }
.stat-card.stat-warning { border-left-color: var(--status-due); }
.stat-card.stat-danger { border-left-color: var(--status-overdue); }
.stat-card.stat-success { border-left-color: var(--status-paid); }
.stat-card.stat-info { border-left-color: var(--status-upcoming); }

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Badges & Status Colors */
.badge-status-paid { background-color: #d1fae5; color: #065f46; }
.badge-status-upcoming { background-color: #cff4fc; color: #055160; }
.badge-status-due { background-color: #fef3c7; color: #92400e; }
.badge-status-overdue { background-color: #fee2e2; color: #991b1b; }

/* Table Styling */
.table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--text-muted);
    background-color: #f8fafc;
    border-bottom: 1px solid var(--card-border);
    padding: 0.85rem 1rem;
}

.table td {
    padding: 0.9rem 1rem;
    vertical-align: middle;
}

/* Quick Action Buttons */
.btn-action {
    padding: 0.3rem 0.65rem;
    font-size: 0.8rem;
    border-radius: 0.375rem;
    font-weight: 500;
}

/* Activity Timeline */
.timeline {
    position: relative;
    padding-left: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background-color: #e2e8f0;
}

.timeline-item {
    position: relative;
    padding-bottom: 1.25rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 2px solid #ffffff;
}

/* Responsive Mobile Sidebar */
@media (max-width: 767.98px) {
    .sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        bottom: 0;
    }
    .sidebar.show {
        left: 0;
    }
}
