* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    transition: background 0.3s ease;
}

body.dark-mode {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

body.dark-mode .container {
    background: #2d2d44;
    color: #e0e0e0;
}

.dark-mode-toggle {
    float: right;
    padding: 8px 16px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 20px;
}

.dark-mode-toggle:hover {
    background: #5568d3;
}

h1 {
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2.5em;
    padding: 10px;
    border-radius: 5px;
    clear: both;
}

body.dark-mode h1 {
    color: #e0e0e0;
}

.hidden {
    display: none;
}

.control-panel {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

.control-panel.flashing {
    background: #ffeb3b;
    transform: scale(1.02);
}

body.dark-mode .control-panel {
    background: #3d3d5c;
}

body.dark-mode .control-panel.flashing {
    background: #ffa726;
}

.btn {
    padding: 12px 24px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn:hover {
    background: #5568d3;
    transform: translateY(-2px);
}

.stats {
    text-align: center;
    padding: 15px;
    background: #e8f4f8;
    border-radius: 8px;
    margin: 20px 0;
    font-weight: 600;
    color: #667eea;
}

body.dark-mode .stats {
    background: #1a1a2e;
    color: #9fa8da;
}

.status-box {
    background: #e8f4f8;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    margin: 20px 0;
}

body.dark-mode .status-box {
    background: #1a1a2e;
    border-left-color: #9fa8da;
}

.status-box h2 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.5em;
}

body.dark-mode .status-box h2 {
    color: #9fa8da;
}

.status-box p {
    color: #555;
    line-height: 1.6;
}

body.dark-mode .status-box p {
    color: #b0b0b0;
}

.status-box span {
    display: block;
    margin-top: 10px;
    padding: 8px;
    background: white;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #667eea;
    font-weight: bold;
}

body.dark-mode .status-box span {
    background: #2d2d44;
    color: #9fa8da;
}

.info-section {
    margin-top: 40px;
}

.info-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3em;
}

body.dark-mode .info-section h3 {
    color: #e0e0e0;
}

#item-list {
    list-style-position: inside;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

body.dark-mode #item-list {
    background: #3d3d5c;
}

#item-list li {
    padding: 10px;
    margin: 5px 0;
    border-radius: 4px;
}