/* Base styles and CSS variables */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;500;600;700&display=swap');

:root {
    /* Light theme colors - pure monochrome */
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-tertiary: #f5f5f5;
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-tertiary: #666666;
    --border-color: #000000;
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    
    /* Accent colors - monochrome */
    --accent-primary: #000000;
    --accent-hover: #333333;
    --accent-light: #f5f5f5;
    --accent-dark: #000000;
    
    /* Status colors - monochrome variants */
    --success: #000000;
    --warning: #666666;
    --error: #000000;
    --info: #333333;
    
    /* Typography */
    --font-sans: 'IBM Plex Mono', 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', monospace;
    --font-mono: 'IBM Plex Mono', 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', monospace;
    --glass-bg: rgba(255,255,255,0.95);
    --glass-border: rgba(0,0,0,0.1);
    --glass-blur: 0px;
}

/* Dark theme */
[data-theme="dark"] {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-tertiary: #999999;
    --border-color: #ffffff;
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    --accent-primary: #ffffff;
    --accent-hover: #cccccc;
    --accent-light: #1a1a1a;
    --accent-dark: #ffffff;
    --success: #ffffff;
    --warning: #999999;
    --error: #ffffff;
    --info: #cccccc;
    --glass-bg: rgba(0,0,0,0.95);
    --glass-border: rgba(255,255,255,0.1);
    --glass-blur: 0px;
}

/* Base reset and typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: auto;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.4;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.15s ease, color 0.15s ease;
    font-weight: 400;
    letter-spacing: -0.02em;
}

body.initial-load * {
    transition: none !important;
}

/* Header styles */
header {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: none;
}

header h1 {
    display: inline-block;
    font-size: 1rem;
    font-weight: 500;
    font-family: var(--font-sans);
    letter-spacing: -0.02em;
}

header h1 a {
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

#header-logo {
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

[data-theme="light"] #header-logo {
    background-image: url('assets/black_logo_transparent_400x400.png');
}

[data-theme="dark"] #header-logo {
    background-image: url('assets/white_logo_transparent_400x400.png');
}

/* Navigation */
nav {
    display: inline-flex;
    gap: 2rem;
    align-items: center;
    float: right;
    margin-top: 0.125rem;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.15s ease;
    position: relative;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

nav a:hover {
    color: var(--text-primary);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--text-primary);
    transition: width 0.15s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Dropdown navigation styles */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.15s ease;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-dropdown-toggle:hover {
    color: var(--text-primary);
}

.nav-dropdown-toggle svg {
    transition: transform 0.15s ease;
    width: 10px;
    height: 10px;
}

.nav-dropdown-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 0;
    min-width: 160px;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 1000;
}

.nav-dropdown.active .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
    font-size: 0.8125rem;
    text-transform: none;
    letter-spacing: normal;
    border-bottom: 1px solid var(--border-color);
}

.nav-dropdown-menu a:last-child {
    border-bottom: none;
}

.nav-dropdown-menu a:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

.nav-dropdown-menu a::after {
    display: none;
}

/* Admin link styling */
nav a.admin-link,
.nav-dropdown-menu a.admin-link {
    color: var(--text-primary);
    font-weight: 500;
}

nav a.admin-link:hover,
.nav-dropdown-menu a.admin-link:hover {
    color: var(--bg-primary);
}

.hidden {
    display: none !important;
}

/* Mobile menu button */
#mobileMenuButton {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-primary);
    cursor: pointer;
    float: right;
    margin-top: -0.125rem;
    padding: 0.5rem;
    font-family: var(--font-mono);
}

/* Mobile navigation */
#mobileNavWrapper {
    display: none;
    position: fixed;
    top: 48px;
    right: -300px;
    width: 250px;
    height: calc(100vh - 48px);
    background-color: var(--bg-primary);
    border-left: 1px solid var(--border-color);
    transition: right 0.15s ease;
    z-index: 99;
    overflow-y: auto;
    overflow-x: hidden;
}

#mobileNavWrapper.active {
    right: 0;
}

#mobileNav {
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 0;
    width: 100%;
    padding-top: 1rem;
}

#mobileNav a {
    display: block;
    width: 100%;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background-color 0.15s ease;
    box-sizing: border-box;
}

#mobileNav a:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

#mobileMenuOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 98;
}

#mobileMenuOverlay.active {
    display: block;
}

/* Main content area */
main {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Footer */
footer {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

footer a {
    color: var(--text-primary);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}
/* Loading states */
.app-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

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

.spinner {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utility classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
    border: 1px solid var(--border-color);
    font-size: 0.8125rem;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.btn:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

.btn-primary:hover {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.btn-secondary {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

.btn-danger {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.btn-danger:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

/* Card component */
.card {
    background: var(--bg-primary);
    border-radius: 0;
    padding: 2rem;
    box-shadow: none;
    border: 1px solid var(--border-color);
}

.card-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Form elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 400;
    color: var(--text-primary);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0;
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: inherit;
    transition: border-color 0.15s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--text-primary);
    box-shadow: none;
}

.form-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Toggle switch styles */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toggle-input {
    display: none;
}

.toggle-label {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    cursor: pointer;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    transition: 0.2s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: var(--text-primary);
    transition: 0.2s;
    border-radius: 50%;
}

.toggle-input:checked + .toggle-label .toggle-slider {
    background-color: var(--text-primary);
}

.toggle-input:checked + .toggle-label .toggle-slider:before {
    transform: translateX(24px);
    background-color: var(--bg-primary);
}

.toggle-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.input-with-button {
    display: flex;
    gap: 0;
}

.input-with-button .form-input {
    flex: 1;
    border-right: none;
}

.input-with-button .btn {
    white-space: nowrap;
    border-radius: 0;
}

/* Info display groups */
.info-group {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.info-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.info-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

/* Responsive design */
@media (max-width: 768px) {
    #mainNav {
        display: none;
    }
    
    #mobileMenuButton {
        display: block;
    }
    
    #mobileNavWrapper {
        display: block;
    }
    
    header {
        padding: 1rem;
    }
    
    main {
        padding: 1rem;
    }
    
    /* Hide dropdowns on mobile */
    .nav-dropdown {
        display: none !important;
    }
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: none;
}

.modal {
    background: var(--bg-primary);
    border-radius: 0;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: none;
    border: 1px solid var(--border-color);
    animation: modalSlideIn 0.15s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0;
    transition: background-color 0.15s ease;
    font-family: var(--font-mono);
}

.modal-close:hover {
    opacity: 0.7;
}

.modal-body {
    margin-bottom: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 1rem;
    min-width: 250px;
    box-shadow: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: toastSlideIn 0.15s ease;
    font-size: 0.8125rem;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    border-left: 3px solid var(--text-primary);
}

.toast.error {
    border-left: 3px solid var(--text-primary);
}

.toast.warning {
    border-left: 3px solid var(--text-secondary);
}

.toast.info {
    border-left: 3px solid var(--text-secondary);
}

.toast-message {
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.25rem;
    font-family: var(--font-mono);
}

/* Table styles */
.table-wrapper {
    overflow-x: auto;
    border-radius: 0;
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background-color: var(--bg-primary);
    font-weight: 500;
    text-align: left;
    padding: 1rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
}

tr:hover {
    background-color: var(--bg-secondary);
}

/* API Key specific styles */
.api-key-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0;
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
}

.api-key-value {
    flex: 1;
    margin-right: 1rem;
    word-break: break-all;
    color: var(--text-secondary);
}

.api-key-actions {
    display: flex;
    gap: 0.5rem;
}

/* Landing page styles */
.hero {
    text-align: center;
    padding: 6rem 0;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

[data-theme="light"] .hero h1 {
    color: var(--text-primary);
}

.hero p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Auth buttons */
.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 320px;
    margin: 0 auto;
}

.auth-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0;
    border: 1px solid var(--border-color);
    border-bottom: none;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.15s ease;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auth-button:last-child {
    border-bottom: 1px solid var(--border-color);
}

.auth-button:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

.auth-button svg {
    width: 20px;
    height: 20px;
}

/* Dashboard and grid layouts */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.stat-card {
    background-color: var(--bg-primary);
    border-radius: 0;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.stat-progress {
    margin-top: 1rem;
    height: 4px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.stat-progress-bar {
    height: 100%;
    background-color: var(--text-primary);
    transition: width 0.3s ease;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
}

.empty-state-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
}

.empty-state-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.empty-state-description {
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto 1.5rem;
    font-size: 0.8125rem;
}

/* Coming soon styles */
.coming-soon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    margin-top: 2rem;
}

.coming-soon-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 3rem;
    max-width: 500px;
    text-align: center;
    box-shadow: none;
}

.coming-soon-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    font-family: var(--font-mono);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.coming-soon-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.coming-soon-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.6;
}

.coming-soon-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    text-align: left;
    display: inline-block;
}

.coming-soon-features li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.8125rem;
}

.coming-soon-features li::before {
    content: "+";
    position: absolute;
    left: 0;
    color: var(--text-primary);
    font-weight: 500;
    font-family: var(--font-mono);
}

.coming-soon-note {
    color: var(--text-tertiary);
    font-style: normal;
    margin: 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Copy button */
.copy-button {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.15s ease;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.copy-button:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

.copy-button.copied {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

/* Theme toggle */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: none;
    transition: all 0.15s ease;
}

.theme-toggle:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

.theme-toggle:hover svg {
    color: var(--bg-primary);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
}

/* Page layout styles */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .page-header h1 {
        font-size: 1.25rem;
    }
    
    /* Coming soon responsive */
    .coming-soon-container {
        min-height: auto;
        margin-top: 1rem;
    }
    
    .coming-soon-card {
        padding: 2rem 1.5rem;
        max-width: 100%;
    }
    
    .coming-soon-icon {
        font-size: 2rem;
    }
    
    .coming-soon-title {
        font-size: 1.25rem;
    }
    
    .coming-soon-description {
        font-size: 0.8125rem;
    }
    
    .coming-soon-features {
        font-size: 0.75rem;
    }
}

/* Utility classes */

/* App loading overlay */
.app-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.app-loading-overlay.active {
    opacity: 1;
}

.app-loading-spinner {
    text-align: center;
}

.spinner-ring {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.app-loading-spinner p {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
