/* Live Base Network Donation Dashboard - Custom CSS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #2e6ae8 0%, #0042a2 100%);
    color: #111827;
    min-height: 100vh;
}

.main-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    min-height: 100vh;
}

.card {
    background-color: white;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(10px);
}

.card-gradient {
    background: linear-gradient(135deg, #2e6ae8 0%, #0042a2 100%);
    color: white;
    border: none;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

.button:disabled {
    pointer-events: none;
    opacity: 0.5;
}

.button-primary {
    background: linear-gradient(135deg, #2e6ae8 0%, #0042a2 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    height: 3rem;
    box-shadow: 0 4px 15px 0 rgba(46, 106, 232, 0.3);
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(46, 106, 232, 0.4);
}

.button-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    height: 3rem;
    box-shadow: 0 4px 15px 0 rgba(16, 185, 129, 0.3);
}

.button-ghost {
    background-color: transparent;
    color: #6b7280;
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
}

.button-ghost:hover {
    background-color: #f9fafb;
    color: #374151;
}

.input {
    display: flex;
    height: 3rem;
    width: 100%;
    border-radius: 0.5rem;
    border: 2px solid #e5e7eb;
    background-color: white;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #111827;
    outline: none;
    transition: all 0.3s ease;
}

.input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.input::placeholder {
    color: #9ca3af;
}

.select {
    display: flex;
    height: 3rem;
    width: 100%;
    align-items: center;
    border-radius: 0.5rem;
    border: 2px solid #e5e7eb;
    background-color: white;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #111827;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.live-indicator {
    animation: pulse-live 2s infinite;
    background: #10b981;
    border-radius: 50%;
    width: 12px;
    height: 12px;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.skeleton {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    border-radius: 0.5rem;
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    z-index: 50;
    max-width: 420px;
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.toast-success { 
    background: linear-gradient(135deg, #10b981 0%, #059669 100%); 
    color: white; 
}
.toast-error { 
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); 
    color: white; 
}

.loading-spinner {
    animation: spin 1s linear infinite;
    border-color: #667eea;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-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;
}

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

.transaction-row {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.transaction-row:hover {
    background-color: #f8fafc;
    border-left-color: #667eea;
    transform: translateX(4px);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.status-success {
    background-color: #d1fae5;
    color: #065f46;
}

.status-live {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 5px rgba(16, 185, 129, 0.3); }
    to { box-shadow: 0 0 20px rgba(16, 185, 129, 0.6); }
}

/* Custom Progress Bar Styles */
.progress2 {
    padding: 6px;
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.25);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25), 0 1px rgba(255, 255, 255, 0.08);
}

.progress-bar2 {
    height: 18px;
    border-radius: 30px;
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05));
    transition: 0.4s linear;
    transition-property: width, background-color;
    background-color: #007aff;
}

/* Responsive */
@media (max-width: 640px) {
    .input, .select { height: 3.5rem; font-size: 1rem; }
    .button { height: 3.5rem; padding: 0.875rem 1.5rem; }
}