body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    box-sizing: border-box;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 32px;
    font-weight: 600;
}

.settings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 32px;
}

.input-group {
    margin: 0;
}

.input-group label {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    color: #4a5568;
    font-size: 0.9rem;
    font-weight: 500;
}

input {
    width: 100%;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

input:focus {
    border-color: #4299e1;
    outline: none;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 32px 0;
}

button {
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, background-color 0.2s;
}

button#start {
    background-color: #4299e1;
    color: white;
}

button#stop {
    background-color: #e53e3e;
    color: white;
}

button:hover {
    transform: translateY(-1px);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.stats {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin: 20px 0;
}

.stats h2 {
    color: #2d3748;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 600;
}

.stats p {
    display: flex;
    justify-content: space-between;
    margin: 12px 0;
    color: #4a5568;
    font-size: 0.95rem;
}

.stats span {
    font-weight: 600;
    color: #2d3748;
}

.info-icon {
    display: inline-block;
    font-size: 0.8em;
    color: #4299e1;
    position: relative;
    cursor: help;
    margin-left: 8px;
    vertical-align: super;
}

.tooltip {
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 280px;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.2s, visibility 0.2s;
}

.info-icon:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.tooltip h3 {
    color: #2d3748;
    margin: 0 0 12px 0;
    font-size: 1rem;
}

.tooltip ul {
    margin: 0;
    padding-left: 20px;
    color: #4a5568;
    font-size: 0.9rem;
    text-align: left;
}

.tooltip li {
    margin: 6px 0;
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    
    .settings {
        grid-template-columns: 1fr;
    }
    
    button {
        padding: 10px 24px;
    }
    
    .tooltip {
        width: 200px;
        font-size: 0.8rem;
    }
}
