:root {
    --orchard-green: #2d5a27;
    --apple-red: #a31d1d;
    --cream-background: #fdfaf5;
    --text-dark: #1a1a1a;
    --border-soft: #d1d1d1;
    --touch-target-min: 48px;
}

body {
    background-color: var(--cream-background);
    color: var(--text-dark);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
}

/* Layout */
.cc-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.cc-header {
    height: 64px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    width: 100%;
}

.cc-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cc-home-btn {
    background: none !important;
    border: none !important;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border-radius: 8px;
    transition: background-color 0.2s;
    color: var(--orchard-green);
}

.cc-home-btn:hover {
    background-color: #f0f0f0 !important;
}

.cc-hub-inline-svg {
    width: 28px;
    height: 28px;
}

.cc-brand-name {
    font-weight: 700;
    color: var(--orchard-green);
    font-size: 1.25rem;
}

.cc-content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cc-container {
    padding: 2rem;
}

.cc-page-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--orchard-green);
}

.cc-page-icon-wrapper {
    width: 56px;
    height: 56px;
}

.cc-page-inline-svg {
    width: 100%;
    height: 100%;
}

.cc-page-header h2 {
    margin: 0;
    font-weight: 700;
    color: inherit;
}

/* Language Selector */
.cc-language-selector {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.cc-lang-btn {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    color: #666;
    cursor: pointer;
    font-weight: 600;
    min-width: 44px;
    min-height: 44px;
    transition: color 0.2s;
    outline: none !important;
}

.cc-lang-btn.active {
    color: var(--orchard-green);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.cc-separator {
    color: #ccc;
}

/* Touch-First Inputs */
.form-control {
    height: var(--touch-target-min);
    font-size: 1.1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Login Page Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 1rem;
}

.login-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    max-width: 450px;
    width: 100%;
    text-align: center;
    border-top: 8px solid var(--orchard-green);
}

.login-header h1 {
    color: var(--orchard-green);
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.login-form {
    margin-top: 2rem;
    text-align: left;
}

.btn-login {
    width: 100%;
    height: 56px;
    background-color: var(--orchard-green);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-login:active {
    background-color: #1e3d1a;
}

.login-footer {
    margin-top: 2rem;
    color: #666;
    font-size: 0.9rem;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
