/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;700&family=Rock+Salt&display=swap');
@font-face {
    font-family: 'Iosevka';
    src: url('../fonts/Iosevka-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Iosevka';
    src: url('../fonts/Iosevka-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
/* Custom properties */
:root{
    --light-color: #fff;
    --dark-color: #171721;
    --dark-color-lighter: #7E8299;
    --body-background-color: #202028;
    --border-bottom-color: rgba(255,255,255,.05);
    --transparent-button-color: rgba(255,255,255,.1);
    --font-size-small: 1.4rem;
    --font-size-normal: 1.6rem;
    --font-size-medium: 2rem;
    --font-size-large: 2.4rem;
    --font-family: 'Poppins', sans-serif;
    --margin-small: 1rem;
    --margin-medium: 1.5rem;
    --gap-small: 1rem;
    --gap-medium: 2.5rem;
}

.theme-light{
    --light-color: #171721;
    --dark-color: #fff;
    --dark-color-lighter: #7E8299;
    --body-background-color: #eef0f8;
    --border-bottom-color: rgba(23,23,23,.05);
    --transparent-button-color: var(--accent-color);
}
/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: #fff;
    color: var(--light-color);
    line-height: 1.6;
}

/* Reusable classes */

/* Floating background image */

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-bottom: none;
    z-index: 1000;
    padding: 1rem 0;
}

.nav {
    width: 100%;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    padding-left: 2rem;
}

.nav__logo h2 {
    font-size: var(--font-size-large);
    font-weight: bold;
    color: #111;
    cursor: pointer;
    transition: color 0.3s ease;
    font-family: 'Iosevka', monospace !important;
}

.nav__logo h2:hover {
    color: #111;
}

.nav__buttons {
    display: flex;
    gap: var(--gap-small);
    align-items: center;
    padding-right: 2rem;
}

.nav__btn {
    background: transparent;
    border: none;
    color: #111;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: var(--font-size-small);
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    font-family: var(--font-family);
}

.nav__btn:hover:not(.nav__btn--active) {
    background: linear-gradient(135deg, rgba(229,115,198,0.25) 0%, rgba(179,198,255,0.25) 60%, rgba(247,227,124,0.25) 100%);
    color: #111;
    border-radius: 2.5rem;
}

.nav__btn--active:hover {
    /* No hover effect for active nav button */
    background: linear-gradient(135deg, #e573c6 0%, #b3c6ff 60%, #f7e37c 100%);
    color: #111;
}

.nav__btn:active {
    background: #e0e0e0;
    color: #000;
}

.nav__btn, .nav__btn:visited, .nav__btn:active {
    text-decoration: none;
}

.nav, .nav__logo h2, .nav__btn {
    font-family: 'Iosevka', monospace !important;
}

.nav__btn-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.nav__btn--active {
    background: linear-gradient(135deg, #e573c6 0%, #b3c6ff 60%, #f7e37c 100%);
    color: #111;
    border: none;
    border-radius: 2.5rem;
    font-size: 3rem;
    font-weight: bold;
    padding: 0.7em 1.5em;
    position: relative;
    z-index: 1;
    margin-bottom: 0.2em;
    letter-spacing: 0.05em;
}

.nav__btn-comment {
    font-family: 'Iosevka', monospace;
    font-size: 0.9rem;
    color: #111;
    background: #fff;
    border-radius: 0 0 1.5rem 1.5rem;
    padding: 0.1em 1em 0.2em 1em;
    margin-top: -0.5em;
    border: 2px solid #111;
    border-top: none;
    text-align: center;
    min-width: 120px;
    position: relative;
    z-index: 0;
}

/* JavaScript styles */

/* Welcome message */

/* Management area */

/* Footer */

/* Scrollbar */

/* Media queries */
@media screen and (min-width: 768px) {
    .nav__logo {
        padding-left: 3rem;
    }
    .nav__buttons {
        gap: var(--gap-medium);
        padding-right: 3rem;
    }
    .nav__btn {
        padding: 1rem 2rem;
        font-size: var(--font-size-normal);
    }
}

@media screen and (min-width: 1024px) {
    .nav__logo {
        padding-left: 4rem;
    }
    .nav__buttons {
        padding-right: 4rem;
    }
    .nav__logo h2 {
        font-size: 2.8rem;
    }
}

.panels-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3vw;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.panel {
    width: 28vw;
    min-width: 280px;
    max-width: 420px;
    height: 60vh;
    min-height: 400px;
    background: #fff;
    border-radius: 50%;
    border: 8px solid;
    border-image: linear-gradient(135deg, #f7e37c 0%, #b3c6ff 60%, #e573c6 100%);
    border-image-slice: 1;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panels-container--lower {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

@media (max-width: 1100px) {
    .panels-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    .panel {
        width: 80vw;
        max-width: 95vw;
        height: 40vh;
        min-height: 220px;
    }
}

/* Studio page layout */
.layout {
    display: flex;
}

.sidebar {
    width: 375px;
    min-width: 240px;
    background: #fff;
    border-right: 4px solid #111;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 2.5rem;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1100;
}

.sidebar__logo {
    margin-left: 2.5rem;
    margin-bottom: 2.5rem;
}

.sidebar__logo h2 {
    font-size: 2.8rem;
    font-weight: bold;
    color: #111;
    font-family: 'Iosevka', monospace !important;
}

.sidebar__nav {
    width: 100%;
    margin-bottom: 2.5rem;
}

.sidebar__nav-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    margin-left: 2.5rem;
}

.sidebar__nav .nav__btn,
.sidebar__nav .nav__btn--active {
    width: 200px;
    text-align: left;
    font-size: 2rem;
    padding: 0.7em 1.5em;
    border-radius: 2.5rem;
    margin-bottom: 0;
}

.sidebar__nav .nav__btn-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

.sidebar__nav .nav__btn--active {
    background: linear-gradient(135deg, #e573c6 0%, #b3c6ff 60%, #f7e37c 100%);
    color: #111;
    font-weight: bold;
    position: relative;
    z-index: 1;
    letter-spacing: 0.05em;
}

.sidebar__nav .nav__btn-comment {
    font-family: 'Iosevka', monospace;
    font-size: 0.9rem;
    color: #111;
    background: #fff;
    border-radius: 0 0 1.5rem 1.5rem;
    padding: 0.1em 1em 0.2em 1em;
    margin-top: -0.5em;
    border: 2px solid #111;
    border-top: none;
    text-align: left;
    min-width: 120px;
    position: relative;
    z-index: 0;
}

/* Reduce font size for nav__btn-comment in Studio page */
.header .nav__btn-comment {
    font-size: 0.9rem;
    padding: 0.1em 1em 0.2em 1em;
    min-width: 120px;
}

.header .nav__buttons {
    gap: 3.5rem;
}

.header .nav__btn--active {
    min-width: 270px;
    text-align: center;
}

.header .nav__btn:hover {
    background: linear-gradient(135deg, rgba(229,115,198,0.25) 0%, rgba(179,198,255,0.25) 60%, rgba(247,227,124,0.25) 100%);
    color: #111;
    border-radius: 2.5rem;
}

.sidebar__menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar__menu li {
    font-family: 'Iosevka', monospace;
    font-size: 2rem;
    color: #111;
    margin-bottom: 2.2rem;
    margin-left: 2.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.sidebar__menu li:hover {
    color: #b3c6ff;
}

.sidebar__menu a {
    color: #111;
    text-decoration: none;
    padding: 0.4em 1.2em;
    border-radius: 2rem;
    display: inline-block;
    font-family: 'Iosevka', monospace;
    font-size: 1.2rem;
    transition: background 0.2s, color 0.2s;
}

.sidebar__menu a.active {
    background: linear-gradient(90deg, #e573c6 0%, #b3c6ff 60%, #f7e37c 100%);
    color: #111;
    font-weight: bold;
}

.sidebar__menu a:hover:not(.active) {
    background: #f7e37c22;
    color: #111;
}

.sidebar__menu a.active:hover {
    /* No hover effect for active sidebar link */
    background: linear-gradient(90deg, #e573c6 0%, #b3c6ff 60%, #f7e37c 100%);
    color: #111;
    font-weight: bold;
}

.main-content {
    margin-left: 340px;
    width: calc(100vw - 340px);
    background: #fff;
}

.chart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    margin-bottom: 0rem;
    width: 100%;
}

.main-title {
    text-align: center;
    font-family: 'Iosevka', monospace;
    font-size: 2.2rem;
    font-weight: bold;
    color: #111;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

.main-title-top {
    text-align: center;
    font-family: 'Iosevka', monospace;
    font-size: 2.2rem;
    font-weight: bold;
    color: #111;
    margin-top: 11rem;
    margin-bottom: 1rem;
}

.main-title-recent {
    text-align: center;
    font-family: 'Iosevka', monospace;
    font-size: 2.2rem;
    font-weight: bold;
    color: #111;
    margin-top: 11rem;
    margin-bottom: 1.5rem;
}

.main-title-working {
    text-align: center;
    font-family: 'Iosevka', monospace;
    font-size: 2.2rem;
    font-weight: bold;
    color: #111;
    margin-top: 2.5rem;
    margin-bottom: 2rem;
}

.studio-panels {
    margin-bottom: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 0;
    padding-right: 0;
    gap: 2vw;
}

.studio-panels .panel {
    width: 20vw;
    min-width: 180px;
    max-width: 300px;
}

@media (max-width: 1100px) {
    .sidebar {
        width: 180px;
        min-width: 120px;
    }
    .main-content {
        margin-left: 180px;
        width: calc(100vw - 180px);
    }
    .sidebar__logo {
        margin-left: 1rem;
    }
    .sidebar__menu li {
        font-size: 1.2rem;
        margin-left: 1rem;
        margin-bottom: 1.2rem;
    }
    .sidebar__nav-buttons {
        margin-left: 1rem;
    }
    .sidebar__nav .nav__btn,
    .sidebar__nav .nav__btn--active {
        width: 120px;
        font-size: 1.2rem;
    }
}

.sidebar__nav .nav__btn:hover {
    background: linear-gradient(135deg, rgba(229,115,198,0.25) 0%, rgba(179,198,255,0.25) 60%, rgba(247,227,124,0.25) 100%);
    border-radius: 2.5rem;
    color: #111;
}

.footer-gradient {
    position: absolute;
    left: 0;
    width: 100vw;
    height: 25px;
    background: linear-gradient(135deg, #e573c6 0%, #b3c6ff 60%, #f7e37c 100%);
    margin: 0;
}

.compare-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.compare-by-label {
    font-family: 'Iosevka', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    color: #111;
    margin-bottom: 0;
    margin-top: 0;
    text-align: left;
    align-self: center;
    white-space: nowrap;
}

.compare-toggles {
    display: flex;
    flex-direction: row;
    gap: 1.2rem;
    margin: 0;
}

.toggle-btn {
    font-family: 'Iosevka', monospace;
    font-size: 1.1rem;
    padding: 0.6em 1.6em;
    border-radius: 2rem;
    border: 2px solid #b3c6ff;
    background: #fff;
    color: #111;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border 0.2s;
    font-weight: 500;
    outline: none;
}

.toggle-btn:hover:not(.toggle-btn--active) {
    background: #f7e37c22;
    border-color: #e573c6;
}

.toggle-btn--active:hover {
    /* No hover effect for active toggle */
    background: linear-gradient(90deg, #e573c6 0%, #b3c6ff 60%, #f7e37c 100%);
    color: #111;
    border: 2px solid #e573c6;
    font-weight: bold;
}

/* Calendar Styles */
.calendar-container {
    padding: 2rem;
    margin-top: 8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.calendar-title {
    font-family: 'Iosevka', monospace;
    font-size: 2.4rem;
    font-weight: bold;
    color: #111;
    margin: 0;
}

.calendar-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.calendar-btn {
    background: #fff;
    border: 2px solid #b3c6ff;
    color: #111;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-family: 'Iosevka', monospace;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.calendar-btn:hover {
    background: #f7e37c22;
    border-color: #e573c6;
}

.calendar-month-year {
    font-family: 'Iosevka', monospace;
    font-size: 1.4rem;
    font-weight: bold;
    color: #111;
    min-width: 150px;
    text-align: center;
}

.calendar-grid {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: linear-gradient(135deg, #e573c6 0%, #b3c6ff 60%, #f7e37c 100%);
}

.weekday {
    padding: 1rem;
    text-align: center;
    font-family: 'Iosevka', monospace;
    font-weight: bold;
    color: #111;
    font-size: 1.1rem;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #f0f0f0;
}

.calendar-day {
    background: #fff;
    padding: 1rem;
    text-align: center;
    font-family: 'Iosevka', monospace;
    font-size: 1.1rem;
    color: #111;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.calendar-day:hover {
    background: #f7e37c22;
}

.calendar-day.other-month {
    color: #ccc;
}

.calendar-day.today {
    background: linear-gradient(135deg, #e573c6 0%, #b3c6ff 60%, #f7e37c 100%);
    color: #111;
    font-weight: bold;
}

.calendar-day.selected {
    background: #b3c6ff;
    color: #111;
    font-weight: bold;
}

.calendar-day.has-content::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    width: 6px;
    height: 6px;
    background: #e573c6;
    border-radius: 50%;
}

.calendar-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.action-btn {
    background: #fff;
    border: 2px solid #b3c6ff;
    color: #111;
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    cursor: pointer;
    font-family: 'Iosevka', monospace;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.action-btn:hover {
    background: #f7e37c22;
    border-color: #e573c6;
}

.action-btn.primary {
    background: linear-gradient(90deg, #e573c6 0%, #b3c6ff 60%, #f7e37c 100%);
    color: #111;
    font-weight: bold;
    border-color: #e573c6;
}

.action-btn.primary:hover {
    background: linear-gradient(90deg, #d162b5 0%, #a2b5ff 60%, #e6d36c 100%);
}

/* Responsive calendar */
@media (max-width: 768px) {
    .calendar-container {
        padding: 1rem;
    }
    
    .calendar-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .calendar-title {
        font-size: 2rem;
    }
    
    .calendar-day {
        padding: 0.5rem;
        min-height: 60px;
        font-size: 1rem;
    }
    
    .calendar-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Panel Content Styles */
.panel-content {
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-title {
    font-family: 'Iosevka', monospace;
    font-size: 1.4rem;
    font-weight: bold;
    color: #111;
    margin-bottom: 1rem;
    text-align: center;
}

.content-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.content-item {
    background: rgba(255,255,255,0.8);
    border-radius: 0.8rem;
    padding: 1rem;
    border-left: 4px solid #e573c6;
    transition: all 0.2s;
}

.content-item:hover {
    background: rgba(255,255,255,0.95);
    transform: translateX(4px);
}

.content-caption {
    font-family: 'Iosevka', monospace;
    font-size: 0.9rem;
    color: #111;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Iosevka', monospace;
    font-size: 0.8rem;
    color: #666;
}

.engagement-score {
    background: linear-gradient(90deg, #e573c6 0%, #b3c6ff 60%, #f7e37c 100%);
    color: #111;
    padding: 0.2rem 0.5rem;
    border-radius: 0.5rem;
    font-weight: bold;
    font-size: 0.7rem;
}

.content-type {
    background: #f0f0f0;
    padding: 0.2rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
}

/* Scrollbar for content list */
.content-list::-webkit-scrollbar {
    width: 6px;
}

.content-list::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
    border-radius: 3px;
}

.content-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #e573c6 0%, #b3c6ff 60%, #f7e37c 100%);
    border-radius: 3px;
}

.content-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #d162b5 0%, #a2b5ff 60%, #e6d36c 100%);
}