/* Global Styles for REI N TASYA Wedding Planner Dashboard */
:root {
    --primary-red: #DC2626;
    --dark-900: #0F172A;
    --dark-800: #1E293B;
    --dark-700: #334155;
    --dark-600: #475569;
    --accent-cyan: #06B6D4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-900);
    color: #F1F5F9;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-800);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--dark-600);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-red);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.pulse-subtle {
    animation: pulseSubtle 2s infinite;
}

@keyframes pulseSubtle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Card Hover Effects */
.hover-card {
    transition: all 0.2s ease;
}

.hover-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-paid {
    background-color: rgba(5, 150, 105, 0.2);
    color: #10B981;
}

.status-partial {
    background-color: rgba(245, 158, 11, 0.2);
    color: #F59E0B;
}

.status-unpaid {
    background-color: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

.status-pending {
    background-color: rgba(100, 116, 139, 0.2);
    color: #64748B;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 8px;
    background-color: var(--dark-700);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--dark-600);
    border-top-color: var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 40;
    display: none;
}

.mobile-overlay.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(90deg, var(--primary-red), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(var(--dark-800), var(--dark-800)) padding-box,
                linear-gradient(90deg, var(--primary-red), var(--accent-cyan)) border-box;
}

.shadow-glow {
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.2);
}

/* Responsive Table */
@media (max-width: 768px) {
    .responsive-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}