/* Custom styles for Cleaning CRM */
:root {
    --animation-speed: 0.3s;
    --transition-type: cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-color: rgba(0, 0, 0, 0.2);
    --glow-primary: 0 0 15px rgba(var(--bs-primary-rgb), 0.5);
    --glow-success: 0 0 15px rgba(var(--bs-success-rgb), 0.5);
    --glow-info: 0 0 15px rgba(var(--bs-info-rgb), 0.5);
    --glow-warning: 0 0 15px rgba(var(--bs-warning-rgb), 0.5);
    --glow-danger: 0 0 15px rgba(var(--bs-danger-rgb), 0.5);
    
    /* Modern theme colors */
    --modern-bg: #111827;
    --modern-card-bg: #1f2937;
    --modern-highlight: #3b82f6;
    --modern-text: #f9fafb;
    --modern-text-secondary: #9ca3af;
    --modern-border: rgba(255, 255, 255, 0.1);
    --modern-hover: rgba(255, 255, 255, 0.05);
    --modern-gradient: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
}

.modern-theme {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--modern-bg);
    color: var(--modern-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 80px; /* Space for bottom navigation */
    position: relative;
    letter-spacing: -0.01em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%232563eb' fill-opacity='0.05'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3Cpath d='M6 5V0H5v5H0v1h5v94h1V6h94V5H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top, rgba(29, 78, 216, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.main-container {
    max-width: 1200px;
    position: relative;
    z-index: 1;
}

/* Modern card styling */
.card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--modern-border);
    background-color: var(--modern-card-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all var(--animation-speed) var(--transition-type);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    border-color: rgba(var(--bs-primary-rgb), 0.3);
}

/* User info panel */
.user-info-panel {
    position: fixed;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid var(--modern-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    transition: all 0.3s ease;
}

.user-info-panel:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    background: rgba(31, 41, 55, 0.9);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 1.2rem;
    margin-right: 10px;
    box-shadow: 0 2px 8px rgba(var(--bs-primary-rgb), 0.4);
}

.user-details {
    margin-right: 12px;
}

.user-name {
    font-weight: 600;
    line-height: 1.2;
    font-size: 0.9rem;
}

.user-role {
    font-size: 0.75rem;
    color: var(--modern-text-secondary);
    line-height: 1;
}

.btn-logout {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(var(--bs-danger-rgb), 0.1);
    color: var(--bs-danger);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-logout:hover {
    background-color: rgba(var(--bs-danger-rgb), 0.2);
    transform: scale(1.1);
}

/* Card headers and footers */
.card-header {
    background-color: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.25rem 1.5rem;
}

.card-footer {
    background-color: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.25rem 1.5rem;
}

/* Modern button styling */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    transition: all var(--animation-speed) var(--transition-type);
    position: relative;
    overflow: hidden;
    border: none;
    transform: translateZ(0);
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn:active::after {
    width: 300%;
    height: 300%;
}

.btn:active {
    transform: scale(0.97);
}

/* Button glow effects */
.btn-primary:hover {
    box-shadow: var(--glow-primary);
}

.btn-success:hover {
    box-shadow: var(--glow-success);
}

.btn-info:hover {
    box-shadow: var(--glow-info);
}

.btn-warning:hover {
    box-shadow: var(--glow-warning);
}

.btn-danger:hover {
    box-shadow: var(--glow-danger);
}

/* Form controls */
.form-control {
    border-radius: 8px;
    padding: 0.7rem 1rem;
    transition: all var(--animation-speed) var(--transition-type);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.25);
    border-color: rgba(var(--bs-primary-rgb), 0.5);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Glassmorphism cards and effects */
.glass-card {
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-highlight {
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-highlight:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(var(--bs-primary-rgb), 0.1),
        0 0 20px rgba(var(--bs-primary-rgb), 0.2);
}

.highlight-text {
    background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.hover-scale {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.03);
}

.pulse-button {
    position: relative;
    transition: all 0.3s ease;
}

.pulse-button:hover {
    transform: translateY(-2px);
}

/* Shine effect animation */
@keyframes button-shine {
    0% {
        background-position: -100% -100%;
    }
    50% {
        background-position: 150% 150%;
    }
    100% {
        background-position: -100% -100%;
    }
}

/* Pulsing icon */
.pulse-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(var(--bs-primary-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0);
    }
}

/* Feature icon */
.feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Text truncation utilities */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Bottom navigation */
/* Сучасний стиль для нижнього меню навігації */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 15, 30, 0.85);
    display: flex;
    justify-content: center;
    padding: 0.8rem 1rem;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 
        0 10px 35px rgba(0, 0, 0, 0.5), 
        0 0 0 1px rgba(var(--bs-primary-rgb), 0.12), 
        inset 0 0 0 1px rgba(255, 255, 255, 0.05),
        0 0 20px rgba(var(--bs-primary-rgb), 0.15);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 30px;
    width: auto;
    max-width: 95%;
}

/* Неонова тінь для активного меню */
.bottom-nav.has-active {
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.5), 
        0 0 0 1px rgba(var(--bs-primary-rgb), 0.3), 
        inset 0 0 0 1px rgba(255, 255, 255, 0.05),
        0 0 30px rgba(var(--bs-primary-rgb), 0.35);
    background: linear-gradient(
        180deg, 
        rgba(15, 23, 42, 0.9),
        rgba(10, 15, 30, 0.85)
    );
}

/* Елементи меню */
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none !important;
    padding: 0.6rem 1rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    margin: 0 3px;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 10;
    cursor: pointer;
}

/* Градієнтний ефект при наведенні */
.bottom-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(var(--bs-primary-rgb), 0.25), 
        rgba(var(--bs-info-rgb), 0.15),
        rgba(var(--bs-primary-rgb), 0.05)
    );
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 16px;
    z-index: -1;
}

/* Ефект світіння */
.bottom-nav-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 10%;
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(var(--bs-primary-rgb), 0.4), 
        rgba(var(--bs-info-rgb), 0.6), 
        rgba(var(--bs-primary-rgb), 0.4), 
        transparent
    );
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    filter: blur(1px);
}

/* Активація ефектів при наведенні */
.bottom-nav-item:hover::before {
    opacity: 1;
    transform: scale(1);
}

.bottom-nav-item:hover::after,
.bottom-nav-item.active::after {
    opacity: 1;
}

/* Стилі для активного та наведеного елемента */
.bottom-nav-item:hover, 
.bottom-nav-item.active {
    color: white;
    background: linear-gradient(
        135deg, 
        rgba(var(--bs-primary-rgb), 0.15),
        rgba(31, 41, 55, 0.7),
        rgba(var(--bs-info-rgb), 0.15)
    );
    transform: translateY(-8px);
    box-shadow: 
        0 15px 30px -10px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(var(--bs-primary-rgb), 0.6),
        0 5px 15px rgba(var(--bs-primary-rgb), 0.3),
        0 0 30px -5px rgba(var(--bs-primary-rgb), 0.2);
    border-color: rgba(var(--bs-primary-rgb), 0.6);
}

/* Ефект натискання */
.bottom-nav-item:active {
    transform: scale(0.92) translateY(-5px);
    box-shadow: 0 5px 15px -5px rgba(var(--bs-primary-rgb), 0.3);
    transition: all 0.15s ease;
    pointer-events: auto !important;
}

/* Стиль для натиснутого елемента меню */
.bottom-nav-item.clicked {
    animation: click-effect 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes click-effect {
    0% {
        transform: scale(0.92) translateY(-5px);
    }
    40% {
        transform: scale(1.04) translateY(-12px);
        box-shadow: 
            0 25px 35px -15px rgba(0, 0, 0, 0.5),
            0 0 0 1px rgba(var(--bs-primary-rgb), 0.7),
            0 10px 25px rgba(var(--bs-primary-rgb), 0.4),
            0 0 40px -5px rgba(var(--bs-primary-rgb), 0.3);
    }
    100% {
        transform: scale(1) translateY(-8px);
    }
}

/* Іконка елемента навігації */
.bottom-nav-icon {
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: linear-gradient(
        135deg, 
        rgba(var(--bs-primary-rgb), 0.15) 0%, 
        rgba(var(--bs-primary-rgb), 0.05) 100%
    );
    border-radius: 16px;
    padding: 0.5rem;
    position: relative;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform-style: preserve-3d;
    perspective: 800px;
}

/* Внутрішнє світіння для іконки */
.bottom-nav-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at center, 
        rgba(var(--bs-primary-rgb), 0.25) 0%, 
        transparent 70%
    );
    opacity: 0;
    border-radius: inherit;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

/* Тінь для 3D ефекту */
.bottom-nav-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: inherit;
    filter: blur(8px);
    opacity: 0;
    transform: translateZ(-10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -2;
}

/* Активація іконки при наведенні та активному стані */
.bottom-nav-item:hover .bottom-nav-icon,
.bottom-nav-item.active .bottom-nav-icon {
    transform: translateY(-4px) scale(1.15) rotateX(10deg);
    color: white;
    background: linear-gradient(
        135deg, 
        rgba(var(--bs-primary-rgb), 0.35) 0%, 
        rgba(var(--bs-primary-rgb), 0.15) 100%
    );
    box-shadow: 
        0 10px 25px -6px rgba(var(--bs-primary-rgb), 0.45),
        0 6px 16px -10px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(var(--bs-primary-rgb), 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border-color: rgba(var(--bs-primary-rgb), 0.5);
}

/* 3D ефект і світіння при наведенні */
.bottom-nav-item:hover .bottom-nav-icon::before,
.bottom-nav-item.active .bottom-nav-icon::before {
    opacity: 1;
    animation: glow-pulse 2s infinite;
}

.bottom-nav-item:hover .bottom-nav-icon::after,
.bottom-nav-item.active .bottom-nav-icon::after {
    opacity: 0.6;
    transform: translateZ(-15px);
}

@keyframes glow-pulse {
    0% {
        opacity: 0.6;
        transform: scale(0.95);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        opacity: 0.6;
        transform: scale(0.95);
    }
}

/* Індивідуальні кольори для різних пунктів меню */
.bottom-nav-item:nth-child(1) .bottom-nav-icon {
    background: linear-gradient(
        135deg, 
        rgba(var(--bs-primary-rgb), 0.15), 
        rgba(var(--bs-primary-rgb), 0.05)
    );
    border-color: rgba(var(--bs-primary-rgb), 0.15);
}

.bottom-nav-item:nth-child(2) .bottom-nav-icon {
    background: linear-gradient(
        135deg, 
        rgba(var(--bs-info-rgb), 0.15), 
        rgba(var(--bs-info-rgb), 0.05)
    );
    border-color: rgba(var(--bs-info-rgb), 0.15);
}

.bottom-nav-item:nth-child(3) .bottom-nav-icon {
    background: linear-gradient(
        135deg, 
        rgba(var(--bs-success-rgb), 0.15), 
        rgba(var(--bs-success-rgb), 0.05)
    );
    border-color: rgba(var(--bs-success-rgb), 0.15);
}

.bottom-nav-item:nth-child(4) .bottom-nav-icon {
    background: linear-gradient(
        135deg, 
        rgba(var(--bs-warning-rgb), 0.15), 
        rgba(var(--bs-warning-rgb), 0.05)
    );
    border-color: rgba(var(--bs-warning-rgb), 0.15);
}

.bottom-nav-item:nth-child(5) .bottom-nav-icon {
    background: linear-gradient(
        135deg, 
        rgba(var(--bs-danger-rgb), 0.15), 
        rgba(var(--bs-danger-rgb), 0.05)
    );
    border-color: rgba(var(--bs-danger-rgb), 0.15);
}

/* Активний колір та ефекти для кожного пункту меню при наведенні */
.bottom-nav-item:nth-child(1):hover .bottom-nav-icon,
.bottom-nav-item:nth-child(1).active .bottom-nav-icon {
    background: linear-gradient(
        135deg, 
        rgba(var(--bs-primary-rgb), 0.35), 
        rgba(var(--bs-primary-rgb), 0.15)
    );
    box-shadow: 
        0 10px 25px -6px rgba(var(--bs-primary-rgb), 0.45),
        0 6px 16px -8px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(var(--bs-primary-rgb), 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border-color: rgba(var(--bs-primary-rgb), 0.5);
}

.bottom-nav-item:nth-child(1):hover .bottom-nav-icon::before,
.bottom-nav-item:nth-child(1).active .bottom-nav-icon::before {
    background: radial-gradient(
        circle at center, 
        rgba(var(--bs-primary-rgb), 0.25) 0%, 
        transparent 70%
    );
}

.bottom-nav-item:nth-child(2):hover .bottom-nav-icon,
.bottom-nav-item:nth-child(2).active .bottom-nav-icon {
    background: linear-gradient(
        135deg, 
        rgba(var(--bs-info-rgb), 0.35), 
        rgba(var(--bs-info-rgb), 0.15)
    );
    box-shadow: 
        0 10px 25px -6px rgba(var(--bs-info-rgb), 0.45),
        0 6px 16px -8px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(var(--bs-info-rgb), 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border-color: rgba(var(--bs-info-rgb), 0.5);
}

.bottom-nav-item:nth-child(2):hover .bottom-nav-icon::before,
.bottom-nav-item:nth-child(2).active .bottom-nav-icon::before {
    background: radial-gradient(
        circle at center, 
        rgba(var(--bs-info-rgb), 0.25) 0%, 
        transparent 70%
    );
}

.bottom-nav-item:nth-child(3):hover .bottom-nav-icon,
.bottom-nav-item:nth-child(3).active .bottom-nav-icon {
    background: linear-gradient(
        135deg, 
        rgba(var(--bs-success-rgb), 0.35), 
        rgba(var(--bs-success-rgb), 0.15)
    );
    box-shadow: 
        0 10px 25px -6px rgba(var(--bs-success-rgb), 0.45),
        0 6px 16px -8px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(var(--bs-success-rgb), 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border-color: rgba(var(--bs-success-rgb), 0.5);
}

.bottom-nav-item:nth-child(3):hover .bottom-nav-icon::before,
.bottom-nav-item:nth-child(3).active .bottom-nav-icon::before {
    background: radial-gradient(
        circle at center, 
        rgba(var(--bs-success-rgb), 0.25) 0%, 
        transparent 70%
    );
}

.bottom-nav-item:nth-child(4):hover .bottom-nav-icon,
.bottom-nav-item:nth-child(4).active .bottom-nav-icon {
    background: linear-gradient(
        135deg, 
        rgba(var(--bs-warning-rgb), 0.35), 
        rgba(var(--bs-warning-rgb), 0.15)
    );
    box-shadow: 
        0 10px 25px -6px rgba(var(--bs-warning-rgb), 0.45),
        0 6px 16px -8px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(var(--bs-warning-rgb), 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border-color: rgba(var(--bs-warning-rgb), 0.5);
}

.bottom-nav-item:nth-child(4):hover .bottom-nav-icon::before,
.bottom-nav-item:nth-child(4).active .bottom-nav-icon::before {
    background: radial-gradient(
        circle at center, 
        rgba(var(--bs-warning-rgb), 0.25) 0%, 
        transparent 70%
    );
}

.bottom-nav-item:nth-child(5):hover .bottom-nav-icon,
.bottom-nav-item:nth-child(5).active .bottom-nav-icon {
    background: linear-gradient(
        135deg, 
        rgba(var(--bs-danger-rgb), 0.35), 
        rgba(var(--bs-danger-rgb), 0.15)
    );
    box-shadow: 
        0 10px 25px -6px rgba(var(--bs-danger-rgb), 0.45),
        0 6px 16px -8px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(var(--bs-danger-rgb), 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border-color: rgba(var(--bs-danger-rgb), 0.5);
}

.bottom-nav-item:nth-child(5):hover .bottom-nav-icon::before,
.bottom-nav-item:nth-child(5).active .bottom-nav-icon::before {
    background: radial-gradient(
        circle at center, 
        rgba(var(--bs-danger-rgb), 0.25) 0%, 
        transparent 70%
    );
}

/* Текст елемента навігації */
.bottom-nav-text {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 100%;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    opacity: 0.85;
    transition: all 0.3s ease;
    margin-top: 0.35rem;
}

/* Мобільні адаптації */
@media (max-width: 576px) {
    .bottom-nav {
        max-width: 100%;
        width: 100%;
        border-radius: 0;
        bottom: 0;
        left: 0;
        transform: none;
        padding: 0.75rem;
    }
    
    .bottom-nav-item {
        margin: 0 2px;
        padding: 0.5rem 0.6rem;
    }
    
    .bottom-nav-icon {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
    
    .bottom-nav-text {
        font-size: 0.7rem;
    }
}

/* Підсвічування тексту при наведенні */
.bottom-nav-item:hover .bottom-nav-text,
.bottom-nav-item.active .bottom-nav-text {
    opacity: 1;
    transform: translateY(3px);
    background: linear-gradient(
        90deg, 
        rgba(255, 255, 255, 0.9), 
        rgba(255, 255, 255, 0.8)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
    font-weight: 700;
    filter: drop-shadow(0 0 15px rgba(var(--bs-primary-rgb), 0.7));
}

/* Анімація пульсації для активного елемента */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(var(--bs-primary-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0);
    }
}

/* Колірні варіації для тексту в залежності від пункту меню */
.bottom-nav-item:nth-child(1):hover .bottom-nav-text,
.bottom-nav-item:nth-child(1).active .bottom-nav-text {
    background: linear-gradient(
        90deg, 
        rgba(var(--bs-primary-rgb), 1), 
        rgba(var(--bs-primary-rgb), 0.7)
    );
    -webkit-background-clip: text;
    filter: drop-shadow(0 0 15px rgba(var(--bs-primary-rgb), 0.7));
}

.bottom-nav-item:nth-child(2):hover .bottom-nav-text,
.bottom-nav-item:nth-child(2).active .bottom-nav-text {
    background: linear-gradient(
        90deg, 
        rgba(var(--bs-info-rgb), 1), 
        rgba(var(--bs-info-rgb), 0.7)
    );
    -webkit-background-clip: text;
    filter: drop-shadow(0 0 15px rgba(var(--bs-info-rgb), 0.7));
}

.bottom-nav-item:nth-child(3):hover .bottom-nav-text,
.bottom-nav-item:nth-child(3).active .bottom-nav-text {
    background: linear-gradient(
        90deg, 
        rgba(var(--bs-success-rgb), 1), 
        rgba(var(--bs-success-rgb), 0.7)
    );
    -webkit-background-clip: text;
    filter: drop-shadow(0 0 15px rgba(var(--bs-success-rgb), 0.7));
}

.bottom-nav-item:nth-child(4):hover .bottom-nav-text,
.bottom-nav-item:nth-child(4).active .bottom-nav-text {
    background: linear-gradient(
        90deg, 
        rgba(var(--bs-warning-rgb), 1), 
        rgba(var(--bs-warning-rgb), 0.7)
    );
    -webkit-background-clip: text;
    filter: drop-shadow(0 0 15px rgba(var(--bs-warning-rgb), 0.7));
}

.bottom-nav-item:nth-child(5):hover .bottom-nav-text,
.bottom-nav-item:nth-child(5).active .bottom-nav-text {
    background: linear-gradient(
        90deg, 
        rgba(var(--bs-danger-rgb), 1), 
        rgba(var(--bs-danger-rgb), 0.7)
    );
    -webkit-background-clip: text;
    filter: drop-shadow(0 0 15px rgba(var(--bs-danger-rgb), 0.7));
}

/* Додатковий ефект світіння при наведенні на кнопки меню */
.glow-effect {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--bs-primary-rgb), 0.8) 0%, rgba(var(--bs-primary-rgb), 0) 70%);
    opacity: 0;
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
    animation: glow-animation 1s ease-out forwards;
}

@keyframes glow-animation {
    0% {
        opacity: 0;
        width: 5px;
        height: 5px;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
        width: 100px;
        height: 100px;
    }
}

/* Стиль для індикатора сповіщень */
.bottom-nav-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, var(--bs-danger), rgba(var(--bs-danger-rgb), 0.8));
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2), 0 0 0 2px rgba(255, 255, 255, 0.1);
    animation: notification-pulse 2s infinite;
    transform: scale(0);
    animation: notification-appear 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes notification-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--bs-danger-rgb), 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(var(--bs-danger-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--bs-danger-rgb), 0);
    }
}

@keyframes notification-appear {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Badge styling */
.badge {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    border-radius: 50%;
    min-width: 18px;
    min-height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Error page styles */
.error-icon {
    font-size: 4rem;
    color: var(--bs-danger);
    margin-bottom: 1rem;
}

/* Status indicators */
.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.status-up {
    background-color: var(--bs-success);
}

.status-down {
    background-color: var(--bs-danger);
}

.status-degraded {
    background-color: var(--bs-warning);
}

/* Table styling */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    border-color: rgba(255, 255, 255, 0.05);
    padding: 1rem 0.75rem;
}

.table tbody td {
    vertical-align: middle;
    padding: 0.75rem;
    border-color: rgba(255, 255, 255, 0.05);
}

/* Order cards styling */
.order-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s var(--transition-type);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(3px);
}

.order-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    border-color: rgba(var(--bs-primary-rgb), 0.3);
}

.order-card .card-header {
    padding: 1rem 1.5rem;
}

.order-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--bs-light);
}

.order-details i {
    font-size: 1.2rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card content animation */
.card-content-appear {
    animation: fadeInUp 0.5s var(--transition-type);
}

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

/* Toast styling */
.toast {
    border: none;
    background: rgba(31, 41, 55, 0.95);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.toast.animate__fadeInRight {
    animation-duration: 0.5s;
}

.toast-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
}

.toast-body {
    padding: 1rem;
}

/* Calendar styling - modern redesign */
.fc {
    width: 100%;
    --fc-border-color: rgba(255, 255, 255, 0.1);
    --fc-button-bg-color: var(--modern-card-bg);
    --fc-button-border-color: rgba(255, 255, 255, 0.1);
    --fc-button-text-color: var(--modern-text);
    --fc-button-active-bg-color: rgba(var(--bs-primary-rgb), 0.3);
    --fc-button-active-border-color: rgba(var(--bs-primary-rgb), 0.5);
    --fc-button-hover-bg-color: rgba(var(--bs-primary-rgb), 0.15);
    --fc-button-hover-border-color: rgba(var(--bs-primary-rgb), 0.3);
    --fc-today-bg-color: rgba(var(--bs-primary-rgb), 0.08);
    --fc-list-event-hover-bg-color: rgba(var(--bs-primary-rgb), 0.15);
    --fc-event-border-color: transparent;
    --fc-page-bg-color: transparent;
    --fc-neutral-bg-color: rgba(255, 255, 255, 0.03);
    --fc-neutral-text-color: var(--modern-text-secondary);
    --fc-highlight-color: rgba(var(--bs-primary-rgb), 0.1);
}

/* Calendar toolbar */
.fc .fc-toolbar {
    flex-wrap: wrap;
    padding: 0.5rem;
    margin-bottom: 1.5rem !important;
    background: rgba(31, 41, 55, 0.4);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.fc .fc-toolbar-title {
    font-weight: 700;
    font-size: 1.25rem !important;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Calendar buttons */
.fc .fc-button {
    padding: 0.5rem 1rem;
    border-radius: 10px !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(31, 41, 55, 0.7);
}

.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
    background: rgba(var(--bs-primary-rgb), 0.3) !important;
    border-color: rgba(var(--bs-primary-rgb), 0.5) !important;
    box-shadow: 0 0 15px rgba(var(--bs-primary-rgb), 0.3);
}

.fc .fc-button-primary:hover {
    background: rgba(var(--bs-primary-rgb), 0.15);
    border-color: rgba(var(--bs-primary-rgb), 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.fc .fc-button-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Header and cells */
.fc-theme-standard th {
    background-color: rgba(31, 41, 55, 0.6);
    padding: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.8rem;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.fc-theme-standard td {
    border-color: rgba(255, 255, 255, 0.03);
}

.fc-theme-standard .fc-scrollgrid {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.fc-daygrid-day {
    transition: all 0.2s ease;
}

.fc-daygrid-day:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.05);
}

.fc-daygrid-day-number, 
.fc-col-header-cell-cushion {
    color: var(--modern-text);
    text-decoration: none !important;
    padding: 6px 10px;
    font-weight: 500;
}

.fc-daygrid-day-number {
    font-size: 0.9rem;
}

.fc-list-day-text, 
.fc-list-day-side-text {
    text-decoration: none !important;
    color: var(--modern-text);
    font-weight: 600;
}

/* Today highlight */
.fc-day-today {
    background: var(--fc-today-bg-color) !important;
}

.fc-day-today .fc-daygrid-day-number {
    background-color: rgba(var(--bs-primary-rgb), 0.2);
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px;
    font-weight: 700;
}

/* Events styling */
.fc-event {
    border-radius: 8px;
    padding: 3px;
    margin-bottom: 2px;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.fc-event:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.fc-daygrid-event-dot {
    border-radius: 50%;
    width: 8px;
    height: 8px;
    margin-right: 5px;
}

.new-order-event {
    background-color: var(--bs-info);
    border-color: var(--bs-info);
    background-image: linear-gradient(135deg, var(--bs-info), rgba(var(--bs-info-rgb), 0.8));
}

.accepted-order-event {
    background-color: var(--bs-success);
    border-color: var(--bs-success);
    background-image: linear-gradient(135deg, var(--bs-success), rgba(var(--bs-success-rgb), 0.8));
}

/* List view */
.fc-list-table {
    background-color: rgba(31, 41, 55, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
}

.fc-list-day {
    background-color: rgba(31, 41, 55, 0.6) !important;
}

.fc-list-event:hover td {
    background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
}

/* Utilities */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Glass Cards */
.glass-card {
    background: rgba(31, 41, 55, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Form improvements */
.form-floating .form-control {
    background-color: rgba(31, 41, 55, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--modern-text);
}

.form-floating .form-control:focus {
    background-color: rgba(31, 41, 55, 0.8);
    border-color: rgba(var(--bs-primary-rgb), 0.5);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

.form-floating label {
    color: var(--modern-text-secondary);
}

/* Hover scale effect for cards */
.hover-scale {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 
                0 0 0 1px rgba(var(--bs-primary-rgb), 0.2),
                0 8px 20px rgba(var(--bs-primary-rgb), 0.15);
}

/* Card highlight styles */
.card-highlight {
    border: 2px solid rgba(var(--bs-primary-rgb), 0.3);
    position: relative;
    background: linear-gradient(135deg, 
        rgba(var(--bs-primary-rgb), 0.1) 0%, 
        rgba(31, 41, 55, 0.8) 100%);
}

/* Smaller card style */
.card-smaller {
    min-height: auto;
    max-height: 160px;
}

.card-smaller .feature-icon {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
}

.card-smaller .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Tiny card style */
.card-tiny {
    max-height: 110px;
}

.card-tiny .feature-icon {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
}

.card-tiny .btn-sm {
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
}

.card-tiny h6 {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.card-highlight::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(var(--bs-primary-rgb), 0.5),
        rgba(var(--bs-info-rgb), 0.5),
        rgba(var(--bs-success-rgb), 0.5),
        rgba(var(--bs-warning-rgb), 0.5),
        rgba(var(--bs-danger-rgb), 0.5),
        rgba(var(--bs-primary-rgb), 0.5));
    background-size: 400% 400%;
    border-radius: 16px;
    z-index: -1;
    animation: border-animation 8s ease infinite;
}

@keyframes border-animation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.highlight-text {
    background: linear-gradient(90deg, 
        var(--bs-primary), 
        var(--bs-info),
        var(--bs-success),
        var(--bs-primary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-shine 6s linear infinite;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
}

@keyframes text-shine {
    to {
        background-position: 200% center;
    }
}

/* Pulse animation for icons */
.pulse-icon {
    position: relative;
    overflow: visible;
}

.pulse-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: inherit;
    border-radius: inherit;
    z-index: -1;
    animation: pulse-animation 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    opacity: 0;
}

@keyframes pulse-animation {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }
    
    50% {
        opacity: 0.6;
    }
    
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* Pulse animation for buttons */
.pulse-button {
    position: relative;
    overflow: visible;
}

.pulse-button:hover::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: inherit;
    border-radius: inherit;
    z-index: -1;
    animation: pulse-button-animation 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    opacity: 0;
}

@keyframes pulse-button-animation {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }
    
    50% {
        opacity: 0.4;
    }
    
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .table-responsive {
        margin: 0 -0.75rem;
    }
    
    .bottom-nav-text {
        display: none;
    }
    
    .bottom-nav-icon {
        font-size: 1.6rem;
        margin-bottom: 0;
    }
    
    .bottom-nav-item {
        padding: 0.5rem;
        margin: 0 3px;
    }
    
    .user-info-panel {
        top: 10px;
        right: 10px;
        padding: 6px 10px;
    }
    
    .user-details {
        display: none;
    }
    
    /* Calendar mobile optimizations */
    .fc .fc-toolbar {
        padding: 0.5rem;
        margin-bottom: 1rem !important;
    }
    
    .fc .fc-toolbar-title {
        font-size: 1rem !important;
    }
    
    .fc .fc-button {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
    }
}