/* Base Styles for Spends Admin Project */
:root {
    --primary-color: #4a5568;
    --primary-dark: #2d3748;
    --secondary-color: #718096;
    --success-color: #38a169;
    --danger-color: #e53e3e;
    --warning-color: #d69e2e;
    --background: #f7fafc;
    --surface: #ffffff;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --background-secondary: #f8fafc;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --card-titles: #eaecee;
    --badge-bg: #e8eef5;
    --badge-text: #4a5568;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* App Container */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.app-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

@media (max-width: 768px) {
    .app-header {
        z-index: 10000;
    }
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.app-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    cursor: pointer;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
}

/* Navigation Menu Items */
.nav-menu-item {
    position: relative;
    z-index: 1101;
}

.nav-menu-link {
    color: white;
    text-decoration: none;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    cursor: pointer;
}

.nav-menu-link svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.nav-menu-link .dropdown-arrow {
    width: 14px;
    height: 14px;
    margin-inline-start: -0.25rem;
    transition: transform 0.2s;
}

.nav-menu-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-menu-item.active > .nav-menu-link,
.nav-menu-link.active {
    background: rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 12104 !important;
}

.nav-menu-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu-item:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: var(--background-secondary);
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.admin-link {
    color: white;
    text-decoration: none;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1;
}

.admin-link svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    flex-shrink: 0;
}

.admin-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.logout-form {
    margin: 0;
    padding: 0;
    display: inline-block;
}

.logout-btn {
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1;
    margin: 0;
}

.logout-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    flex-shrink: 0;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.logout-btn:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* Main Content */
.main-content {
    flex: 1;
    width: 100%;
}

/* ============================================
   GLOBAL ALERT CONTAINER - Централизованная система алертов
   ============================================ */
#global-alert-container {
    position: fixed;
    top: 20px;
    inset-inline-end: 20px;
    z-index: 30001 !important;
    max-width: 400px;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

[dir="rtl"] #global-alert-container {
    inset-inline-end: auto;
    inset-inline-start: 20px;
}

#global-alert-container .alert {
    padding: 0.95rem 1.25rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
    opacity: 0;
    transform: translateX(100%);
    animation: alertSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: #111827;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(209, 213, 219, 0.8);
    backdrop-filter: blur(12px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
    user-select: none;
    line-height: 1.4;
    outline: none;
}

[dir="rtl"] #global-alert-container .alert {
    transform: translateX(-100%);
    animation: alertSlideInRTL 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

#global-alert-container .alert:hover,
#global-alert-container .alert:focus {
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.35);
    transform: translateX(-2px);
    outline: none;
}

[dir="rtl"] #global-alert-container .alert:hover,
[dir="rtl"] #global-alert-container .alert:focus {
    transform: translateX(2px);
    outline: none;
}

#global-alert-container .alert-message {
    flex: 1;
    word-wrap: break-word;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#global-alert-container .alert-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s, opacity 0.2s;
    flex-shrink: 0;
    opacity: 0.6;
    color: currentColor;
    outline: none;
}

#global-alert-container .alert-close:hover,
#global-alert-container .alert-close:focus {
    background-color: rgba(0, 0, 0, 0.1);
    opacity: 1;
    outline: none;
}

#global-alert-container .alert-close svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
}

/* Анимации появления */
@keyframes alertSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Анимация скрытия */
#global-alert-container .alert-fade-out {
    animation: alertSlideOut 0.3s ease-in forwards;
}

[dir="rtl"] #global-alert-container .alert-fade-out {
    animation: alertSlideOutRTL 0.3s ease-in forwards;
}

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

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

/* Класс для видимого состояния */
#global-alert-container .alert-visible {
    transform: translateX(0);
    opacity: 1;
}

/* Типы алертов */
#global-alert-container .alert-success {
    background: linear-gradient(135deg, rgba(220, 252, 231, 0.98) 0%, rgba(187, 247, 208, 0.95) 100%);
    color: #166534;
    border: 1px solid rgba(187, 247, 208, 0.85);
    box-shadow: 0 20px 40px rgba(22, 163, 74, 0.15);
}

#global-alert-container .alert-success .alert-message::before {
    content: '✓';
    font-size: 1.2rem;
    font-weight: bold;
    color: #16a34a;
    flex-shrink: 0;
}

#global-alert-container .alert-error {
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.98) 0%, rgba(254, 202, 202, 0.95) 100%);
    color: #991b1b;
    border: 1px solid rgba(254, 202, 202, 0.85);
    box-shadow: 0 18px 45px rgba(185, 28, 28, 0.28);
}

#global-alert-container .alert-error .alert-message::before {
    content: '✕';
    font-size: 1.2rem;
    font-weight: bold;
    color: #dc2626;
    flex-shrink: 0;
}

#global-alert-container .alert-warning {
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.98) 0%, rgba(251, 191, 36, 0.95) 100%);
    color: #92400e;
    border: 1px solid rgba(251, 191, 36, 0.85);
    box-shadow: 0 18px 45px rgba(217, 119, 6, 0.28);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

#global-alert-container .alert-warning .alert-message::before {
    content: '⚠';
    font-size: 1.2rem;
    color: #d97706;
    flex-shrink: 0;
}

#global-alert-container .alert-info {
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.98) 0%, rgba(219, 234, 254, 0.95) 100%);
    color: #1e40af;
    border: 1px solid rgba(147, 197, 253, 0.85);
    box-shadow: 0 18px 45px rgba(59, 130, 246, 0.2);
}

#global-alert-container .alert-info .alert-message::before {
    content: 'ℹ';
    font-size: 1.2rem;
    font-weight: bold;
    color: #3b82f6;
    flex-shrink: 0;
}

/* Адаптивность */
@media (max-width: 640px) {
    #global-alert-container {
        top: 12px;
        inset-inline-end: 12px;
        inset-inline-start: 12px;
        max-width: none;
    }

    [dir="rtl"] #global-alert-container {
        inset-inline-end: 12px;
        inset-inline-start: 12px;
    }

    #global-alert-container .alert {
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        position: relative;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
        order: 3;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu-link {
        width: 100%;
        justify-content: center;
    }

    .nav-menu-item {
        position: relative;
        z-index: 10001;
    }

    .dropdown-menu {
        position: relative;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        box-shadow: none;
        background: rgba(255, 255, 255, 0.05);
        margin-top: 0.5rem;
        margin-inline: 1rem;
        border-radius: 0.5rem;
        padding: 0.5rem 0;
        z-index: 10002 !important;
        pointer-events: auto !important;
        display: none;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .nav-menu-item.active .dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        display: block !important;
        max-height: 500px;
    }

    .dropdown-item {
        padding: 0.625rem 1.25rem;
        color: white;
        text-align: center;
        pointer-events: auto;
        cursor: pointer;
    }

    .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.1);
        color: white;
    }

    .mobile-menu-toggle {
        display: block;
        order: 2;
        margin-inline-start: auto;
    }

    .header-actions {
        display: none;
        order: 999;
    }

    .nav-menu.open ~ .header-actions {
        display: flex;
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 0.5rem;
        padding: 0;
    }

    .nav-menu .header-actions {
        display: flex;
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 0;
        padding: 0;
    }

    .admin-link {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.625rem 1.25rem;
        border-radius: 0.5rem;
        font-size: 0.95rem;
        font-weight: 500;
        color: white;
        text-decoration: none;
        transition: all 0.2s;
        gap: 0.5rem;
    }

    .admin-link svg {
        width: 18px;
        height: 18px;
        stroke-width: 2;
        flex-shrink: 0;
    }

    .admin-link:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .logout-form {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .logout-btn {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.625rem 1.25rem;
        border-radius: 0.5rem;
        font-size: 0.95rem;
        font-weight: 500;
        color: white;
        gap: 0.5rem;
    }

    .logout-btn svg {
        width: 18px;
        height: 18px;
        stroke-width: 2;
        flex-shrink: 0;
    }

    .app-title {
        order: 1;
    }

    .mobile-menu-toggle {
        order: 2;
        margin-left: auto;
    }

    .language-switcher {
        display: none;
        order: 998;
    }

    .nav-menu.open ~ .language-switcher,
    .nav-menu .language-switcher {
        display: flex;
        width: 100%;
        margin-top: 0.5rem;
        justify-content: center;
    }

    .nav-menu .language-switcher {
        margin-top: 0;
    }

    .language-switcher .custom-select-wrapper {
        width: 100%;
    }

    .language-switcher .custom-select-trigger {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   LANGUAGE SWITCHER - CUSTOM SELECT
   ============================================ */
.language-switcher {
    display: flex;
    align-items: center;
}

.custom-select-wrapper {
    position: relative;
    min-width: 160px;
}

.custom-select {
    position: relative;
    user-select: none;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 2.5rem 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}

.custom-select-trigger:hover {
    background: rgba(255, 255, 255, 0.15);
}

.custom-select.open .custom-select-trigger {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.custom-select-trigger .fi {
    width: 1.5em;
    height: 1.125em;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.custom-select-text {
    flex: 1;
    white-space: nowrap;
}

.custom-select-arrow {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    transition: transform 0.2s;
    pointer-events: none;
}

.custom-select.open .custom-select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
}

.custom-select.open .custom-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-select-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    color: white;
    cursor: pointer;
    transition: background 0.15s;
}

.custom-select-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.custom-select-option.selected {
    background: rgba(255, 255, 255, 0.15);
}

.custom-select-option .fi {
    width: 1.5em;
    height: 1.125em;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

/* ============================================
   UNIFIED MESSAGES SYSTEM (Django Messages - Fallback)
   ============================================ */

.unified-messages-container {
    position: fixed;
    top: 80px;
    inset-inline-end: 20px;
    z-index: 10000;
    width: 90%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

[dir="rtl"] .unified-messages-container {
    inset-inline-end: auto;
    inset-inline-start: 20px;
}

.unified-messages-container .alert {
    pointer-events: auto;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease-out;
    position: relative;
    overflow: hidden;
    font-weight: 500;
    outline: none;
}


.alert-message {
    flex: 1;
    word-wrap: break-word;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
    flex-shrink: 0;
    opacity: 0.7;
    outline: none;
}

.alert-close:hover,
.alert-close:focus {
    background-color: rgba(0, 0, 0, 0.1);
    opacity: 1;
    outline: none;
}

.alert-close svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

/* Alert Types */
.alert-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #166534;
    border: 2px solid #86efac;
    border-left-width: 4px;
    border-left-color: #86efac;
}

[dir="rtl"] .alert-success {
    border-left-width: 2px;
    border-right-width: 4px;
    border-right-color: #86efac;
}

.alert-success .alert-message::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: #22c55e;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.alert-success .alert-close {
    color: #166534;
}

.alert-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #991b1b;
    border: 2px solid #fca5a5;
    border-left-width: 4px;
    border-left-color: #fca5a5;
}

[dir="rtl"] .alert-error {
    border-left-width: 2px;
    border-right-width: 4px;
    border-right-color: #fca5a5;
}

.alert-error .alert-message::before {
    content: '✕';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: #ef4444;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.alert-error .alert-close {
    color: #991b1b;
}

.alert-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #854d0e;
    border: 2px solid #fcd34d;
    border-left-width: 4px;
    border-left-color: #fcd34d;
}

[dir="rtl"] .alert-warning {
    border-left-width: 2px;
    border-right-width: 4px;
    border-right-color: #fcd34d;
}

.alert-warning .alert-message::before {
    content: '⚠';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: #f59e0b;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.alert-warning .alert-close {
    color: #854d0e;
}

.alert-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e40af;
    border: 2px solid #93c5fd;
    border-left-width: 4px;
    border-left-color: #93c5fd;
}

[dir="rtl"] .alert-info {
    border-left-width: 2px;
    border-right-width: 4px;
    border-right-color: #93c5fd;
}

.alert-info .alert-message::before {
    content: 'ℹ';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: #3b82f6;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.alert-info .alert-close {
    color: #1e40af;
}

/* Fallback for other tags */
.alert {
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.alert .alert-close {
    color: #374151;
}

/* Animation */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

[dir="rtl"] .unified-messages-container .alert {
    animation: slideInLeft 0.3s ease-out;
}

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

.alert.fade-out {
    animation: slideOutRight 0.3s ease-out forwards;
}

[dir="rtl"] .alert.fade-out {
    animation: slideOutLeft 0.3s ease-out forwards;
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
        max-height: 200px;
        margin-bottom: 12px;
    }
    to {
        opacity: 0;
        transform: translateX(100%);
        max-height: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
        max-height: 200px;
        margin-bottom: 12px;
    }
    to {
        opacity: 0;
        transform: translateX(-100%);
        max-height: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .unified-messages-container {
        top: 70px;
        right: 10px;
        width: calc(100% - 20px);
        max-width: none;
    }
    
    [dir="rtl"] .unified-messages-container {
        right: auto;
        left: 10px;
    }
    
    .unified-messages-container .alert {
        padding: 12px 14px;
        font-size: 0.9rem;
    }
}
