/* Custom styles for GSSUC */

/* Dark theme color palette */
:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;

    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-tertiary: #94a3b8;

    --accent-primary: #3b82f6;
    --accent-hover: #60a5fa;

    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #60a5fa;

    --border-color: rgba(51, 65, 85, 0.5);
}

/* Stat cards with semi-transparent background */
.stat-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.2s;
}

.stat-card:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(51, 65, 85, 0.8);
}

/* Status indicators with glow effect */
.status-online {
    background: var(--success);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.status-offline {
    background: var(--danger);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

/* Glassmorphism effect for cards */
.glass-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 5px;
}

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

/* Table hover effect */
table tbody tr {
    transition: background-color 0.15s ease;
}

/* Loading spinner */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Fade in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Pulse animation for status indicators */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

/* Code blocks */
code {
    font-family: 'Courier New', Courier, monospace;
}

/* Links */
a {
    transition: color 0.15s ease;
}

/* Buttons */
button {
    transition: all 0.15s ease;
}

button:active {
    transform: scale(0.98);
}

/* Modal backdrop */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

/* Coin icon fallback */
img[alt*="coin"] {
    object-fit: cover;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .stat-card {
        padding: 1rem;
    }

    table {
        font-size: 0.875rem;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Utilities for text colors */
.text-coin-dgb { color: #006ad2; }
.text-coin-btc { color: #f7931a; }
.text-coin-bch { color: #8dc351; }
.text-coin-ltc { color: #345d9d; }

/* Badge styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

.badge-success {
    background-color: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

.badge-warning {
    background-color: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.badge-danger {
    background-color: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.badge-info {
    background-color: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}
