/* Дашборд - дополнительные стили */

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(123, 47, 242, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(123, 47, 242, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(123, 47, 242, 0);
    }
}

/* Счетчики с анимацией */
.stat-value {
    position: relative;
}

.stat-value::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.5s ease;
}

.stat-card:hover .stat-value::after {
    width: 100%;
}

/* Прогресс бары */
.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--background-gray);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 3px;
    width: 0;
    transition: width 1s ease;
}

/* Уведомления с типами */
.notification-item.unread {
    background: rgba(123, 47, 242, 0.05);
    border-left: 3px solid var(--primary-color);
    padding-left: 12px;
}

.notification-item.unread .notification-icon {
    animation: pulse 2s infinite;
}

/* Календарь */
.fc-event {
    border-radius: 6px !important;
    border: none !important;
    font-weight: 600 !important;
    padding: 2px 6px !important;
}

.fc-event:hover {
    transform: scale(1.05);
    z-index: 999;
}

.fc-day-today {
    background: rgba(123, 47, 242, 0.1) !important;
}

.fc-button-primary {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.fc-button-primary:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

/* Быстрая помощь */
.help-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.help-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.help-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(123, 47, 242, 0.4);
}

/* Улучшенные карточки */
.enhanced-card {
    position: relative;
    overflow: hidden;
}

.enhanced-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.enhanced-card:hover::before {
    left: 100%;
}

/* Статусы заказов с улучшенной типографикой */
.order-status {
    position: relative;
    overflow: hidden;
}

.order-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    opacity: 0.1;
    z-index: -1;
}

/* Микро-анимации */
.action-btn {
    position: relative;
    overflow: hidden;
}

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

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

/* Отзывчивые градиенты */
.gradient-bg-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.gradient-bg-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.gradient-bg-3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.gradient-bg-4 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.gradient-bg-5 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }

/* Адаптивность для очень маленьких экранов */
@media (max-width: 480px) {
.welcome-section {
        padding: 20px;
    text-align: center;
}

.welcome-title {
        font-size: 1.8rem;
    }
    
    .welcome-subtitle {
        font-size: 1rem;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-value {
        font-size: 1.8rem;
    }
    
    .action-btn {
        padding: 15px;
        min-height: 80px;
    }
    
    .action-btn i {
        font-size: 1.5rem;
    }
}

/* Темная тема (опционально) */
@media (prefers-color-scheme: dark) {
    :root {
        --background-light: #1a202c;
        --background-gray: #2d3748;
        --text-primary: #f7fafc;
        --text-secondary: #cbd5e0;
        --border-color: #4a5568;
    }
    
    .stat-card, .quick-actions, .active-orders, .notifications-panel, .calendar-container {
        background: var(--background-light);
        border-color: var(--border-color);
    }
    
    .calendar-modal-content {
        background: var(--background-light);
        color: var(--text-primary);
    }
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 8px;
}

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

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

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

/* Загрузочные состояния */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(123, 47, 242, 0.1), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Дополнительные утилиты */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--primary-color), var(--primary-light)) 1;
} 