/* Custom styles for 橙云 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --focus-gradient: linear-gradient(white, white), linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
}

/* Button scaling effect */
.btn-premium {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-premium:hover {
    transform: scale(1.05);
}

/* Card shadow transition */
.card-premium {
    transition: all 0.3s ease;
}

.card-premium:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Gradient border on focus */
.input-premium {
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.input-premium:focus {
    border: 1px solid transparent;
    background-image: var(--focus-gradient);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Sidebar styles */
.sidebar-link {
    transition: all 0.2s ease;
}

.sidebar-link.active {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-right: 4px solid #3b82f6;
}

/* Glassmorphism effects */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Modal System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.modal-content {
    background: white;
    border-radius: 24px;
    width: 90%;
    max-width: 440px;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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

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

.toast-entrance {
    animation: slideInRight 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-exit {
    animation: fadeOut 0.3s ease forwards;
}