/* ==========================================
   CSS CUSTOM PROPERTIES
   ========================================== */
:root {
    --primary-color: #1C1C1C;
    --secondary-color: #DAA5200;
    --success-color: #DAA520;
    --warning-color: #999999;
    --bg-color: #D3D3D3;
    --card-bg: #D3D3D3;
    --text-color: #1C1C1C;
    --text-light: #7f8c8d;
    --border-radius: 7px;
    /*--shadow: 0 4px 6px rgba(0, 0, 0, 0.1);*/
    /*--shadow-hover: 0 6px 12px rgba(0, 0, 0, 0.15);*/
    --transition: all 0.3s ease;
    --max-width: 600px;
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'filosofia';
    background: linear-gradient(135deg, #2F2F2F 0%, #333333 100%);
    color: var(--text-color);
    min-height: 100vh;
    padding: 0;
    line-height: 1.6;
}

/* ==========================================
   CONTAINER & LAYOUT
   ========================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px;
    min-height: 100vh;
}

/* ==========================================
   HEADER
   ========================================== */
.header {
    text-align: center;
    padding: 24px 0;
    margin-bottom: 20px;
}

.header__title {
    color: #F5F5F5;
    font-size: 36px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   SELECTION SECTION
   ========================================== */
.selection {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 24px;
    /*box-shadow: var(--shadow);*/
}

.selection__group {
    margin-bottom: 16px;
}

.selection__group:last-child {
    margin-bottom: 0;
}

.selection__label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 18px;
}

.selection__dropdown {
    width: 100%;
    padding: 12px 16px;
    /*border: 2px solid #dfe6e9;*/
    border-radius: 8px;
    font-size: 14px;
    background: #F5F5F5;
    color: var(--text-color);
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
    cursor: pointer;
}

.selection__dropdown:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* ==========================================
   TIMER CARDS
   ========================================== */
.timers {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.timer-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.timer-card--primary {
    border: 3px solid var(--secondary-color);
}

.timer-card__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.timer-card__display {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    color: var(--secondary-color);
    margin: 16px 0;
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
}

.timer-card--primary .timer-card__display {
    color: var(--primary-color);
}

.timer-card__info {
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 16px;
}

.timer-card__controls {
    display: flex;
    gap: 8px;
    justify-content: center;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: none;
    letter-spacing: 0.5px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn--start {
    background: var(--success-color);
    color: white;
}

.btn--start:hover:not(:disabled) {
    background: #556B2F;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn--pause {
    background: #A8A8A8;
    color: white;
}

.btn--pause:hover:not(:disabled) {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn--reset {
    background: var(--warning-color);
    color: white;
}

.btn--reset:hover:not(:disabled) {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    text-align: center;
    padding: 24px 0;
}

.footer__text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 480px) {
    .header__title {
        font-size: 24px;
    }

    .timer-card__display {
        font-size: 40px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    .container {
        padding: 12px;
    }
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.timer-card--active {
    animation: pulse 2s infinite;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.3);
}
