/* Light/Dark theme with minimalistic design */

:root {
    /* Typography */
    --font-primary: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;

    /* Sidebar */
    --sidebar-width: 72px;
    --sidebar-expanded: 180px;
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f4f4f5;
    --bg-hover: #e4e4e7;
    --bg-sidebar: #f4f4f5;

    --text-primary: #18181b;
    --text-secondary: #52525b;
    --text-tertiary: #a1a1aa;
    --text-inverse: #18181b;
    --text-sidebar: #52525b;

    --border-color: #e4e4e7;
    --border-subtle: #f4f4f5;

    --accent-primary: #22D3EE;
    --accent-secondary: #67E8F9;
    --accent-subtle: #CFFAFE;

    --success: #16a34a;
    --error: #dc2626;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);

    --message-user-bg: #ffffff;
    --message-user-text: #18181b;
    --message-assistant-bg: #f4f4f5;
    --message-assistant-text: #18181b;
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: #09090b;
    --bg-secondary: #18181b;
    --bg-tertiary: #27272a;
    --bg-hover: #3f3f46;
    --bg-sidebar: #18181b;

    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;
    --text-inverse: #fafafa;
    --text-sidebar: #a1a1aa;

    --border-color: #27272a;
    --border-subtle: #3f3f46;

    --accent-primary: #22D3EE;
    --accent-secondary: #67E8F9;
    --accent-subtle: #164E63;

    --success: #22c55e;
    --error: #ef4444;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);

    --message-user-bg: #3f3f46;
    --message-user-text: #fafafa;
    --message-assistant-bg: #1e1e20;
    --message-assistant-text: #fafafa;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    height: 100%;
    overflow: hidden;
}

/* App Container */
.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-expanded);
    background: var(--bg-sidebar);
    display: flex;
    flex-direction: column;
    padding: 0;
    border-right: 1px solid var(--border-color);
    z-index: 100;
    overflow: hidden;
}

.sidebar-header {
    flex-shrink: 0;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) 0;
    gap: var(--space-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.logo-icon {
    font-size: 20px;
    color: var(--text-sidebar);
    transition: all var(--transition-fast);
}

.logo-text {
    font-family: 'Nova Square', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--text-sidebar);
    letter-spacing: 1px;
    transition: all var(--transition-fast);
}

/* Light mode: darker on hover */
[data-theme="light"] .logo:hover .logo-icon,
[data-theme="light"] .logo:hover .logo-text {
    color: var(--text-primary);
}

/* Dark mode: lighter on hover */
[data-theme="dark"] .logo:hover .logo-icon,
[data-theme="dark"] .logo:hover .logo-text {
    color: var(--text-primary);
}

/* Navigation */
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-xs);
    color: var(--text-sidebar);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.nav-item:hover,
.nav-item.active {
    color: var(--text-primary);
}

.nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.nav-label {
    font-size: 13px;
    font-weight: 500;
}

/* Sidebar Divider */
.sidebar-divider {
    height: 1px;
    background: var(--border-color);
    margin-top: var(--space-sm);
}

/* Chat History */
.chat-history {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.chat-history-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-sidebar);
    margin-bottom: var(--space-md);
    text-align: center;
}

.chat-history-item {
    padding: var(--space-sm);
    font-size: 12px;
    color: var(--text-sidebar);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

/* Chat History Scrollbar */
.chat-history::-webkit-scrollbar {
    width: 4px;
}

.chat-history::-webkit-scrollbar-track {
    background: transparent;
}

.chat-history::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.chat-history::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}


/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    background: var(--bg-primary);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    right: 0;
    left: var(--sidebar-expanded);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: var(--space-md) var(--space-xl);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    z-index: 100;
}

.header-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

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

/* Theme Toggle */
/* Header Buttons - Harmonized Styles */
.theme-toggle,
.btn-share {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.theme-toggle:hover,
.btn-share:hover {
    color: var(--text-primary);
}

.theme-toggle {
    width: 40px;
    padding: var(--space-sm);
}

.theme-toggle svg,
.share-icon {
    width: 18px;
    height: 18px;
}

.icon-sun { display: none; }
.icon-moon { display: block; }

[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* User Avatar */
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity var(--transition-fast);
    text-transform: uppercase;
}

.user-avatar:hover {
    opacity: 0.8;
}

/* Chat Container */
.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    padding-top: 72px;
}

/* Welcome State */
.welcome-state {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
}

.welcome-state.hidden {
    display: none;
}

.welcome-content {
    text-align: center;
    max-width: 680px;
    width: 100%;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Title */
.welcome-hero-title {
    font-family: 'Nova Square', sans-serif;
    font-size: 72px;
    font-weight: 400;
    color: var(--accent-primary);
    margin-bottom: var(--space-xs);
    letter-spacing: -2px;
    line-height: 1;
}

.welcome-hero-subtitle {
    font-size: 24px;
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    letter-spacing: 2px;
    text-transform: lowercase;
}

/* Welcome Input Wrapper */
.welcome-input-wrapper {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.welcome-input-container {
    display: flex;
    align-items: flex-end;
    gap: var(--space-sm);
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-md);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.welcome-input-container:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px var(--accent-subtle), var(--shadow-lg);
}

.welcome-chat-input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 17px;
    line-height: 1.5;
    padding: var(--space-sm);
    resize: none;
    min-height: 200px;
    max-height: 300px;
    outline: none;
}

.welcome-chat-input::placeholder {
    color: var(--text-tertiary);
}

.welcome-dictation,
.welcome-submit {
    width: 48px;
    height: 48px;
}

.welcome-submit {
    background: var(--accent-primary);
    color: white;
    transform: scale(1.1);
}

.welcome-submit:hover {
    background: var(--accent-secondary);
    transform: scale(1.15);
}

/* Messages Area */
.messages-area {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-xl);
    display: none;
    flex-direction: column;
    gap: var(--space-lg);
}

.messages-area.active {
    display: flex;
}

/* Message Row (contains message + metadata) */
.message-row {
    display: flex;
    gap: var(--space-xl);
    animation: slideIn 0.3s ease;
}

.message-row.user {
    width: 50%; /* Constrain user messages to left half */
    justify-content: flex-end; /* Align to the right within the left half */
    padding-right: var(--space-xl);
}

.message-row.assistant {
    width: 100%; /* Full width to allow Sources in right half */
    justify-content: flex-start; /* Align to the left */
    padding-left: var(--space-xl);
    position: relative; /* For absolute positioning of sources */
}

/* Message Bubble */
.message {
    display: flex;
    gap: var(--space-md);
    flex: 0 1 auto;
    min-width: 0;
}

.message-row.assistant .message {
    /* Limit assistant messages to max 50% of parent width minus padding */
    max-width: calc(50% - var(--space-xl));
    flex-shrink: 0; /* Don't shrink the message */
}

.message-row.user .message {
    /* Limit user messages to max width within left half */
    max-width: 100%; /* Will be constrained by parent width */
    min-width: 200px;
}

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

@keyframes flyIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes flyOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(30px);
    }
}

.message-row.user .message {
    flex-direction: row;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message.assistant .message-avatar {
    background: var(--accent-primary);
    color: white;
}

.message.assistant .message-avatar .material-symbols-outlined {
    font-size: 20px;
}

.message-content {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.message-bubble {
    flex: 1;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    position: relative;
}

.message.assistant .message-bubble {
    background: var(--message-assistant-bg);
    color: var(--message-assistant-text);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) var(--radius-sm);
}

.message.user .message-bubble {
    background: var(--message-user-bg);
    color: var(--message-user-text);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) var(--radius-sm);
}

.message-text {
    font-size: 14px;
    line-height: 1.7;
}

.message-text strong {
    font-weight: 600;
}

.message-text p {
    margin-bottom: var(--space-sm);
}

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

.message-text ul, .message-text ol {
    margin: var(--space-sm) 0;
    padding-left: var(--space-lg);
}

.message-text li {
    margin-bottom: var(--space-xs);
}

.message-text em {
    font-style: italic;
    color: var(--text-secondary);
}

.message-text a {
    color: var(--accent-primary);
    text-decoration: none;
}

/* Message Actions (Copy button on right) */
.message-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: var(--space-xs);
}

.btn-copy {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-size: 12px;
    cursor: pointer;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

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

.btn-copy svg {
    width: 14px;
    height: 14px;
}

.btn-copy span {
    font-weight: 500;
}

.message-time {
    font-size: 10px;
    color: var(--text-tertiary);
    margin-top: var(--space-sm);
    text-align: right;
}

/* Law Metadata Card (appears next to assistant messages) */
.law-metadata {
    width: clamp(240px, 20vw, 320px);
    flex-shrink: 0;
    flex-grow: 0;
    position: absolute;
    left: calc(50% + var(--space-xl)); /* Position at 50% + some padding */
    top: 0;
    animation: flyIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.law-metadata.hiding {
    animation: flyOut 0.3s ease forwards;
}

.law-metadata-card {
    background: var(--message-assistant-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
}

.law-metadata-header {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid var(--border-subtle);
}

.law-metadata-header svg {
    width: 14px;
    height: 14px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.law-metadata-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.law-metadata-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.law-metadata-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.law-metadata-number {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-primary);
    font-family: var(--font-mono);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-block;
}

.law-metadata-number:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

.law-metadata-name {
    font-size: 11px;
    line-height: 1.4;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Input Area */
.input-area {
    padding: var(--space-md) var(--space-xl) var(--space-lg);
    background: var(--bg-primary);
    transition: all var(--transition-base);
}

.input-area.hidden {
    display: none;
}

.input-area.minimized {
    padding: var(--space-sm) var(--space-xl);
}

.input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: var(--space-sm);
    max-width: min(90%, 1400px);
    margin: 0 auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-sm);
    transition: all var(--transition-fast);
}

.input-wrapper:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

.chat-input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 15px;
    line-height: 1.5;
    padding: var(--space-sm);
    resize: none;
    max-height: 200px;
    outline: none;
}

.chat-input::placeholder {
    color: var(--text-tertiary);
}

.btn-dictation,
.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.btn-dictation {
    background: transparent;
    color: var(--text-tertiary);
}

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

.btn-dictation.active {
    background: var(--error);
    color: white;
    animation: recording 1.5s ease-in-out infinite;
}

@keyframes recording {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.btn-dictation {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
}

.btn-dictation svg {
    width: 20px;
    height: 20px;
}

.btn-submit {
    background: transparent;
    color: var(--text-sidebar);
    border: none;
    width: 38px;
    height: 38px;
    padding: 0;
    transition: all var(--transition-fast);
}

.btn-submit:hover {
    background: transparent;
}

.btn-submit:active {
    transform: scale(0.98);
}

.btn-submit .material-symbols-outlined {
    font-size: 28px;
}

/* Light mode: darker on hover */
[data-theme="light"] .btn-submit:hover {
    color: var(--text-primary);
}

/* Dark mode: lighter on hover */
[data-theme="dark"] .btn-submit:hover {
    color: var(--text-primary);
}

.input-hint {
    text-align: center;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: var(--space-sm);
    max-width: min(90%, 1400px);
    margin-left: auto;
    margin-right: auto;
}

.input-area.minimized .input-hint {
    display: none;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-sidebar);
    color: var(--text-inverse);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 13px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 1000;
}

[data-theme="dark"] .toast {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

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

/* Loading indicator */
.loading-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
}

.loading-dots {
    display: flex;
    gap: 4px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* Responsive */
@media (max-width: 1024px) {
    .law-metadata {
        width: clamp(200px, 18vw, 260px);
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 56px;
    }

    .sidebar:hover {
        width: 56px;
    }

    .sidebar:hover .nav-label {
        display: none;
    }

    .header {
        left: 0;
        padding: var(--space-md);
    }

    .header-title {
        font-size: 16px;
    }

    .btn-share span {
        display: none;
    }

    .messages-area,
    .input-area {
        padding: var(--space-md);
    }

    .welcome-hero-title {
        font-size: 48px;
        letter-spacing: -1px;
    }

    .welcome-hero-subtitle {
        font-size: 18px;
        margin-bottom: var(--space-xl);
    }

    .welcome-input-container {
        padding: var(--space-sm);
    }

    .welcome-chat-input {
        font-size: 15px;
        min-height: 48px;
    }

    .welcome-dictation,
    .welcome-submit {
        width: 40px;
        height: 40px;
    }

    .welcome-submit {
        transform: scale(1);
    }

    /* Hide metadata on mobile for cleaner layout */
    .law-metadata {
        display: none;
    }

    .message-row.user,
    .message-row.assistant {
        width: 100%; /* Full width on mobile */
    }

    .message-row.user {
        padding-left: 0;
        padding-right: 0;
    }

    .message-row.assistant {
        padding-left: 0;
        position: static; /* Reset positioning on mobile */
    }

    .message-row.assistant .message,
    .message-row.user .message {
        max-width: 100%;
    }

    .input-wrapper {
        max-width: 100%;
    }
}

/* Removed sidebar-footer styles - Logout is now a regular nav-item */

/* =============================================================================
   ADMIN PANEL
   ============================================================================= */

.admin-panel {
    padding: var(--space-2xl);
    max-width: 800px;
}

.admin-panel h2 {
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
}

.admin-panel h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.admin-section {
    margin-bottom: var(--space-2xl);
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

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

.admin-form input,
.admin-form select {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-primary);
}

.admin-form input:focus,
.admin-form select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.btn-primary {
    padding: 12px 24px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity var(--transition-fast);
    font-family: var(--font-primary);
}

.btn-primary:hover {
    opacity: 0.9;
}

.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
}

.user-details strong {
    color: var(--text-primary);
}

.user-meta {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.btn-delete {
    padding: 8px 16px;
    background: transparent;
    color: #ef4444;
    border: 1px solid #ef4444;
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-primary);
}

.btn-delete:hover {
    background: #ef4444;
    color: white;
}
