/* ===== M3 INTRANET - DESIGN SYSTEM ===== */
:root {
    /* Colors - Light Mode */
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: rgba(99, 102, 241, 0.1);
    --primary-lighter: rgba(99, 102, 241, 0.05);

    --secondary: #10b981;
    --secondary-light: rgba(16, 185, 129, 0.1);

    --accent-blue: #3b82f6;
    --accent-blue-light: rgba(59, 130, 246, 0.1);
    --accent-green: #10b981;
    --accent-green-light: rgba(16, 185, 129, 0.1);
    --accent-purple: #8b5cf6;
    --accent-purple-light: rgba(139, 92, 246, 0.1);
    --accent-orange: #f59e0b;
    --accent-orange-light: rgba(245, 158, 11, 0.1);
    --accent-red: #ef4444;
    --accent-red-light: rgba(239, 68, 68, 0.1);

    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-elevated: #ffffff;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-inverse: #ffffff;

    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --border-focus: var(--primary);

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Layout */
    --sidebar-width: 260px;
    --sidebar-collapsed: 72px;
    --topbar-height: 72px;
    --mobile-header-height: 60px;

    /* Radius */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 200ms ease;
    --transition-slow: 300ms ease;
    --transition-bounce: 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Dark Mode */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-elevated: #1e293b;

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --border: #334155;
    --border-light: #1e293b;

    --primary-light: rgba(99, 102, 241, 0.2);
    --primary-lighter: rgba(99, 102, 241, 0.1);

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    font-size: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

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

* {
    scrollbar-width: thin;
    scrollbar-color: var(--border) var(--bg-tertiary);
}

/* ===== UTILITIES ===== */
.hidden { display: none !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Skeleton Loading */
.skeleton-text {
    display: inline-block;
    width: 48px;
    height: 24px;
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== LOGIN SCREEN ===== */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.login-screen::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(2%, 2%) rotate(1deg); }
    50% { transform: translate(0, 4%) rotate(0deg); }
    75% { transform: translate(-2%, 2%) rotate(-1deg); }
}

.login-container {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
    color: white;
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.logo {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    animation: logoEntrance 0.6s ease backwards;
}

@keyframes logoEntrance {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
}

.logo-text {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    animation: fadeInUp 0.6s ease 0.1s backwards;
}

.login-header .subtitle {
    font-size: 16px;
    opacity: 0.9;
    animation: fadeInUp 0.6s ease 0.2s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
}

.login-card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 40px 32px;
    box-shadow: var(--shadow-xl);
    text-align: center;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease 0.3s backwards;
}

.login-card h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.login-card p {
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.google-btn-container {
    display: flex;
    justify-content: center;
    min-height: 44px;
}

.login-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease 0.4s backwards;
}

.feature {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    color: white;
    transition: var(--transition);
}

.feature:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(4px);
}

.feature-icon {
    font-size: 28px;
}

.feature-text {
    display: flex;
    flex-direction: column;
}

.feature-text strong {
    font-weight: 600;
    font-size: 15px;
}

.feature-text span {
    font-size: 13px;
    opacity: 0.85;
}

.login-footer {
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    animation: fadeInUp 0.6s ease 0.5s backwards;
}

/* ===== MAIN APP LAYOUT ===== */
.main-app {
    display: flex;
    min-height: 100vh;
    background: var(--bg-primary);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-xs);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: width var(--transition-slow), transform var(--transition-slow);
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed);
}

.sidebar.collapsed .logo-label {
    opacity: 0;
    pointer-events: none;
    width: 0;
    overflow: hidden;
}

.sidebar.collapsed .nav-item span {
    opacity: 0;
    pointer-events: none;
    width: 0;
    overflow: hidden;
}

.sidebar.collapsed .nav-label {
    opacity: 0;
    pointer-events: none;
    width: 0;
    overflow: hidden;
}

.sidebar.collapsed .nav-badge {
    opacity: 0;
    pointer-events: none;
    width: 0;
    overflow: hidden;
}

.sidebar.collapsed .user-card-info {
    opacity: 0;
    pointer-events: none;
    width: 0;
    overflow: hidden;
}

.sidebar.collapsed .user-card-menu {
    opacity: 0;
    pointer-events: none;
    width: 0;
    overflow: hidden;
}

.sidebar.collapsed .sidebar-toggle svg {
    transform: rotate(180deg);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    min-height: 76px;
    overflow: visible;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.logo-mark {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
}

.logo-mark-img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    flex-shrink: 0;
    object-fit: contain;
}

.logo-label {
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
    transition: opacity var(--transition), width var(--transition);
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-toggle {
    width: 32px;
    height: 32px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
    flex-shrink: 0;
    cursor: pointer;
    z-index: 10;
}

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

.sidebar-toggle svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition);
    pointer-events: none;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 0 12px;
    margin-bottom: 8px;
    transition: opacity var(--transition);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    position: relative;
    margin-bottom: 4px;
}

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

.nav-item.active {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--primary);
    border-radius: 0 2px 2px 0;
}

.nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.nav-item span {
    white-space: nowrap;
    transition: opacity var(--transition);
}

.nav-badge {
    margin-left: auto;
    padding: 2px 8px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: opacity var(--transition);
}

.nav-badge.new {
    background: var(--accent-green);
}

.nav-item-add {
    border: 1px dashed var(--border);
    color: var(--text-muted);
}

.nav-item-add:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-lighter);
}

.quick-actions {
    margin-bottom: 8px;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
    position: relative;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.user-card:hover {
    background: var(--bg-tertiary);
}

.user-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
}

.user-card-info {
    flex: 1;
    min-width: 0;
    transition: opacity var(--transition);
}

.user-card-name {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-card-email {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-card-menu {
    width: 32px;
    height: 32px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.user-card-menu:hover {
    background: var(--bg-secondary);
}

.user-card-menu svg {
    width: 18px;
    height: 18px;
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 16px;
    right: 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
    z-index: 50;
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-primary);
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--bg-tertiary);
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

.dropdown-item.danger {
    color: var(--accent-red);
}

.dropdown-item.danger svg {
    color: var(--accent-red);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

/* ===== MOBILE HEADER ===== */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--mobile-header-height);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 0 16px;
    align-items: center;
    justify-content: space-between;
    z-index: 90;
}

.mobile-menu-btn,
.mobile-search-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.mobile-menu-btn:hover,
.mobile-search-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.mobile-menu-btn svg,
.mobile-search-btn svg {
    width: 22px;
    height: 22px;
}

.mobile-logo {
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
}

.mobile-logo span {
    background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left var(--transition-slow);
}

.sidebar.collapsed ~ .main-content {
    margin-left: var(--sidebar-collapsed);
}

/* Topbar */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 60;
    min-height: var(--topbar-height);
}

.greeting {
    flex: 1;
}

.greeting h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.greeting h1 #greetingName {
    background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.greeting h1 .breadcrumb-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary) !important;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 6px 12px;
    border-radius: var(--radius);
    margin-left: -12px;
    background: var(--primary-light) !important;
    border: none;
    -webkit-text-fill-color: var(--primary) !important;
    background-clip: unset !important;
    -webkit-background-clip: unset !important;
    font-size: 14px;
    font-weight: 500;
}

.greeting h1 .breadcrumb-back:hover {
    color: var(--primary-hover) !important;
    transform: translateX(-2px);
    background: var(--primary-lighter) !important;
    -webkit-text-fill-color: var(--primary-hover) !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.greeting p {
    font-size: 14px;
    color: var(--text-secondary);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Search Container */
.search-container {
    position: relative;
    width: 320px;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 10px 16px 10px 44px;
    background: var(--bg-tertiary);
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-secondary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

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

.search-shortcut {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    padding: 4px 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    pointer-events: none;
}

/* Topbar Button */
.topbar-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

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

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

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--accent-red);
    border-radius: var(--radius-full);
    display: none;
}

.notification-dot.active {
    display: block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* ===== DASHBOARD ===== */
.dashboard {
    padding: 32px;
    max-width: 1600px;
    margin: 0 auto;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: var(--transition);
}

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

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

.stat-icon svg {
    width: 24px;
    height: 24px;
}

.stat-icon.blue {
    background: var(--accent-blue-light);
    color: var(--accent-blue);
}

.stat-icon.green {
    background: var(--accent-green-light);
    color: var(--accent-green);
}

.stat-icon.purple {
    background: var(--accent-purple-light);
    color: var(--accent-purple);
}

.stat-icon.orange {
    background: var(--accent-orange-light);
    color: var(--accent-orange);
}

.stat-info {
    flex: 1;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: var(--radius-full);
}

.stat-trend svg {
    width: 14px;
    height: 14px;
}

.stat-trend.up {
    background: var(--accent-green-light);
    color: var(--accent-green);
}

.stat-trend.down {
    background: var(--accent-red-light);
    color: var(--accent-red);
}

.stat-trend.neutral {
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
}

.dashboard-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
}

.dashboard-section:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--primary);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.section-action {
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
    transition: var(--transition);
}

.section-action:hover {
    color: var(--primary-hover);
}

/* Tools Grid */
.tools-section {
    grid-column: 1;
    grid-row: 1 / 3;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

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

.tool-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    animation: fadeInUp 0.6s ease backwards;
}


.tool-card:nth-child(1) { animation-delay: 0.1s; }
.tool-card:nth-child(2) { animation-delay: 0.2s; }
.tool-card:nth-child(3) { animation-delay: 0.3s; }
.tool-card:nth-child(4) { animation-delay: 0.4s; }
.tool-card:nth-child(5) { animation-delay: 0.5s; }
.tool-card:nth-child(6) { animation-delay: 0.6s; }

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #764ba2);
    opacity: 0;
    transition: var(--transition);
}

.tool-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 40px -12px rgba(99, 102, 241, 0.4), 0 0 0 1px rgba(99, 102, 241, 0.1);
    will-change: transform, box-shadow;
}

.tool-card:active {
    transform: translateY(-2px) scale(0.99);
    transition: all 0.1s ease;
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card.featured {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    border-color: rgba(99, 102, 241, 0.3);
}

.tool-card.featured::before {
    opacity: 1;
}

.tool-card.coming-soon {
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;
}

.tool-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.tool-card .tool-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.tool-card:hover .tool-icon {
    transform: scale(1.15) rotate(5deg);
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.tool-card .tool-icon svg {
    width: 28px;
    height: 28px;
}

.tool-card .tool-icon.green {
    background: var(--accent-green-light);
    color: var(--accent-green);
}

.tool-card .tool-icon.orange {
    background: var(--accent-orange-light);
    color: var(--accent-orange);
}

.tool-card .tool-icon.blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.tool-badge {
    padding: 4px 10px;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.tool-badge.soon {
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

.tool-badge.new {
    background: var(--accent-green);
    color: white;
}

.tool-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.3;
}

.tool-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.tool-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.tool-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.tool-stat svg {
    width: 14px;
    height: 14px;
}

.tool-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--primary);
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
    position: relative;
    overflow: hidden;
}

.tool-action::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.tool-action:hover::before {
    width: 300px;
    height: 300px;
}

.tool-action:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.tool-action svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    z-index: 1;
}

.tool-card:hover .tool-action svg {
    transform: translateX(6px);
}

.tool-action span {
    position: relative;
    z-index: 1;
}

.tool-action.disabled {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
}

.tool-action.disabled:hover {
    transform: none;
}

/* Activity Section */
.activity-section {
    grid-column: 2;
    grid-row: 1;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--bg-primary);
    border-radius: var(--radius);
    transition: var(--transition);
}

.activity-item:hover {
    background: var(--bg-tertiary);
}

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

.activity-icon svg {
    width: 18px;
    height: 18px;
}

.activity-icon.chat {
    background: var(--accent-blue-light);
    color: var(--accent-blue);
}

.activity-icon.correction {
    background: var(--accent-green-light);
    color: var(--accent-green);
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.activity-time {
    font-size: 12px;
    color: var(--text-muted);
}

.activity-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

.activity-empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.activity-empty p {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.activity-empty span {
    font-size: 13px;
}

/* Templates Section */
.templates-section {
    grid-column: 2;
    grid-row: 2;
}

.templates-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.template-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-primary);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.template-item:hover {
    background: var(--bg-tertiary);
}

.template-icon {
    font-size: 20px;
}

.template-name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.template-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

.template-empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.template-empty p {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.template-empty a {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
}

.template-empty a:hover {
    text-decoration: underline;
}

/* ===== SEARCH MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-modal {
    width: 100%;
    max-width: 560px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transform: translateY(-20px) scale(0.95);
    transition: var(--transition);
}

.modal-overlay.active .search-modal {
    transform: translateY(0) scale(1);
}

.search-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.search-modal-header svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-modal-header input {
    flex: 1;
    border: none;
    background: none;
    color: var(--text-primary);
    font-size: 16px;
}

.search-modal-header input:focus {
    outline: none;
}

.search-modal-header input::placeholder {
    color: var(--text-muted);
}

.search-modal-header kbd {
    padding: 4px 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
}

.search-modal-body {
    padding: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.search-section {
    margin-bottom: 16px;
}

.search-section:last-child {
    margin-bottom: 0;
}

.search-section-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 8px 12px;
}

.search-result {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.search-result:hover {
    background: var(--bg-tertiary);
}

.search-result svg {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.search-result span {
    flex: 1;
}

.search-result kbd {
    padding: 3px 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    font-size: 10px;
    color: var(--text-muted);
}

/* ===== NOTIFICATIONS PANEL ===== */
.notifications-panel {
    position: fixed;
    top: var(--topbar-height);
    right: 32px;
    width: 360px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
}

.notifications-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.notifications-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.notifications-clear {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
}

.notifications-list {
    padding: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
}

.notification-item:hover {
    background: var(--bg-tertiary);
}

.notification-item.unread {
    background: var(--primary-lighter);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.notification-desc {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.notification-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

.notification-empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.notification-empty p {
    font-size: 14px;
}

/* ===== TOAST CONTAINER ===== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 300;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.3s ease;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
}

.toast.removing {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.toast-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: var(--accent-green);
}

.toast.error .toast-icon {
    color: var(--accent-red);
}

.toast.info .toast-icon {
    color: var(--accent-blue);
}

.toast-message {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.toast-close {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    margin-left: 8px;
    transition: var(--transition);
}

.toast-close:hover {
    color: var(--text-primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .tools-section {
        grid-row: 1;
    }

    .activity-section,
    .templates-section {
        grid-column: 1;
    }
}

@media (max-width: 1024px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-container {
        width: 240px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: 8px 0 24px rgba(0, 0, 0, 0.3);
    }

    .mobile-header {
        display: flex;
    }

    .main-content {
        margin-left: 0;
        padding-top: var(--mobile-header-height);
    }

    .topbar {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .topbar-right {
        width: 100%;
    }

    .search-container {
        flex: 1;
        width: auto;
    }

    .search-shortcut {
        display: none;
    }

    .dashboard {
        padding: 16px;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 16px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .notifications-panel {
        right: 16px;
        left: 16px;
        width: auto;
    }
}

/* Mobile Menu Overlay */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== INTEGRATED TOOLS ===== */
.tool-section {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    bottom: 0;
    overflow: hidden;
    background: var(--bg-primary);
    z-index: 10;
    display: flex;
    flex-direction: column;
    animation: fadeInSection 0.3s ease;
}

@keyframes fadeInSection {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tool-section.hidden {
    display: none !important;
}

/* Loading skeleton para tool sections */
.tool-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 3;
    transition: opacity 0.3s ease;
}

.tool-section::after {
    content: 'Cargando herramienta...';
    position: absolute;
    top: calc(50% + 40px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    z-index: 3;
    transition: opacity 0.3s ease;
}

.tool-section.loaded::before,
.tool-section.loaded::after {
    opacity: 0;
    pointer-events: none;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Skeleton background pattern */
.tool-section:not(.loaded) {
    background:
        linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: skeletonBg 1.5s ease-in-out infinite;
}

@keyframes skeletonBg {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.tool-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #ffffff;
    display: block;
    flex: 1;
    min-height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.tool-iframe.loaded {
    opacity: 1;
}

/* Hide dashboard when tools are active */
.dashboard.hidden {
    display: none !important;
}

/* Topbar compact mode for tools */
body:has(.tool-section:not(.hidden)) .topbar {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    z-index: 50;
    padding: 12px 32px;
    min-height: 60px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
}

body:has(.sidebar.collapsed):has(.tool-section:not(.hidden)) .topbar {
    left: var(--sidebar-collapsed);
}

body:has(.tool-section:not(.hidden)) .greeting h1 {
    font-size: 16px;
    margin-bottom: 0;
}

body:has(.tool-section:not(.hidden)) .greeting p {
    display: none;
}

body:has(.tool-section:not(.hidden)) .tool-section {
    height: calc(100vh - 60px);
    top: 60px;
}

/* Tool section responsive */
@media (max-width: 768px) {
    .tool-section {
        height: calc(100vh - var(--mobile-header-height));
        top: var(--mobile-header-height);
        left: 0;
    }
}

/* When sidebar is collapsed */
body:has(.sidebar.collapsed) .tool-section {
    left: var(--sidebar-collapsed);
}

/* Ensure main-content allows fixed positioning */
.main-content {
    position: relative;
    min-height: 100vh;
}

/* ===== REQUESTS FORM - ESTILOS ESPECÍFICOS ===== */
/* Sobreescribir estilos existentes con especificidad */

.dashboard-section.requests-section {
    display: block !important;
}

.dashboard-section.requests-section .request-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

.dashboard-section.requests-section .request-form .form-row {
    display: grid !important;
    grid-template-columns: 1fr 240px !important;
    gap: 16px !important;
    align-items: end !important;
}

.dashboard-section.requests-section .request-form .form-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.dashboard-section.requests-section .request-form .form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.dashboard-section.requests-section .request-form .form-group input[type="text"],
.dashboard-section.requests-section .request-form .form-group textarea {
    width: 100% !important;
    padding: 10px 12px !important;
    border: 1px solid var(--border) !important;
    border-radius: 6px !important;
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    font-size: 14px !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
}

.dashboard-section.requests-section .request-form .form-group textarea {
    min-height: 80px !important;
    resize: vertical;
}

/* Priority */
.dashboard-section.requests-section .form-group-priority {
    width: 240px !important;
}

.dashboard-section.requests-section .priority-options {
    display: flex !important;
    gap: 6px !important;
    position: relative;
}

.dashboard-section.requests-section .priority-option {
    flex: 1;
    cursor: pointer;
    position: relative;
    display: block;
}

.dashboard-section.requests-section .priority-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dashboard-section.requests-section .priority-label {
    display: block;
    padding: 8px 4px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    background: var(--bg-primary);
    color: var(--text-muted);
    border: 1px solid var(--border);
    text-align: center;
}

.dashboard-section.requests-section .priority-option:hover .priority-label {
    border-color: #999;
}

.dashboard-section.requests-section .priority-option input[type="radio"]:checked + .priority-label.low {
    background: #fef3c7 !important;
    border-color: #f59e0b !important;
    color: #92400e !important;
}

.dashboard-section.requests-section .priority-option input[type="radio"]:checked + .priority-label.medium {
    background: #dbeafe !important;
    border-color: #3b82f6 !important;
    color: #1e40af !important;
}

.dashboard-section.requests-section .priority-option input[type="radio"]:checked + .priority-label.high {
    background: #fee2e2 !important;
    border-color: #ef4444 !important;
    color: #991b1b !important;
}

/* Dark mode */
[data-theme="dark"] .dashboard-section.requests-section .priority-option input[type="radio"]:checked + .priority-label.low {
    background: rgba(245, 158, 11, 0.2) !important;
    color: #fbbf24 !important;
}

[data-theme="dark"] .dashboard-section.requests-section .priority-option input[type="radio"]:checked + .priority-label.medium {
    background: rgba(59, 130, 246, 0.2) !important;
    color: #60a5fa !important;
}

[data-theme="dark"] .dashboard-section.requests-section .priority-option input[type="radio"]:checked + .priority-label.high {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #f87171 !important;
}

/* Button */
.dashboard-section.requests-section .request-form .form-actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.dashboard-section.requests-section .btn-submit-request {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    padding: 11px 20px !important;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

.dashboard-section.requests-section .btn-submit-request:hover {
    background: linear-gradient(135deg, #5558e8 0%, #7c4fe0 100%) !important;
}

.dashboard-section.requests-section .btn-submit-request svg {
    width: 16px;
    height: 16px;
}

/* Hint */
.dashboard-section.requests-section .form-hint {
    font-size: 12px;
    color: var(--text-muted);
}

/* Success */
.dashboard-section.requests-section .request-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    text-align: center;
    gap: 10px;
}

.dashboard-section.requests-section .request-success.hidden {
    display: none !important;
}

.dashboard-section.requests-section .request-success svg {
    width: 48px;
    height: 48px;
    color: #10b981;
}

.dashboard-section.requests-section .request-success p {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.dashboard-section.requests-section .request-success > span {
    font-size: 13px;
    color: var(--text-muted);
}

.dashboard-section.requests-section .btn-new-request {
    margin-top: 10px;
    padding: 8px 16px;
    background: transparent;
    color: #6366f1;
    border: 1px solid #6366f1;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.dashboard-section.requests-section .btn-new-request:hover {
    background: #6366f1;
    color: white;
}

/* Responsive */
@media (max-width: 600px) {
    .dashboard-section.requests-section .request-form .form-row {
        grid-template-columns: 1fr !important;
    }

    .dashboard-section.requests-section .form-group-priority {
        width: 100% !important;
    }

    .dashboard-section.requests-section .request-form .form-actions {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .dashboard-section.requests-section .btn-submit-request {
        width: 100% !important;
    }

    .dashboard-section.requests-section .form-hint {
        text-align: center;
    }
}
