@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --bg-color: #0A0A0A;
    --accent-gold: #FFB300;
    --accent-blue: #00E5FF;
    --text-color: #E0E0E0;
    --folder-bg: rgba(255, 255, 255, 0.03);
    --folder-border: rgba(255, 255, 255, 0.08);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'JetBrains Mono', monospace;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .inter-font {
    font-family: 'Inter', sans-serif;
}

/* Background Ambient Waves */
.bg-waves {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    opacity: 0.15;
    background: radial-gradient(circle at center, rgba(0, 229, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.bg-waves::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 200%; height: 200%;
    background: repeating-radial-gradient(
        circle,
        transparent,
        transparent 40px,
        rgba(255, 179, 0, 0.05) 41px,
        rgba(255, 179, 0, 0.05) 42px
    );
    animation: pulseWaves 20s infinite linear;
}

@keyframes pulseWaves {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--folder-bg);
    border: 1px solid var(--folder-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Folders Grid */
.folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

.folder-box {
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    padding: 1rem;
    overflow: hidden;
    border: 1px solid var(--folder-border);
    opacity: 0;
    transform: translateY(20px);
}

.folder-box.visible {
    opacity: 1;
    transform: translateY(0);
}

.folder-box:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 229, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 229, 255, 0.2);
}

.folder-box.past {
    opacity: 0.6;
}

.folder-box.past.visible {
    opacity: 0.6;
}

.folder-box.past.visible:hover {
    opacity: 1;
}

.folder-box.active {
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.3), inset 0 0 15px rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.6);
    background: rgba(0, 229, 255, 0.05);
}

.folder-box.active i {
    animation: pulseIcon 2s infinite;
}

@keyframes pulseIcon {
    0% { transform: scale(1); filter: drop-shadow(0 0 0px var(--accent-blue)); }
    50% { transform: scale(1.2); filter: drop-shadow(0 0 10px var(--accent-blue)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 0px var(--accent-blue)); }
}

.folder-box.future {
    background: transparent;
    border: 1px dashed var(--folder-border);
    cursor: not-allowed;
    opacity: 0.2;
}

.folder-box.future.visible {
    opacity: 0.2;
}

.folder-box.future.visible:hover {
    opacity: 0.7;
    border-style: solid;
}

.folder-day-num {
    font-size: 2.8rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    background: linear-gradient(180deg, #fff 0%, #444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.3rem;
}

.folder-box.active .folder-day-num {
    background: linear-gradient(180deg, #fff 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.folder-date {
    font-size: 0.85rem;
    color: #777;
    font-family: 'JetBrains Mono', monospace;
}

.folder-status {
    margin-top: 0.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.folder-box.past .folder-status { color: #888; }
.folder-box.active .folder-status { color: var(--accent-blue); font-weight: bold; }
.folder-box.future .folder-status { color: #555; }

/* Tooltip */
.tooltip-data {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: all 0.3s;
    background: #000;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    pointer-events: none;
}

.folder-box:hover .tooltip-data {
    opacity: 1;
    bottom: 10px;
}

/* Modals */
.custom-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 1000;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.custom-modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-color);
    border: 1px solid var(--folder-border);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-btn {
    position: absolute;
    top: 1rem; right: 1.5rem;
    font-size: 1.5rem;
    color: #888;
    cursor: pointer;
    background: none;
    border: none;
}

.close-btn:hover {
    color: #fff;
}

/* Visualizer */
#audio-visualizer {
    width: 100%;
    height: 80px;
    background: #000;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--folder-border);
}

/* Form Elements */
.custom-input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-family: inherit;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.custom-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(0, 229, 255, 0.05);
}

.btn-primary {
    background: linear-gradient(45deg, #0088cc, var(--accent-blue));
    color: #000;
    font-weight: bold;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
    width: 100%;
}

.btn-primary:hover {
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
    transform: translateY(-2px);
}

.btn-record {
    background: transparent;
    border: 2px solid #ff4444;
    color: #ff4444;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-record.recording {
    background: rgba(255, 68, 68, 0.2);
    animation: recordPulse 1s infinite;
}

@keyframes recordPulse {
    0% { box-shadow: 0 0 0 0 rgba(255,68,68,0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255,68,68,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,68,68,0); }
}

/* Special Thanks Ranks */
.entry-card {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.entry-card.rank-1 {
    border: 2px solid var(--accent-gold);
    background: rgba(255, 179, 0, 0.05);
    box-shadow: 0 0 15px rgba(255, 179, 0, 0.2);
    position: relative;
    overflow: hidden;
}

/* Particle effect pseudo-element for rank-1 */
.entry-card.rank-1::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,179,0,0.1) 0%, transparent 60%);
    animation: rotateParticles 10s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes rotateParticles {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.entry-card.rank-2 {
    border: 2px solid #C0C0C0;
    background: rgba(192, 192, 192, 0.05);
    box-shadow: 0 0 10px rgba(192, 192, 192, 0.15);
}

.entry-card.rank-3 {
    border: 2px solid #CD7F32;
    background: rgba(205, 127, 50, 0.05);
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.15);
}

.entry-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
    z-index: 1;
}

.entry-avatar.firm-avatar {
    border-radius: 8px;
    border: 2px solid var(--accent-blue);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
    overflow: hidden;
}

.entry-avatar.firm-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.entry-details {
    flex: 1;
    z-index: 1;
}

.entry-amount {
    font-weight: bold;
    color: var(--accent-gold);
}

.audio-player {
    width: 100%;
    height: 30px;
    outline: none;
    z-index: 1;
}

audio::-webkit-media-controls-panel {
    background-color: rgba(255, 255, 255, 0.1);
}
audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
    color: #fff;
}

/* Navbar */
nav {
    border-bottom: 1px solid var(--folder-border);
}

.nav-link {
    color: var(--text-color);
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--accent-gold);
}

/* Custom Audio Player */
.custom-audio-player {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 229, 255, 0.2);
    padding: 8px 12px;
    border-radius: 50px;
    width: 100%;
    max-width: 400px;
    margin-top: 8px;
}
.custom-audio-player.locked {
    opacity: 0.5;
    pointer-events: none;
    border-color: rgba(255, 255, 255, 0.1);
}
.custom-audio-player .play-btn {
    background: rgba(0, 229, 255, 0.1);
    color: #00E5FF;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}
.custom-audio-player:not(.locked) .play-btn:hover {
    background: #00E5FF;
    color: #000;
    transform: scale(1.1);
}
.custom-audio-player .progress-wrapper {
    flex-grow: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.custom-audio-player .progress-fill {
    height: 100%;
    background: #00E5FF;
    width: 0%;
    border-radius: 10px;
    transition: width 0.1s linear;
}
.custom-audio-player .time-display {
    font-size: 0.75rem;
    color: #aaa;
    min-width: 75px;
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
}
/* Stats Panel */
.stats-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 179, 0, 0.2);
    transform: translateY(-5px);
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-gold);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* Search Bar */
.search-wrapper {
    max-width: 500px;
    margin: 0 auto 30px auto;
    position: relative;
}

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 15px 25px 15px 50px;
    border-radius: 50px;
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s;
    outline: none;
    -webkit-appearance: none;
}

.search-input:focus {
    border-color: var(--accent-blue);
    background: rgba(0, 229, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #444;
    font-size: 1.1rem;
}

/* Particle Background */
#particles-js {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    opacity: 0.1;
    pointer-events: none;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% { transform: translateY(0); opacity: 0; }
    20% { opacity: 0.15; }
    80% { opacity: 0.15; }
    100% { transform: translateY(-100vh); opacity: 0; }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .stats-panel {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin: 20px 0;
    }
    .stat-card {
        padding: 15px 10px;
        border-radius: 15px;
    }
    .stat-value {
        font-size: 1.4rem;
    }
    .stat-label {
        font-size: 0.6rem;
        letter-spacing: 1px;
    }
    .search-wrapper {
        margin: 0 5px 25px 5px;
    }
    .search-input {
        padding: 12px 20px 12px 45px;
        font-size: 0.85rem;
    }
    .search-icon {
        left: 15px;
        font-size: 1rem;
    }
}
