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

:root {
    --am-blue:       #2563eb;
    --am-blue-hover: #1d4ed8;
    --am-blue-50:    #eff6ff;
    --am-blue-100:   #dbeafe;
    --am-border:     #e2e8f0;
    --am-bg:         #f8fafc;
    --am-text:       #0f172a;
    --am-muted:      #64748b;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--am-bg);
    margin: 0;
    padding: 0;
    overflow-y: auto;
    min-height: 100vh;
}

/* Container */
.container {
    background-color: #ffffff;
    margin-left: 224px;
    width: calc(100% - 224px);
    padding: 28px 32px;
    border-left: 1px solid var(--am-border);
    box-shadow: none;
    box-sizing: border-box;
    min-height: 100vh;
}

/* Title */
.title {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 22px;
    font-weight: 700;
    text-align: left;
    color: var(--am-text);
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

/* Sections */
.section {
    font-family: 'Inter', -apple-system, sans-serif;
    margin-bottom: 16px;
    padding: 16px 20px;
    background-color: #ffffff;
    border: 1px solid var(--am-border);
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* Section headers */
.section h2 {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--am-blue);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Input groups */



/* =========================
   SIDEBAR OFFSET — page wrappers that use margin:0 auto
   The sidebar is position:fixed at 220px. These wrappers must
   manually offset and fill the remaining viewport width.
   ========================= */

.accounts-page-wrap,
.page-wrap,
.dash-wrap,
.leads-wrap {
    margin-left: 224px !important;
    margin-right: 0 !important;
    width: calc(100% - 224px) !important;
    max-width: none !important;
    box-sizing: border-box;
}

/* Responsive Layout */
@media (max-width: 900px) {
    .account-card {
        width: 200px;
    }
}

@media (max-width: 600px) {
    .account-card {
        width: 100%;
    }
}

/* =========================
   MOBILE — hide sidebar, full-width content
   ========================= */

@media (max-width: 768px) {
    .left-menu {
        display: none !important;
    }
    .container {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 16px !important;
        border-left: none !important;
    }
    .accounts-page-wrap,
    .page-wrap,
    .dash-wrap,
    .leads-wrap {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px !important;
        box-sizing: border-box !important;
    }
    /* Tables scroll horizontally on mobile */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
}





.spinner {
    border: 8px solid rgba(0, 0, 0, 0.07);
    border-left-color: #2563eb;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.3s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

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

