@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #DE3163;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #FAFAFA;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Fira Sans', sans-serif;
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
}

/* LEFT NAVIGATION */
.sidebar-nav {
    width: 80px;
    background-color: #fff;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
    width: 100%;
    color: var(--text-light);
    font-size: 11px;
    transition: all 0.2s ease;
    cursor: pointer;
    border-left: 3px solid transparent;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    margin-bottom: 5px;
    fill: currentColor;
}

.nav-item:hover {
    color: var(--primary);
    background-color: #fff5f7;
}

.nav-item.active {
    color: var(--primary);
    background-color: #fff5f7;
    border-left: 3px solid var(--primary);
    font-weight: 600;
}

/* PROFILE SIDEBAR */
.sidebar-profile {
    width: 320px;
    background: linear-gradient(to bottom, #bd18b8, var(--primary));
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px 20px;
    box-sizing: border-box;
    text-align: center;
    position: fixed;
    height: 100vh;
    left: 80px;
    top: 0;
    z-index: 90;
}

.profile-img-container {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.4);
    padding: 5px;
    margin-bottom: 20px;
    position: relative;
}

.profile-img-container::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 50%;
    border: 1px dotted rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-name {
    font-size: 32px;
    font-weight: 700;
    margin: 10px 0 5px;
}

.profile-dates {
    font-size: 14px;
    font-weight: 300;
    margin-bottom: 30px;
}

.btn-outline {
    border: 1px solid white;
    border-radius: 25px;
    padding: 12px 20px;
    width: 100%;
    max-width: 260px;
    margin-bottom: 15px;
    color: white;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s, color 0.3s;
    text-align: center;
    display: inline-block;
    box-sizing: border-box;
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
}

.sidebar-footer {
    margin-top: auto;
    font-size: 10px;
    font-weight: 300;
}

/* MAIN CONTENT */
.main-content {
    margin-left: 400px;
    /* 80 + 320 */
    flex-grow: 1;
    min-height: 100vh;
    background-color: var(--bg-light);
    box-sizing: border-box;
    width: calc(100% - 400px);
}

.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 40px;
}

h1.page-title {
    color: var(--primary);
    font-size: 36px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 30px;
}

.text-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.text-content p {
    margin-bottom: 20px;
}

/* COUNTDOWN CARD */
.countdown-card {
    background-color: #111827;
    border-radius: 15px;
    padding: 40px;
    color: white;
    text-align: center;
    margin-top: 50px;
    background-image: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.countdown-card h3 {
    font-size: 24px;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 30px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.time-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px 20px;
    min-width: 80px;
}

.time-val {
    font-size: 36px;
    font-weight: 700;
    color: #FCD34D;
    line-height: 1;
    margin-bottom: 5px;
}

.time-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* COUNTDOWN TOGGLE SWITCH */
.countdown-toggle {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.toggle-switch {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.toggle-label {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.toggle-label.active {
    opacity: 1;
    color: #FCD34D;
}

.toggle-slider {
    position: relative;
    width: 48px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    transition: background 0.3s;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

.toggle-switch input:checked+.toggle-slider {
    background: var(--primary);
}

.toggle-switch input:checked+.toggle-slider::after {
    transform: translateX(24px);
}

.toggle-switch input {
    display: none;
}

/* Donations nav - hidden on desktop, shown on mobile only */
.nav-item.mobile-only {
    display: none;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .content-wrapper {
        padding: 40px 30px;
    }
}

@media (max-width: 992px) {
    .sidebar-profile {
        display: none;
    }

    .main-content {
        margin-left: 80px;
        width: calc(100% - 80px);
    }
}

@media (max-width: 768px) {
    .sidebar-nav {
        width: 100%;
        height: auto;
        flex-direction: row;
        flex-wrap: nowrap;
        top: auto;
        bottom: 0;
        border-right: none;
        border-top: 1px solid #eee;
        padding: 0 0 4px 0;
        /* padding for scrollbar */
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        z-index: 1000;
        background-color: #fff;
    }

    /* Scroll Indicator Styling */
    .sidebar-nav::-webkit-scrollbar {
        height: 4px;
    }

    .sidebar-nav::-webkit-scrollbar-track {
        background: #f5f5f5;
    }

    .sidebar-nav::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 4px;
    }

    .nav-item {
        padding: 10px 5px;
        flex: 0 0 auto;
        width: 28%;
        /* Shows roughly 3.5 items */
        min-width: 80px;
        box-sizing: border-box;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .nav-item.active {
        border-left: none;
        border-bottom: 3px solid transparent;
        background-color: #fff5f7;
    }

    .nav-item.mobile-only {
        display: flex;
    }

    .nav-item svg {
        width: 22px;
        height: 22px;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding-bottom: 90px;
        /* space for single-row bottom nav */
    }

    .content-wrapper {
        padding: 20px 15px;
    }

    .countdown-timer {
        flex-direction: column;
        align-items: center;
    }

    .time-box {
        width: 100%;
        max-width: 200px;
        margin-bottom: 10px;
    }

    h1.page-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
}