/* Core Layout Styles */
:root {
    /* Colors */
    --primary: #ff822d;
    --primary-light: #fff2e8;
    --bg-gray: #f8fafc;
    /*--border: #f1f5f9;*/
    --border: #d8dfdf;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --white: #ffffff;
    /* Typography */
    --font-base: 16px;
    --font-sm: 14px;
    --font-lg: 18px;
    --font-xl: 28px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    font-size: var(--font-base);
}

body {
    background-color: var(--bg-gray);
    color: var(--text-main);
    font-size: var(--font-base);
}

.page {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.top-bar {
    height: 70px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    flex-shrink: 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    background: var(--primary);
    padding: 6px;
    border-radius: 8px;
    display: flex;
}

.logo-text {
    font-size: var(--font-lg);
    font-weight: 700;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 36px;
    height: 36px;
    background: #ffedd5;
    color: #9a3412;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 700;
}

.main-wrapper {
    display: flex;
    flex: 1;
    overflow: hidden;
}

aside {
    width: 250px;
    background: var(--white);
    border-right: 1px solid var(--border);
    padding: 20px;
    flex-shrink: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 4px;
}

    .nav-item.active {
        background: var(--primary);
        color: white;
    }

main {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
}

/* Dashboard Components */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.stat-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.stat-val {
    font-size: var(--font-xl);
    font-weight: 700;
    margin: 4px 0;
}


/* ------------------------------------------------------------
   Login Layout 
   ------------------------------------------------------------ */
.login-page {
    min-height: 100vh;
    background: var(--bg-gray);
}

.login-top-bar {
    height: 70px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 24px;
}

.login-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
}

    .login-card label {
        display: block;
        font-weight: 600;
        margin-bottom: 6px;
    }

    .login-card input {
        width: 100%;
        height: 44px;
        padding: 0 12px;
        border-radius: 8px;
        border: 1px solid var(--border);
        margin-bottom: 16px;
    }

.link-btn {
    margin-top: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.primary-btn {
    width: 100%;
    height: 44px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.link-btn {
    margin-top: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
}

.login-subtext {
    margin-bottom: 20px;
    margin-top: 10px;
    color: var(--text-muted);
    font-size: var(--font-sm);
}
