/* ===== LodgeKeeper Web App — Global CSS ===== */

:root {
    --lk-gold: #C9A84C;
    --lk-gold-light: #E8CC80;
    --lk-gold-dark: #8B6914;
    --lk-navy: #0D1B2A;
    --lk-navy-mid: #162236;
    --lk-navy-light: #1E3050;
    --lk-navy-card: #192840;
    --lk-white: #F5F0E8;
    --lk-white-dim: #C8BFA8;
    --lk-border: rgba(201,168,76,0.25);
}

/* ===== TIPOGRAFIA GLOBAL ===== */
*, *::before, *::after {
    font-family: 'Lato', sans-serif;
}

.mud-typography-h1, .mud-typography-h2, .mud-typography-h3,
.mud-typography-h4, .mud-typography-h5, .mud-typography-h6,
.lk-title-gold, .lk-page-title, .lk-logo-text, .lk-logo-text-lg {
    font-family: 'Cinzel', serif !important;
}

/* ===== APPBAR ===== */
.mud-appbar {
    border-bottom: 1px solid var(--lk-border) !important;
}

/* ===== LOGO ===== */
.lk-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    text-decoration: none;
}

.lk-logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--lk-gold), var(--lk-gold-dark));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.lk-logo-icon-lg {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--lk-gold), var(--lk-gold-dark));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.lk-logo-text {
    font-family: 'Cinzel', serif;
    font-size: 15px;
    color: var(--lk-gold);
    letter-spacing: 2px;
    line-height: 1.2;
}

.lk-logo-text-lg {
    font-family: 'Cinzel', serif;
    font-size: 20px;
    color: var(--lk-gold);
    letter-spacing: 2px;
    text-align: center;
}

.lk-logo-sub {
    font-size: 10px;
    color: var(--lk-white-dim);
    letter-spacing: 1px;
    margin-top: 1px;
    text-transform: uppercase;
}

/* ===== NAV HORIZONTAL (desktop) ===== */
.lk-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 24px;
}

.lk-nav-link {
    padding: 8px 14px;
    border-radius: 6px 6px 0 0;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--lk-white-dim);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.lk-nav-link:hover {
    background: var(--lk-navy-light);
    color: var(--lk-gold-light);
}

.lk-nav-link.active {
    background: var(--lk-navy-light);
    color: var(--lk-gold);
    border-bottom-color: var(--lk-gold);
}

/* ===== HEADER USER ===== */
.lk-header-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lk-user-info {
    text-align: right;
}

.lk-user-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--lk-white);
    line-height: 1.2;
}

.lk-user-role {
    font-size: 10px;
    color: var(--lk-white-dim);
    letter-spacing: 0.3px;
}

/* ===== MAIN CONTENT ===== */
.lk-main-content {
    padding: 32px !important;
    min-height: calc(100vh - 64px);
}

/* ===== PAGE TITLES ===== */
.lk-title-gold {
    font-family: 'Cinzel', serif !important;
    color: var(--lk-gold) !important;
    letter-spacing: 2px !important;
}

.lk-page-title {
    font-family: 'Cinzel', serif !important;
    color: var(--lk-gold) !important;
    letter-spacing: 2px !important;
}

/* ===== CARD COM BORDA DOURADA ===== */
.lk-card {
    border: 1px solid var(--lk-border) !important;
}

/* ===== AUTH LAYOUT ===== */
.lk-auth-layout {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px 24px;
    overflow-y: auto;
}

.lk-auth-content {
    width: 100%;
}

.lk-auth-card {
    border: 1px solid var(--lk-border) !important;
    padding: 8px !important;
}

.lk-auth-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: center;
    margin-bottom: 32px;
}

/* ===== MUD DRAWER (mobile nav) ===== */
.mud-drawer .mud-nav-link {
    color: var(--lk-white-dim) !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    font-size: 13px !important;
}

.mud-drawer .mud-nav-link.active {
    color: var(--lk-gold) !important;
    background: rgba(201,168,76,0.1) !important;
}

/* ===== KPI CARDS ===== */
.lk-kpi-card {
    border: 1px solid rgba(201,168,76,0.15) !important;
    border-radius: 8px !important;
    transition: border-color 0.2s;
}

.lk-kpi-card:hover {
    border-color: rgba(201,168,76,0.35) !important;
}

/* ===== CHART CARDS ===== */
.lk-chart-card {
    border: 1px solid rgba(201,168,76,0.15) !important;
    border-radius: 8px !important;
}

/* ===== PROFILE DIALOG ===== */
.lk-profile-field {
    padding: 4px 0;
}

/* ===== TIMELINE ===== */
.lk-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lk-timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    padding-bottom: 16px;
}

.lk-timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 24px;
    bottom: 0;
    width: 1px;
    background: rgba(201,168,76,0.25);
}

.lk-timeline-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--lk-navy-card);
    border: 1px solid rgba(201,168,76,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
}

.lk-timeline-content {
    padding-top: 2px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
    .lk-main-content {
        padding: 20px !important;
    }
}

@media (max-width: 600px) {
    .lk-main-content {
        padding: 14px !important;
    }
    .lk-logo-sub {
        display: none;
    }
    .lk-auth-layout {
        padding: 16px;
    }
}
