/* Clean Dark Lithaana Stylesheet */
:root {
    /* Clean Dark Theme */
    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --bg-card: #1e1e2e;
    --bg-input: #2a2a3e;
    
    /* Text colors */
    --text-primary: #ffffff;
    --text-secondary: #b4b4b4;
    --text-muted: #6b7280;
    --text-disabled: #4b5563;
    
    /* Accent colors */
    --accent-primary: #646cff;
    --accent-hover: #535bf2;
    --accent-light: rgba(100, 108, 255, 0.1);
    --accent-border: rgba(100, 108, 255, 0.2);
    
    /* Status colors */
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --error: #ef4444;
    --error-bg: rgba(239, 68, 68, 0.1);
    
    /* Borders */
    --border-primary: #2a2a3e;
    --border-secondary: #3a3a4e;
    --border-accent: var(--accent-border);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Noto Sans', sans-serif;
    --font-family-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Courier New', monospace;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    
    /* Border radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
}

/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

*::before,
*::after {
    box-sizing: border-box;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    font-family: var(--font-family);
    font-feature-settings: 'liga' 1, 'calt' 1;
}

body {
    margin: 0;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Authentication Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.auth-container {
    width: 100%;
    max-width: 400px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.auth-header {
    text-align: center;
    padding: var(--space-8) var(--space-6) var(--space-6);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
}

.logo {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: white;
}

.auth-title {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: white;
}

.auth-subtitle {
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.9);
}

.auth-form-container {
    padding: var(--space-6);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.auth-footer {
    text-align: center;
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-primary);
}

.auth-notice {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
    font-weight: 500;
}

.auth-help {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.auth-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    color: var(--accent-hover);
}

.device-info {
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-primary);
    padding: var(--space-4);
    text-align: center;
}

.device-notice {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

/* Flash Messages */
.flash-messages {
    margin-bottom: var(--space-4);
}

.flash-message {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-2);
    font-size: var(--font-size-sm);
}

.flash-message:last-child {
    margin-bottom: 0;
}

.flash-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success);
}

.flash-error {
    background: var(--error-bg);
    color: var(--error);
    border: 1px solid var(--error);
}

.flash-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid var(--warning);
}

/* Form Elements */
.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form-label {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input {
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--border-primary);
    background: var(--bg-input);
    color: var(--text-primary);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-hint {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.form-hint.text-success {
    color: var(--success);
}

.form-hint.text-error {
    color: var(--error);
}

.form-result {
    margin-top: var(--space-3);
    padding: var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-result.success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success);
    opacity: 1;
}

.form-result.error {
    background: var(--error-bg);
    color: var(--error);
    border: 1px solid var(--error);
    opacity: 1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-hover);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-secondary);
}

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

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid transparent;
}

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

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: var(--space-2) var(--space-3);
    font-size: var(--font-size-xs);
}

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

.btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.btn-icon {
    font-size: var(--font-size-sm);
}

/* App Layout */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.app-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-primary);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.app-logo {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--accent-primary);
    text-decoration: none;
}

.app-subtitle {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    font-weight: 500;
}

.back-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.back-link:hover {
    color: var(--text-primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-menu-trigger:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-secondary);
}

.user-name {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-secondary);
}

.user-menu-icon {
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.user-menu.open .user-menu-icon {
    transform: rotate(180deg);
}

.user-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: var(--space-2);
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.user-menu.open .user-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: all 0.2s ease;
}

.menu-item:hover {
    background: var(--bg-input);
    color: var(--text-primary);
}

.menu-item.text-danger {
    color: var(--error);
}

.menu-icon {
    font-size: var(--font-size-sm);
}

.menu-divider {
    height: 1px;
    background: var(--border-primary);
    margin: var(--space-1) 0;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: var(--space-6) 0;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Sections */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-6);
}

.section-title {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--text-primary);
}

.section-description {
    margin-top: var(--space-1);
    color: var(--text-secondary);
    font-size: var(--font-size-base);
}

.translator-section,
.stats-section,
.actions-section,
.admin-section {
    margin-bottom: var(--space-12);
}

/* Translator */
.translator-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.translator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg-card);
    gap: 1px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

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

.input-panel,
.output-panel {
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
}

.input-panel {
    border-right: 1px solid var(--border-primary);
}

@media (max-width: 768px) {
    .input-panel {
        border-right: none;
        border-bottom: 1px solid var(--border-primary);
    }
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--border-primary);
    background: var(--bg-input);
    min-height: 60px;
    flex-shrink: 0;
}

.panel-label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-secondary);
}

.translator-textarea {
    flex: 1;
    padding: var(--space-5);
    border: none;
    outline: none;
    resize: none;
    font-size: var(--font-size-base);
    line-height: 1.6;
    font-family: var(--font-family);
    height: 280px;
    min-height: 280px;
    max-height: 280px;
    background: var(--bg-card);
    color: var(--text-primary);
    overflow-y: auto;
}

.translator-output {
    flex: 1;
    padding: var(--space-5);
    height: 280px;
    min-height: 280px;
    max-height: 280px;
    font-size: var(--font-size-base);
    line-height: 1.6;
    font-family: var(--font-family);
    color: var(--text-primary);
    position: relative;
    overflow-y: auto;
    word-wrap: break-word;
    white-space: pre-wrap;
    background: var(--bg-card);
}

.translator-output:empty::before {
    content: attr(data-placeholder);
    color: var(--text-muted);
    position: absolute;
    top: var(--space-5);
    right: var(--space-5);
    font-style: italic;
}

.panel-footer {
    padding: var(--space-3) var(--space-5);
    border-top: 1px solid var(--border-primary);
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 50px;
    flex-shrink: 0;
}

.char-count,
.translation-status {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.translation-status {
    font-style: italic;
}

.translation-status:empty {
    display: none;
}

.translator-actions {
    padding: var(--space-5);
    border-top: 1px solid var(--border-primary);
    background: var(--bg-input);
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
}

.stat-card:hover {
    border-color: var(--border-secondary);
    box-shadow: var(--shadow-lg);
}

.stat-value {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: var(--space-1);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

/* Actions Grid */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.action-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
}

.action-card:hover {
    border-color: var(--border-secondary);
    box-shadow: var(--shadow-lg);
}

.action-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.action-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

/* Admin Styles */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.admin-stats-grid .stat-card {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.stat-icon {
    font-size: var(--font-size-2xl);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border-radius: var(--radius-lg);
    color: var(--accent-primary);
}

.pending-devices-container {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.pending-devices-list {
    display: flex;
    flex-direction: column;
}

.pending-device-item {
    padding: var(--space-5);
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.pending-device-item:last-child {
    border-bottom: none;
}

.device-info-content {
    flex: 1;
}

.device-username {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.device-details {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-1);
}

.device-timestamp {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.device-actions {
    display: flex;
    gap: var(--space-2);
}

.user-management-container {
    max-width: 600px;
}

.settings-grid {
    display: grid;
    gap: var(--space-4);
}

.setting-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.setting-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.setting-description {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-secondary);
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

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

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    cursor: pointer;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.checkbox-input {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-secondary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.checkbox-input:checked + .checkbox-custom {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.checkbox-input:checked + .checkbox-custom::after {
    content: "✓";
    color: white;
    font-size: var(--font-size-xs);
    font-weight: bold;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.open .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: var(--font-size-xl);
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--space-1);
    border-radius: var(--radius-md);
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--text-secondary);
}

.modal-body {
    padding: var(--space-6);
    max-height: 60vh;
    overflow-y: auto;
}

/* Toast */
.toast {
    position: fixed;
    top: var(--space-4);
    right: var(--space-4);
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--space-4);
    max-width: 400px;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.toast-icon {
    font-size: var(--font-size-lg);
}

.toast-message {
    font-size: var(--font-size-sm);
    color: var(--text-primary);
}

/* Additional Elements */
.device-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-primary);
    gap: var(--space-4);
}

.device-item:last-child {
    border-bottom: none;
}

.device-info {
    flex: 1;
}

.device-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.device-details {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-1);
}

.device-timestamp {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.status-badge {
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-xs);
    font-weight: 500;
}

.status-approved {
    background: var(--success-bg);
    color: var(--success);
}

.status-pending {
    background: var(--warning-bg);
    color: var(--warning);
}

.status-rejected {
    background: var(--error-bg);
    color: var(--error);
}

.empty-state,
.error-state {
    text-align: center;
    padding: var(--space-12) var(--space-6);
}

.empty-icon,
.error-icon {
    font-size: 3rem;
    margin-bottom: var(--space-4);
    opacity: 0.5;
}

.empty-title,
.error-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.empty-description,
.error-description {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.error-state {
    color: var(--error);
}

.device-user-agent {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-top: var(--space-1);
    font-family: var(--font-family-mono);
    word-break: break-all;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-container {
        padding: 0 var(--space-3);
    }
    
    .translator-actions {
        flex-direction: column;
    }
    
    .translator-actions .btn {
        width: 100%;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .pending-device-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .device-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .device-user-agent {
        display: none;
    }
}

@media (max-width: 480px) {
    .auth-page {
        padding: var(--space-2);
    }
    
    .header-content {
        padding: 0 var(--space-3);
    }
    
    .app-logo {
        font-size: var(--font-size-lg);
    }
    
    .main-content {
        padding: var(--space-4) 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.text-success {
    color: var(--success);
}

.text-error {
    color: var(--error);
}

.text-warning {
    color: var(--warning);
}

.text-danger {
    color: var(--error);
}

/* Focus states for accessibility */
.btn:focus-visible,
.form-input:focus-visible,
.user-menu-trigger:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background: var(--accent-light);
    color: var(--accent-primary);
}

/* Force font family override for all text elements */
* {
    font-family: var(--font-family) !important;
}

/* Specifically target Dhivehi/Thaana text */
[dir="rtl"], 
.dhivehi-text,
.thaana-text,
.translator-output {
    font-family: 'Noto Sans Dhivehi', 'MV Boli', var(--font-family) !important;
}

/* Scrollbar styling for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-secondary);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}