/* Master SuperUser K3 INFOSOFT Billing Admin Theme */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-blue: #0f172a;
    --primary-blue-dark: #020617;
    --accent-blue: #2563eb;
    --accent-yellow: #f59e0b;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --sidebar-width: 270px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.12);
}

body {
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(180deg, #020617 0%, #0f172a 100%);
    color: #ffffff;
    z-index: 1000;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.sidebar .brand {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar .brand-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.sidebar .brand-subtitle {
    font-size: 0.7rem;
    color: #38bdf8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-section-label {
    padding: 1.25rem 1.5rem 0.5rem 1.5rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #64748b;
}

.sidebar-menu {
    list-style: none;
    padding: 0 0.75rem 1rem 0.75rem;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 3px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.7rem 1rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

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

.sidebar-menu a.active {
    background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.sidebar-menu a i {
    font-size: 1.05rem;
    width: 22px;
    text-align: center;
}

/* Main Layout */
.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-navbar {
    height: 70px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.top-navbar .user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-navbar .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.main-content {
    padding: 2rem;
    flex: 1;
}

/* Stat Cards */
.stat-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

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

.icon-blue { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.icon-green { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.icon-amber { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.icon-red { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.icon-purple { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }

.stat-card .value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.stat-card .label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Custom Table */
.custom-table-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.custom-table-card .card-header {
    padding: 1.25rem 1.5rem;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.table th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 700;
    border-top: none;
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 1.25rem;
    background: #f8fafc;
}

.table td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    color: var(--text-main);
    font-size: 0.9rem;
}

/* Badges */
.badge-custom {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-paid, .badge-active {
    background-color: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.badge-unpaid, .badge-suspended {
    background-color: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.badge-partial, .badge-expired {
    background-color: rgba(245, 158, 11, 0.12);
    color: #b45309;
}

.badge-draft {
    background-color: rgba(100, 116, 139, 0.12);
    color: #475569;
}

/* Form controls */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 0.65rem 0.9rem;
    font-size: 0.92rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Login Page Styling */
.login-bg {
    min-height: 100vh;
    background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.login-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
}

.btn-primary-custom {
    background-color: #2563eb;
    color: #ffffff;
    font-weight: 600;
    border: none;
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-primary-custom:hover {
    background-color: #1d4ed8;
    color: #ffffff;
}
