
/*
Theme Name: All Fields Dashboard (Albus Style)
Author: Gemini
Description: Internal dashboard theme for All Fields, using Albus design tokens.
Version: 2.0
*/

:root {
    /* Color tokens from Albus Under Construction Page */
    --color-bg: #ffffff;
    --color-text: #111111;
    --color-text-secondary: #666666;
    --color-text-muted: #999999;
    --color-border: #d7d7d7;
    --color-accent: #ffbe21; /* The Yellow */
    --color-shadow-accent: rgba(255, 190, 33, 0.25);
    --color-input-bg: #ffffff;

    /* Layout tokens */
    --radius-pill: 999px;
    --radius-soft: 12px;
    --spacing-page: 24px;
    --spacing-section: 32px;
    
    /* Timing */
    --duration-normal: 0.3s;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { text-decoration: none; color: inherit; }

/* Header - Matching Albus Brand Style */
.site-header {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px 20px 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-primary { font-weight: 700; letter-spacing: 0.02em; font-size: 1.2rem; text-transform: uppercase; color: var(--color-text); }
.brand-sub { font-size: 0.8rem; color: var(--color-text-muted); font-weight: 400; }

/* Container */
.container {
    max-width: 1200px; /* Wider for dashboard view */
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

/* Hero Section */
.hero { margin-bottom: 50px; }
.hero-title { 
    font-size: clamp(1.8rem, 4vw, 2.4rem); 
    margin: 0 0 8px 0; 
    font-weight: 700;
}
.hero-subtitle { 
    margin: 0; 
    font-size: 1.1rem; 
    color: var(--color-text-secondary); 
    max-width: 700px;
    line-height: 1.5;
}

/* Search Bar - Styled like the 'Access Input Group' */
.search-wrapper {
    margin-top: 30px;
    display: flex;
    align-items: center;
    padding: 6px;
    border-radius: var(--radius-soft);
    border: 1px solid var(--color-border);
    background: var(--color-input-bg);
    transition: border-color var(--duration-normal) ease, box-shadow var(--duration-normal) ease;
    width: 100%;
    max-width: 500px;
}

.search-wrapper:focus-within {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px var(--color-shadow-accent);
}

.search-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 12px 12px;
    font: inherit;
    color: var(--color-text);
}

.search-icon {
    padding: 0 15px;
    color: var(--color-text-muted);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

/* Cards - Styled like Access Input Groups but clickable */
.dash-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    border-radius: var(--radius-soft);
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    transition: transform 0.2s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    min-height: 140px;
    position: relative;
}

.dash-card:hover {
    transform: translateY(-2px);
    border-color: var(--color-accent);
    box-shadow: 0 4px 12px var(--color-shadow-accent);
}

.card-content { flex: 1; padding-right: 20px; }

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}

.card-desc {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

/* Icons */
.card-icon {
    font-size: 2rem;
    color: var(--color-accent); /* The Yellow Brand Color */
    opacity: 1;
    min-width: 50px;
    text-align: right;
    display: flex;
    justify-content: center;
}

.arrow-circle {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 14px;
    transition: color 0.2s;
}

.dash-card:hover .arrow-circle {
    color: var(--color-text);
}

/* Documentation Single Page */
.single-doc-container {
    max-width: 800px;
    margin: 0 auto;
}
.single-doc-container h1 { font-size: 2.2rem; margin-bottom: 20px; }
.entry-content { line-height: 1.7; color: var(--color-text-secondary); }
.entry-content h2, .entry-content h3 { color: var(--color-text); margin-top: 30px; }
.entry-content ul { padding-left: 20px; }
.entry-content a { color: #dfa300; text-decoration: underline; }

.back-link { 
    display: inline-flex; 
    align-items: center; 
    gap: 8px;
    margin-bottom: 30px; 
    color: var(--color-text-secondary); 
    font-size: 0.9rem;
    font-weight: 500;
}
.back-link:hover { color: var(--color-accent); }

/* Footer */
.footer {
    max-width: 1200px;
    width: 100%;
    margin: 40px auto 0 auto;
    padding: 20px;
    border-top: 1px solid #f0f0f0;
}
.footer-text { margin: 0; font-size: 0.85rem; color: var(--color-text-muted); }

@media (max-width: 768px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2rem; }
    .site-header { flex-direction: column; gap: 10px; }
}
