/* public/assets/css/style.css */
:root {
    /* Dynamic Primary from Branding Engine */
    --md-sys-color-primary: var(--m3-primary, #4285F4);
    --md-sys-color-on-primary: #FFFFFF;
    --md-sys-color-secondary: #34A853; 
    --md-sys-color-on-secondary: #FFFFFF;
    --md-sys-color-error: #EA4335; 
    --md-sys-color-warning: #FBBC05; 
    
    --md-sys-color-surface: #F8F9FA;
    --md-sys-color-on-surface: #202124;
    --md-sys-color-surface-container: #FFFFFF;
    --md-sys-color-outline: #DADCE0;

    --font-family: 'Google Sans', 'Roboto', 'Inter', sans-serif;
}

/* Dark Mode Overrides */
body.dark-mode {
    --md-sys-color-surface: #121212;
    --md-sys-color-on-surface: #E8EAED;
    --md-sys-color-surface-container: #1E1E1E;
    --md-sys-color-outline: #3C4043;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    background-color: var(--md-sys-color-surface);
    color: var(--md-sys-color-on-surface);
    line-height: 1.5;
}

/* Layout Components */
.top-app-bar {
    background-color: var(--md-sys-color-surface-container);
    border-bottom: 1px solid var(--md-sys-color-outline);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-text {
    font-size: 22px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-blue { color: var(--md-sys-color-primary); }
.logo-red { color: var(--md-sys-color-error); }
.logo-yellow { color: var(--md-sys-color-warning); }
.logo-green { color: var(--md-sys-color-secondary); }

/* MD3 Card */
.card {
    background-color: var(--md-sys-color-surface-container);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--md-sys-color-outline);
    box-shadow: 0 1px 2px rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
    margin-bottom: 24px;
}

/* MD3 Pill Buttons */
.btn {
    border-radius: 24px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: box-shadow 0.2s, background-color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
}

.btn-primary:hover {
    box-shadow: 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
}

.btn-outlined {
    background-color: transparent;
    border: 1px solid var(--md-sys-color-outline);
    color: var(--md-sys-color-primary);
}

.btn-outlined:hover {
    background-color: rgba(66, 133, 244, 0.04);
}

/* MD3 Forms */
.form-field {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-field label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--md-sys-color-on-surface);
}

.form-field input {
    border: 1px solid var(--md-sys-color-outline);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.form-field input:focus {
    border-color: var(--md-sys-color-primary);
    border-width: 2px;
}

/* Utils */
.container {
    max-width: 1200px;
    margin: 32px auto;
    padding: 0 16px;
}

.text-center { text-align: center; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}
