/* site.css - Cyan Metrics Customer Frontend */
:root {
    --primary: #006876;
    --primary-container: #00acc1;
    --on-primary: #ffffff;
    --secondary: #3a656d;
    --secondary-container: #bbe7f1;
    --surface: #e7e7e7;
    --surface-container-lowest: #ffffff;
    --surface-container-low: #f1f1f1;
    --surface-container: #eeeeee;
    --on-surface: #1a1c1c;
    --on-surface-variant: #444747;
    --outline: #6d797c;
    --outline-variant: #bcc9cc;
    --error: #ba1a1a;
    --success: #2e7d32;
    --font-headline: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--surface);
    color: var(--on-surface);
    min-height: 100vh;
}

h1, h2, h3, .font-headline {
    font-family: var(--font-headline);
}

/* Utilities */
.editorial-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
}

.shadow-soft {
    box-shadow: 0 10px 30px -5px rgba(26, 28, 28, 0.06);
}

/* Auth Page */
.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.auth-bg-gradient {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(circle at top right, rgba(187, 231, 241, 0.2), var(--surface), var(--surface));
}

.auth-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 450px;
    background: var(--surface-container-lowest);
    padding: 3rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-icon {
    width: 64px;
    height: 64px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--on-primary);
    margin-bottom: 2rem;
}

.form-group {
    width: 100%;
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--outline);
    margin-bottom: 0.5rem;
    margin-left: 0.25rem;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--outline);
    transition: color 0.2s;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    background: var(--surface-container-low);
    border: 2px solid transparent;
    border-radius: 0.5rem;
    font-size: 1rem;
    color: var(--on-surface);
    transition: all 0.2s;
    outline: none;
}

.form-input:focus {
    background: white;
    border-color: rgba(0, 104, 118, 0.2);
    box-shadow: 0 0 0 4px rgba(0, 104, 118, 0.1);
}

.btn-primary-site {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 0.5rem;
    color: var(--on-primary);
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 104, 118, 0.2);
}

.btn-primary-site:hover {
    box-shadow: 0 6px 16px rgba(0, 104, 118, 0.3);
    opacity: 0.95;
}

/* Dashboard Layout */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar-site {
    width: 260px;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
}

.sidebar-logo {
    padding: 0 1rem;
    margin-bottom: 2.5rem;
}

.sidebar-logo .brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0c4a6e;
    letter-spacing: -0.025em;
}

.nav-link-site {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    margin-bottom: 0.25rem;
}

.nav-link-site:hover, .nav-link-site.active {
    background: rgba(226, 232, 240, 0.5);
    color: #0369a1;
}

.nav-link-site.active {
    font-weight: 700;
    border-right: 4px solid #0891b2;
    background: rgba(226, 232, 240, 0.8);
}

.main-content-site {
    flex: 1;
    overflow-y: auto;
}

.header-site {
    height: 64px;
    background: white;
    border-bottom: 1px solid #f1f5f9;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.content-container {
    padding: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Components */
.card-site {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.badge-premium {
    background: var(--primary-fixed);
    color: var(--on-primary-fixed);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.table-site {
    width: 100%;
    border-collapse: collapse;
}

.table-site th {
    text-align: left;
    padding-bottom: 1rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--outline);
    border-bottom: 1px solid var(--surface-container);
}

.table-site td {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--surface-container-low);
}

.btn-logout-site {
    margin-top: auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--tertiary);
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    text-align: left;
}
