/* Multi-Business Manager - Custom Styles */

:root {
    --color-hypno: #9333ea;
    --color-beaute: #ec4899;
    --color-services: #3b82f6;
    --color-primary: #6366f1;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
}

/* Smooth transitions */
* {
    transition: all 0.2s ease;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Business Cards Animations */
.business-card {
    position: relative;
    overflow: hidden;
}

.business-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 ease;
}

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

/* Stat Cards Gradients */
.stat-card-hypno {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
}

.stat-card-beaute {
    background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
}

.stat-card-services {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.stat-card-success {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

/* Navigation Active State */
.nav-item.active {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    border-left: 4px solid var(--color-primary);
}

/* Button Hover Effects */
button {
    position: relative;
    overflow: hidden;
}

button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:hover::after {
    width: 300px;
    height: 300px;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Card Hover Effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Badge Animations */
.badge-pulse {
    animation: badge-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

/* Client Card Hover */
.client-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.client-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -4px rgba(99, 102, 241, 0.3);
}

/* Appointment Card Border Animation */
.appointment-card {
    position: relative;
    overflow: hidden;
}

.appointment-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--color-primary), var(--color-success));
    transition: height 0.3s ease;
}

.appointment-card:hover::before {
    height: 100%;
}

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

.notification {
    animation: slideIn 0.3s ease;
}

/* Modal Overlay */
.modal-overlay {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

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

/* Form Input Focus */
input:focus, select:focus, textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Status Badges */
.status-confirmed {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.status-pending {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.status-cancelled {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}

/* Progress Bar */
.progress-bar {
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-success) 100%);
    height: 4px;
    border-radius: 2px;
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Quick Action Buttons */
.quick-action {
    transition: all 0.3s ease;
}

.quick-action:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
}

/* Sidebar Shadow */
#sidebar {
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.05);
}

/* Header Shadow on Scroll */
header.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Empty State */
.empty-state {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

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

/* Stats Counter Animation */
.stat-number {
    display: inline-block;
    animation: countUp 1s ease-out;
}

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

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    #sidebar {
        position: fixed;
        left: -100%;
        z-index: 100;
        transition: left 0.3s ease;
    }
    
    #sidebar.open {
        left: 0;
    }
    
    .business-card {
        margin-bottom: 1rem;
    }
    
    .quick-action {
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    #sidebar, header, button {
        display: none;
    }
    
    main {
        margin-left: 0;
    }
    
    .no-print {
        display: none;
    }
}

/* Accessibility */
*:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Dark Mode Support (Future) */
@media (prefers-color-scheme: dark) {
    /* Styles for dark mode can be added here */
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

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

/* Tag Pills */
.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    color: var(--color-primary);
    transition: all 0.2s ease;
}

.tag-pill:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
    transform: translateY(-1px);
}

/* Success Checkmark Animation */
@keyframes checkmark {
    0% {
        stroke-dashoffset: 50;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

.success-checkmark {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: checkmark 0.5s ease forwards;
}