/* Fund Tracker - Custom Styles */

:root {
    --color-opatrny: #06b6d4;
    --color-odvazny: #10b981;
    --color-bohatstvi: #8b5cf6;
    --bg-gradient: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
}

body {
    background: var(--bg-gradient);
    min-height: 100vh;
}

/* Navbar */
.navbar-brand {
    font-size: 1.25rem;
}

/* Cards */
.card {
    background-color: rgba(33, 37, 41, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Icon Circle */
.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fund Colors */
.fund-opatrny { color: var(--color-opatrny); }
.fund-odvazny { color: var(--color-odvazny); }
.fund-bohatstvi { color: var(--color-bohatstvi); }

.bg-fund-opatrny { background-color: var(--color-opatrny) !important; }
.bg-fund-odvazny { background-color: var(--color-odvazny) !important; }
.bg-fund-bohatstvi { background-color: var(--color-bohatstvi) !important; }

.border-fund-opatrny { border-color: var(--color-opatrny) !important; }
.border-fund-odvazny { border-color: var(--color-odvazny) !important; }
.border-fund-bohatstvi { border-color: var(--color-bohatstvi) !important; }

/* Fund Card Hover */
.fund-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.fund-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Profit/Loss Colors */
.text-profit { color: #10b981 !important; }
.text-loss { color: #ef4444 !important; }
.bg-profit { background-color: rgba(16, 185, 129, 0.15) !important; }
.bg-loss { background-color: rgba(239, 68, 68, 0.15) !important; }

/* Upload Zone */
.upload-zone {
    border: 2px dashed rgba(255, 255, 255, 0.2) !important;
    background-color: rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    cursor: pointer;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--color-opatrny) !important;
    background-color: rgba(6, 182, 212, 0.1);
}

/* Table Styles */
.table-dark {
    --bs-table-bg: transparent;
}

.table-dark thead th {
    background-color: rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

/* Chart Container */
#portfolioChart {
    min-height: 350px;
    max-height: 450px;
}

/* Tab Styles */
.nav-tabs .nav-link {
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 0.75rem 1.5rem;
}

.nav-tabs .nav-link:hover {
    color: rgba(255, 255, 255, 0.9);
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-tabs .nav-link.active {
    background-color: rgba(6, 182, 212, 0.2);
    color: var(--color-opatrny);
    border-bottom: 2px solid var(--color-opatrny);
}

/* Badge Animation */
.badge {
    transition: transform 0.2s;
}

.badge:hover {
    transform: scale(1.05);
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

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

/* Stat Card */
.stat-card {
    padding: 1.5rem;
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .display-6 {
        font-size: 1.5rem;
    }
    
    .icon-circle {
        width: 45px;
        height: 45px;
    }
    
    .icon-circle i {
        font-size: 1.25rem !important;
    }
}

/* List Group */
.list-group-item {
    background-color: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Alert Styles */
.alert {
    border: none;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

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

.alert-info {
    background-color: rgba(6, 182, 212, 0.2);
    color: #06b6d4;
}

/* Progress Bar */
.progress {
    background-color: rgba(0, 0, 0, 0.3);
}
