@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
    --secondary-gradient: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    --accent-gradient: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

body {
    font-family: 'Outfit', sans-serif;
    background: #f0f4f8;
    color: #1e293b;
    overflow-x: hidden;
}

/* --- Utilities --- */
.gradient-bg {
    background: var(--primary-gradient);
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
}

/* --- Dashboard Card --- */
.dashboard-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Main Stats Cards */
.main-card-1 {
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
}

.main-card-2 {
    background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(219, 39, 119, 0.3);
}

.main-card-3 {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

/* --- Layout --- */
.sidebar {
    width: 280px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.02);
    height: 100vh;
    position: sticky;
    top: 0;
    border-right: 1px solid #f1f5f9;
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        transform: translateX(-100%);
        z-index: 50;
    }

    .sidebar.open {
        transform: translateX(0);
    }
}

.overlay {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

/* --- Circular Progress --- */
.circular-progress {
    position: relative;
    width: 60px;
    height: 60px;
}

.circular-progress svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.circular-progress circle {
    fill: none;
    stroke-width: 5;
}

.circular-progress .bg-circle {
    stroke: rgba(255, 255, 255, 0.2);
}

.circular-progress .progress-circle {
    stroke: white;
    stroke-linecap: round;
    stroke-dasharray: 100;
    transition: stroke-dashoffset 0.8s ease-out;
}

.circular-progress .percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
}

/* --- Buttons --- */
.btn-glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    transition: all 0.2s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.5s ease-out forwards;
}

.animate-pulse-slow {
    animation: pulse 3s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* --- Tables --- */
.withdraw-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1rem;
}

.withdraw-table th {
    text-align: left;
    padding: 1rem;
    color: #64748b;
    font-weight: 600;
    font-size: 0.875rem;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.withdraw-table td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    font-size: 0.95rem;
    vertical-align: middle;
}

.withdraw-table tr:hover td {
    background-color: #f8fafc;
}

.withdraw-table tr:last-child td {
    border-bottom: none;
}

/* 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: capitalize;
}

.status-pending {
    background-color: #fff7ed;
    color: #c2410c;
}

.status-completed,
.status-approved {
    background-color: #f0fdf4;
    color: #15803d;
}

.status-rejected {
    background-color: #fef2f2;
    color: #b91c1c;
}