* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.header {
    margin-bottom: 30px;
    animation: fadeIn 1s ease;
}

.logo {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, #00dbde, #fc00ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
}

.logo span {
    background: linear-gradient(45deg, #fc00ff, #00dbde);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.8;
    letter-spacing: 2px;
}

.stopwatch-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.8s ease;
}

.time-display {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 40px;
}

.time-main {
    font-size: 5rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.time-millis {
    font-size: 2.5rem;
    font-weight: 600;
    opacity: 0.8;
    font-family: 'Courier New', monospace;
    padding-bottom: 15px;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.btn {
    width: 70px;
    height: 70px;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn:hover:not(:disabled) {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.start {
    background: linear-gradient(45deg, #00b09b, #96c93d);
    color: white;
}

.pause {
    background: linear-gradient(45deg, #ff9966, #ff5e62);
    color: white;
}

.reset {
    background: linear-gradient(45deg, #2193b0, #6dd5ed);
    color: white;
}

.lap {
    background: linear-gradient(45deg, #834d9b, #d04ed6);
    color: white;
}

.laps-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    max-height: 250px;
    overflow-y: auto;
}

.laps-title {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #00dbde;
}

.laps-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lap-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    animation: lapFade 0.5s ease;
}

.lap-number {
    font-weight: 600;
    color: #fc00ff;
}

.lap-time {
    font-weight: 600;
}

.footer {
    margin-top: 30px;
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer i {
    color: #ff5e62;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lapFade {
    from { 
        opacity: 0;
        transform: translateX(-20px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scrollbar styling */
.laps-container::-webkit-scrollbar {
    width: 6px;
}

.laps-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.laps-container::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #00dbde, #fc00ff);
    border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 600px) {
    .time-main {
        font-size: 4rem;
    }
    
    .time-millis {
        font-size: 2rem;
        padding-bottom: 10px;
    }
    
    .btn {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    .logo {
        font-size: 2.8rem;
    }
}

@media (max-width: 400px) {
    .time-main {
        font-size: 3.2rem;
    }
    
    .time-millis {
        font-size: 1.6rem;
    }
    
    .btn {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .stopwatch-card {
        padding: 20px;
    }
    
    .controls {
        gap: 10px;
    }
}