@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --primary: #0f766e;
    --primary-hover: #0d9488;
    --primary-dark: #115e59;
    --primary-light: #f0fdfa;
    --primary-border: #99f6e4;
    --font-family: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html, body, button, input, select, textarea, th, td, h1, h2, h3, h4, h5, h6, .btn, .form-control, .form-select {
    font-family: var(--font-family) !important;
}

body {
    background-color: #f8fafc;
    color: #1e293b;
}

.bg-theme {
    background-color: var(--primary) !important;
}

.bg-theme-light {
    background-color: var(--primary-light) !important;
}

.text-theme {
    color: var(--primary) !important;
}

.border-theme {
    border-color: var(--primary) !important;
}

.hover-bg-theme:hover {
    background-color: var(--primary-hover) !important;
}

.btn-theme {
    background-color: var(--primary);
    color: #ffffff;
    transition: all 0.2s ease-in-out;
}

.btn-theme:hover, .btn-theme:focus {
    background-color: var(--primary-hover);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
}

.btn-outline-theme {
    border: 1.5px solid var(--primary);
    color: var(--primary);
    background-color: transparent;
}

.btn-outline-theme:hover {
    background-color: var(--primary);
    color: #ffffff;
}

/* Sidebar styling */
.sidebar {
    background: #0f172a;
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
}

.sidebar-header {
    background: var(--primary-dark);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-link-custom {
    color: #94a3b8;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    margin: 0.2rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

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

.nav-link-custom.active {
    color: #ffffff;
    background: var(--primary);
    box-shadow: 0 4px 10px rgba(15, 118, 110, 0.35);
}

.sub-nav-link {
    color: #cbd5e1;
    font-size: 0.875rem;
    padding: 0.5rem 1rem 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.2s;
    margin-bottom: 5px;
}

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

.sub-nav-link.active {
    color: #5eead4;
    font-weight: 600;
    background: rgba(15, 118, 110, 0.25);
}

/* Dashboard Stat Cards - Image Style */
.stat-card-img {
    background: #ffffff;
    border-radius: 1.25rem;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    padding: 1.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card-img:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.stat-card-title {
    color: #0f172a;
    font-size: 0.975rem;
    font-weight: 600;
}

.stat-card-value {
    font-size: 1.85rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.02em;
    margin-top: 0.35rem;
    margin-bottom: 0.75rem;
}

.stat-card-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

/* Icon Tint Colors matching image pastel squircle palette */
.icon-tint-indigo {
    background-color: #e0e7ff;
    color: #6366f1;
}

.icon-tint-teal {
    background-color: #d1fae5;
    color: #10b981;
}

.icon-tint-amber {
    background-color: #fef3c7;
    color: #f59e0b;
}

.icon-tint-rose {
    background-color: #ffe4e6;
    color: #f43f5e;
}

.icon-tint-orange {
    background-color: #ffedd5;
    color: #f97316;
}

.icon-tint-sky {
    background-color: #e0f2fe;
    color: #0284c7;
}

.trend-badge-up {
    color: #10b981;
    font-weight: 600;
    font-size: 0.825rem;
}

.trend-badge-down {
    color: #f43f5e;
    font-weight: 600;
    font-size: 0.825rem;
}

.trend-label {
    color: #64748b;
    font-weight: 400;
}

/* WHMCS Status Badges */
.badge-status {
    padding: 0.35em 0.75em;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.badge-active {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.badge-expired {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.badge-suspended {
    background-color: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.badge-expiring {
    background-color: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

/* Action buttons */
.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.375rem;
}

/* Custom Table */
.custom-table {
    border-collapse: separate;
    border-spacing: 0;
}

.custom-table th {
    background: #f8fafc;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.85rem 1rem;
}

.custom-table td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
}

.custom-table tbody tr:hover {
    background-color: #f0fdfa;
}

/* Form Styling */
.form-control-custom, .form-select-custom {
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control-custom:focus, .form-select-custom:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
    outline: none;
}

/* Toast container */
.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
}

/* Custom .btn-info Styling */
.btn-info {
    --bs-btn-color: #000;
    --bs-btn-bg: #0d86f0;
    --bs-btn-border-color: #0d86f0;
    --bs-btn-hover-color: #000;
    --bs-btn-hover-bg: #0a61ad;
    --bs-btn-hover-border-color: #0a61ad;
    --bs-btn-focus-shadow-rgb: 11, 172, 204;
    --bs-btn-active-color: #000;
    --bs-btn-active-bg: #0d86f0;
    --bs-btn-active-border-color: #0a61ad;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #000;
    --bs-btn-disabled-bg: #0d86f0;
    --bs-btn-disabled-border-color: #0a61ad;
}
