.container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(5px);
    flex-wrap: wrap;
    min-height: 80px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 200px;
    max-width: 60%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo h1 {
    font-size: 1.7rem;
    background: linear-gradient(45deg, var(--accent), #ffa502);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo i {
    font-size: 1.8rem;
    color: var(--accent);
}

.countdowns-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    max-width: 100%;
    flex: 1;
    min-width: 0;
}

.controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex: 1;
    min-width: fit-content;
}

.content-wrapper {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
}

.main-content {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.4s ease;
}

.settings-open .main-content {
    transform: translateY(-100%);
}

.countdown-sidebar {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 483px;
    overflow-y: auto;
}

.time-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    height: 200px;
    min-height: 200px;
    max-height: 200px;
    width: 100%;
}

.quote-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow);
    position: relative;
    height: 30px;
    min-height: 240px;
    max-height: 240px;
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(5px);
}

.countdown-panel {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 15px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 12px;
    backdrop-filter: blur(5px);
    height: 100%;
    position: relative;
}

.countdown-panel-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.countdown-items-container {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.settings-panel {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.3s ease;
    z-index: 10;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.settings-open .settings-panel {
    transform: translateY(-100%);
    overflow: hidden;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.settings-header h2 {
    font-size: 1.6rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-buttons {
    display: flex;
    gap: 10px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-height: calc(85vh - 100px);
    overflow-y: auto;
    padding-right: 10px;
    flex: 1;
}

.settings-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
