/*
Theme Name: EasyAccurate Panel
Theme URI: https://easyaccurate.com
Author: Tom Landry
Description: Panel & billing theme for Easy Accurate.
Version: 1.0.0
Text Domain: easyaccurate-panel
*/

/* Base reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --ea-bg: #020617;
    --ea-bg-soft: #0b1120;
    --ea-border: rgba(30, 64, 175, 0.5);
    --ea-text: #e5e7eb;
    --ea-muted: #9ca3af;
    --ea-accent: #4f46e5;
    --ea-accent-soft: rgba(79, 70, 229, 0.16);
    --ea-green: #22c55e;
    --ea-red: #f97373;
    --ea-radius-lg: 16px;
    --ea-radius-xl: 22px;
    --ea-max-width: 1120px;
}

/* Global body */
body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #020617 0, #000 55%);
    color: var(--ea-text);
}

/* PANEL LAYOUT */

.ea-panel-shell {
    min-height: 100vh;
    display: flex;
    background: radial-gradient(circle at top left, #020617 0, #020617 35%, #000 100%);
}

/* SIDEBAR */

.ea-panel-sidebar {
    width: 260px;
    flex-shrink: 0;
    padding: 20px 18px 24px;
    background: #020617;
    border-right: 1px solid rgba(15, 23, 42, 0.9);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* MAIN AREA */

.ea-panel-main {
    flex: 1;
    padding: 24px 26px 32px;
    max-width: var(--ea-max-width);
    margin: 0 auto;
}

/* LOGO BLOCK */

.ea-panel-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.ea-panel-logo-circle {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, #ffffff 0, #60a5fa 25%, #0ea5e9 65%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.9);
    overflow: hidden;
}

/* Hard clamp logo size so it NEVER blows up */
.ea-panel-logo-circle img,
.custom-logo {
    max-width: 32px;
    max-height: 32px;
    width: auto;
    height: auto;
    display: block;
}

.ea-panel-logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ea-panel-logo-text .ea-name {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #e5e7eb;
}

.ea-panel-logo-text .ea-sub {
    font-size: 11px;
    color: var(--ea-muted);
}

/* NAVIGATION */

.ea-panel-nav-section {
    margin-top: 10px;
}

.ea-panel-nav-section-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(148, 163, 184, 0.9);
    margin-bottom: 6px;
}

.ea-panel-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ea-panel-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 9px;
    border-radius: 9px;
    font-size: 13px;
    color: #cbd5f5;
    text-decoration: none;
    border: 1px solid transparent;
    margin-bottom: 3px;
}

.ea-panel-nav-link .ea-pill {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(52, 211, 153, 0.16);
    color: #bbf7d0;
    border: 1px solid rgba(74, 222, 128, 0.6);
}

.ea-panel-nav-link:hover {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(51, 65, 85, 0.8);
    color: #f9fafb;
}

.ea-panel-nav-link.is-active {
    background: var(--ea-accent-soft);
    border-color: rgba(129, 140, 248, 0.9);
    color: #e0e7ff;
}

/* TOP BAR */

.ea-panel-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 20px;
}

.ea-topbar-left h1 {
    margin: 0 0 6px;
    font-size: 22px;
    color: #f9fafb;
}

.ea-topbar-left p {
    margin: 0;
    font-size: 13px;
    color: #cbd5f5;
}

.ea-topbar-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.ea-plan-pill {
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.7);
    color: #bbf7d0;
}

.ea-billing-pill {
    font-size: 11px;
    color: var(--ea-muted);
}

/* GRID */

.ea-stepper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.ea-step-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.94);
    color: #e5e7eb;
    border: 1px solid rgba(75, 85, 99, 0.9);
}

.ea-step-num {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.85);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #e5e7eb;
}

.ea-panel-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.15fr);
    gap: 18px;
    align-items: flex-start;
}

/* CARDS */

.ea-card {
    background: var(--ea-bg-soft);
    border-radius: var(--ea-radius-lg);
    border: 1px solid rgba(30, 64, 175, 0.7);
    padding: 16px 16px 18px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
}

.ea-card-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* DOMAIN AREA */

.ea-domain-tabs {
    display: inline-flex;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(51, 65, 85, 0.9);
    overflow: hidden;
    margin-bottom: 10px;
}

.ea-domain-tab {
    font-size: 12px;
    padding: 5px 10px;
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
}

.ea-domain-tab.is-active {
    background: rgba(15, 23, 42, 1);
    color: #e5e7eb;
}

.ea-domain-panel {
    margin-top: 6px;
}

.ea-domain-form {
    display: flex;
    gap: 6px;
    margin-bottom: 4px;
}

.ea-domain-form input[type="text"] {
    flex: 1;
    padding: 7px 9px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.9);
    background: #020617;
    color: var(--ea-text);
    font-size: 13px;
}

.ea-domain-form button {
    padding: 7px 12px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--ea-accent), var(--ea-green));
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

/* SUMMARY CARD */

.ea-summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 4px;
    color: #cbd5f5;
}

.ea-summary-total {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-top: 12px;
    font-size: 14px;
}

.ea-summary-cta {
    margin-top: 14px;
}

/* BUTTONS */

.ea-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--ea-accent), var(--ea-green));
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.ea-secondary-link {
    display: inline-block;
    font-size: 12px;
    color: #93c5fd;
    margin-top: 6px;
}

/* UTILITIES */

.ea-muted {
    color: var(--ea-muted);
}

/* RESPONSIVE */

@media (max-width: 960px) {
    .ea-panel-shell {
        flex-direction: column;
    }

    .ea-panel-sidebar {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 12px 14px;
        border-right: none;
        border-bottom: 1px solid rgba(15, 23, 42, 0.9);
        overflow-x: auto;
    }

    .ea-panel-main {
        padding: 18px 14px 26px;
    }

    .ea-panel-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .ea-topbar-right {
        align-items: flex-start;
    }

    .ea-panel-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 600px) {
    .ea-panel-sidebar {
        flex-direction: column;
        align-items: flex-start;
    }
}
