@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
    /* Google Material-Inspired Palette */
    --google-blue: #1a73e8;
    --google-blue-hover: #1557b0;
    --google-gray: #5f6368;
    --google-border: #dadce0;
    --google-bg: #ffffff;
    --google-surface: #f8f9fa;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --danger: #d93025;
    --success: #1e8e3e;
    --btn-text: #ffffff;

    --radius: 8px;
    --shadow-sm: 0 1px 2px 0 rgba(60, 64, 67, .3), 0 1px 3px 1px rgba(60, 64, 67, .15);
}

body.dark-mode {
    --google-bg: #202124;
    --google-surface: #292a2d;
    --google-border: #3c4043;
    --text-primary: #ffffff;
    --text-secondary: #9aa0a6;
    --google-blue: #8ab4f8;
    --google-blue-hover: #aecbfa;
    --btn-text: #202124;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background: var(--google-bg);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 14px;
    /* Standard Google Base Font Size */
}

/* Slim Header */
nav {
    height: 64px;
    background: var(--google-bg);
    border-bottom: 1px solid var(--google-border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 22px;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: -0.5px;
}

/* Clean Sidebar/Menu Buttons - Smaller and more refined */
.settings-nav-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    /* Reduced padding for "Small" look */
    border-radius: 20px;
    /* pill shape like Google */
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.2s;
    width: auto;
    /* Not full width by default */
    margin-bottom: 4px;
    text-align: left;
}

.settings-nav-btn:hover {
    background: var(--google-surface);
    color: var(--text-primary);
}

.settings-nav-btn.active {
    background: #e8f0fe;
    color: var(--google-blue);
}

body.dark-mode .settings-nav-btn.active {
    background: rgba(138, 180, 248, 0.1);
}

/* Professional Cards & Inputs */
.card {
    background: var(--google-bg);
    border: 1px solid var(--google-border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 1px 3px 0 rgba(60, 64, 67, .3), 0 4px 8px 3px rgba(60, 64, 67, .15);
}

input,
select,
textarea {
    border: 1px solid var(--google-border);
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 14px;
    width: 100%;
    background: var(--google-bg);
    color: var(--text-primary);
    transition: border-color 0.2s;
}

input:focus {
    outline: none;
    border-color: #1a73e8;
    border-width: 2px;
    padding: 9px 11px;
    /* Adjust for border width change */
}

/* Small Professional Buttons */
button {
    background: var(--google-blue);
    color: var(--btn-text);
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

button:hover {
    background: var(--google-blue-hover);
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .3);
}

button:active {
    box-shadow: none;
    background: var(--google-blue);
}

/* Layout */
.container {
    max-width: 1024px;
    margin: 48px auto;
    padding: 0 24px;
}

.dashboard-header h1 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 8px;
}

.settings-page-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 48px;
    margin-top: 32px;
}

/* Badges */
.status-badge {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 12px;
}

/* Notification Panel Overlay */
#notification-panel {
    position: fixed;
    right: -360px;
    top: 64px;
    width: 340px;
    height: calc(100vh - 64px);
    background: var(--google-bg);
    border-left: 1px solid var(--google-border);
    z-index: 900;
    transition: right 0.25s;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.05);
}

#notification-panel.open {
    right: 0;
}

@media (max-width: 768px) {
    .settings-page-grid {
        grid-template-columns: 1fr;
    }

    .settings-sidebar {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 8px;
    }
}