/* SeoWriting.ai - Minimal Aesthetic & Clean Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Sophisticated light palette inspired by warm, clean aesthetics */
    --bg-base: #fdfcf9;          /* Main warm ivory/cream background */
    --bg-sidebar: #f5f4ef;       /* Light grey-sand panel background for navigation */
    --bg-surface: #ffffff;       /* Pure white for card surfaces */
    --border-color: #e8e6df;     /* Subtle warm grey border line */
    --border-focus: #5f7a68;     /* Muted sage/moss green for active focus states */
    
    --color-primary: #5f7a68;    /* Muted Sage/Moss Green (Primary Buttons & Indicators) */
    --color-primary-hover: #4e6455;
    --color-secondary: #5a6e7f;  /* Muted Slate Blue */
    --color-secondary-hover: #495a69;
    --color-success: #5f7a68;    /* Success uses the primary natural green */
    --color-danger: #b35a5a;     /* Muted Dusty Rose/Red */
    --color-warning: #c29955;    /* Muted Ochre/Gold */
    
    --text-primary: #2b2e2c;     /* Dark warm charcoal for maximum legibility */
    --text-secondary: #636865;   /* Muted warm grey for descriptions & metadata */
    --text-muted: #959a96;       /* Lighter grey for placeholders & lines */
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --shadow-subtle: 0 1px 3px rgba(43, 46, 44, 0.03), 0 4px 12px rgba(43, 46, 44, 0.02);
}

/* Base resets & typography */
body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: #e1dfd7;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Left-Sidebar panel */
.sidebar-active {
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
}

/* Content cards and panels - redesigned to be flat and borderless or simple outlines */
.glass-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-subtle);
    border-radius: 10px;
    transition: all 0.2s ease-in-out;
}

.glass-panel-hover:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(43, 46, 44, 0.05);
    border-color: #d1cfc7;
}

/* Neutral text highlights (removing glows) */
.text-glow, .text-glow-success {
    text-shadow: none;
    font-weight: 600;
    color: var(--color-primary) !important;
}

/* Custom minimal Form controls */
.glass-input {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 6px;
    padding: 11px 14px;
    transition: all 0.15s ease-in-out;
    outline: none;
    font-size: 0.875rem;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.01);
}
.glass-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 1px var(--border-focus);
    background: var(--bg-surface);
}
.glass-input::placeholder {
    color: var(--text-muted);
}
.glass-input option {
    background-color: var(--bg-surface);
    color: var(--text-primary);
}

/* Labels */
.glass-label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    display: block;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Flat Accent Buttons */
.btn-premium-primary {
    background: var(--color-primary);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 6px;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-premium-primary:hover {
    background: var(--color-primary-hover);
    transform: none;
}
.btn-premium-primary:active {
    transform: translateY(1px);
}

/* Standardized Light Grey buttons */
.btn-premium-secondary {
    background: #f5f4ef;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    font-weight: 500;
    font-size: 0.85rem;
    border-radius: 6px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-premium-secondary:hover {
    background: #eae9e2;
    border-color: #d1cfc7;
}

.btn-premium-danger {
    background: rgba(179, 90, 90, 0.08);
    color: var(--color-danger);
    border: 1px solid rgba(179, 90, 90, 0.2);
    font-weight: 500;
    font-size: 0.85rem;
    border-radius: 6px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-premium-danger:hover {
    background: rgba(179, 90, 90, 0.15);
    border-color: var(--color-danger);
}

.btn-premium-success {
    background: rgba(95, 122, 104, 0.08);
    color: var(--color-primary);
    border: 1px solid rgba(95, 122, 104, 0.2);
    font-weight: 500;
    font-size: 0.85rem;
    border-radius: 6px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-premium-success:hover {
    background: rgba(95, 122, 104, 0.15);
    border-color: var(--color-primary);
}

/* Minimalist Badges (Muted tag layout) */
.badge-indigo {
    background: #eae9e2;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}
.badge-emerald {
    background: rgba(95, 122, 104, 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(95, 122, 104, 0.2);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}
.badge-rose {
    background: rgba(179, 90, 90, 0.1);
    color: var(--color-danger);
    border: 1px solid rgba(179, 90, 90, 0.2);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}
.badge-amber {
    background: rgba(194, 153, 85, 0.1);
    color: #a4762c;
    border: 1px solid rgba(194, 153, 85, 0.2);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Navigation items in the sidebar panel */
.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 6px;
    transition: all 0.1s ease;
    border-left: none;
}
.nav-link:hover {
    color: var(--text-primary);
    background: rgba(43, 46, 44, 0.03);
}
.nav-link.active {
    color: var(--text-primary);
    background: #ffffff;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
}

/* Terminal Console (Light Minimal Code block box) */
.log-console {
    background: #f7f6f1;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: 'SFMono-Regular', Consolas, "Liberation Mono", Menlo, monospace;
    border-radius: 6px;
    padding: 14px;
    line-height: 1.5;
}

/* Flat statistics cards color bands replaced with spaciousness and simple lines */
.stat-card-gradient {
    position: relative;
    overflow: hidden;
}
.stat-card-gradient::before {
    display: none; /* Remove left color strip indicator */
}

/* Tab Switchers */
.interactive-tab {
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
    font-weight: 500;
}
.interactive-tab.active {
    border-color: var(--color-primary);
    color: var(--text-primary) !important;
    font-weight: 600;
}

/* Clean list group items (replacing boxes with divider lines) */
.task-item {
    transition: background-color 0.15s ease;
    border-bottom: 1px solid var(--border-color);
}
.task-item:last-child {
    border-bottom: none;
}
.task-item:hover {
    background-color: rgba(43, 46, 44, 0.01);
}

/* Simple Table Styling */
table {
    border-collapse: collapse;
    width: 100%;
}
th {
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}
td {
    border-bottom: 1px solid var(--border-color);
}
tr:hover {
    background-color: rgba(43, 46, 44, 0.01);
}
