/* Global reset og base styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    color: #2c3e50;
    overflow: hidden;
}

h1 {
    font-size: 24px;
    font-weight: 600;
}

h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    padding: 16px;
    background: #34495e;
    color: white;
}

h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
}

/* Buttons */
.btn {
    padding: 8px 16px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.btn:hover {
    background: #2980b9;
}

.btn:active {
    transform: translateY(1px);
}

.btn-unit {
    background: #27ae60;
    min-width: 120px;
}

.btn-unit:hover {
    background: #229954;
}

.btn-small {
    padding: 6px 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
    margin-right: 8px;
}

.btn-small:hover {
    background: #2980b9;
}

.btn-danger {
    background: #e74c3c;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-toggle {
    background: #95a5a6;
}

.btn-toggle:hover {
    background: #7f8c8d;
}

.btn-toggle.active {
    background: #27ae60;
}

.btn-toggle.active:hover {
    background: #229954;
}

.btn-offset {
    background: #95a5a6;
    opacity: 0.6;
}

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

.btn-offset.enabled {
    background: #9b59b6;
    opacity: 1;
}

.btn-offset.enabled:hover {
    background: #8e44ad;
}

.btn-toggle.offset-locked {
    background: #9b59b6;
}

.btn-toggle.offset-locked:hover {
    background: #8e44ad;
}

.btn-control {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin: 4px;
}

.btn-control:hover {
    background: white;
}

/* Inputs */
input[type="number"] {
    padding: 6px 8px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 13px;
    width: 80px;
    background: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
}

input[type="number"]:focus {
    outline: none;
    border-color: #3498db;
}

label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: white;
    font-size: 13px;
}

/* Utility classes */
.placeholder {
    color: #95a5a6;
    font-style: italic;
    padding: 16px;
}
