* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #fff;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Tab stillar */
.tab-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 10px;
}

.tab-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.tab-content {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.tab-content.active {
    display: block;
}

/* Soat stillari */
.clock-container {
    text-align: center;
}

.clock-display {
    font-size: 5rem;
    font-weight: bold;
    margin: 20px 0;
    font-family: monospace;
}

.date-display {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Sekundomer stillari */
.stopwatch-container {
    text-align: center;
}

.stopwatch-display {
    font-size: 4rem;
    font-family: monospace;
    margin: 20px 0;
}

.lap-times {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 20px;
}

.lap-time {
    background: rgba(255, 255, 255, 0.1);
    margin: 5px 0;
    padding: 10px;
    border-radius: 5px;
}

/* Taymer stillari */
.timer-container {
    text-align: center;
}

.timer-inputs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.timer-input-group {
    display: flex;
    flex-direction: column;
}

.timer-input {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    text-align: center;
    font-size: 2rem;
    color: white;
}

.timer-display {
    font-size: 4rem;
    font-family: monospace;
    margin: 20px 0;
}

/* Umumiy tugma stillari */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.btn-start { background: #4CAF50; }
.btn-stop { background: #f44336; }
.btn-lap { background: #2196F3; }
.btn-reset { background: #FF9800; }

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Number input stillarini o'zgartirish */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Responsive dizayn */
@media (max-width: 768px) {
    .clock-display, 
    .stopwatch-display, 
    .timer-display {
        font-size: 3rem;
    }

    .timer-inputs {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        margin: 5px;
        width: 100%;
        max-width: 200px;
    }
    
    .tab-container {
        flex-direction: column;
        align-items: center;
    }

    .tab-btn {
        width: 100%;
        max-width: 200px;
    }
}