/* ===== GENERELT - alle sider ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #111;
    color: white;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

/* ===== IPHONE-FRAME - alle sider ===== */
.phone-frame {
    width: 375px;
    height: 667px;
    background-color: #000;
    border-radius: 40px;
    border: 3px solid #333;
    padding: 20px;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}

.phone-frame::-webkit-scrollbar {
    display: none;
}

/* ===== TOPBAR MED HAMBURGER - alle sider ===== */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #333;
    margin-bottom: 20px;
}

.hamburger {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    width: auto;
    height: auto;
    border-radius: 0;
    cursor: pointer;
}

.topbar-title {
    font-size: 14px;
    color: #888;
}

/* ===== DROPDOWN MENU - alle sider ===== */
.menu {
    display: none;
    flex-direction: column;
    background-color: #1a1a1a;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.menu a {
    color: white;
    text-decoration: none;
    padding: 14px 20px;
    border-bottom: 1px solid #333;
    font-size: 16px;
}

.menu a:last-child {
    border-bottom: none;
}

.menu a:hover {
    background-color: #333;
}

/* ===== OVERSKRIFT - alle sider ===== */
h1 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 40px;
}

/* ===== MODE TOGGLE - forsiden ===== */
.mode {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
}

.mode-label {
    font-size: 14px;
    color: #888;
    letter-spacing: 2px;
}

.mode-text {
    font-size: 16px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 1s;
}

.slider::before {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: transform 1s;
}

.toggle-switch input:checked + .slider {
    background-color: #c0392b;
}

.toggle-switch input:checked + .slider::before {
    transform: translateX(30px);
}

/* ===== VARME LEVEL - forsiden ===== */
.level {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.level-number {
    font-size: 64px;
    font-weight: bold;
    min-width: 60px;
    text-align: center;
}

/* ===== KNAPPER - alle sider ===== */
button {
    background-color: #333;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
}

button:active {
    background-color: #555;
}

/* ===== POWER KNAP - forsiden ===== */
.power {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.power-btn {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    font-size: 40px;
    background-color: #c0392b;
    border: 3px solid #e74c3c;
    transition: background-color 1s, border-color 1s;
}

.power-btn.on {
    background-color: #27ae60;
    border-color: #2ecc71;
}

/* ===== STATUS - forsiden ===== */
.status {
    text-align: center;
    font-size: 18px;
    color: #888;
}

/* ===== FORMULAR - log, database og upload siderne ===== */
.log-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
}

.log-form label {
    font-size: 14px;
    color: #888;
}

.log-form input {
    padding: 10px;
    border: 1px solid #333;
    border-radius: 8px;
    background-color: #1a1a1a;
    color: white;
    font-size: 16px;
}

.submit-btn {
    margin-top: 8px;
    width: 100%;
    height: 44px;
    border-radius: 8px;
    background-color: #27ae60;
    font-size: 16px;
}

/* ===== TABEL - log og database siderne ===== */
.log-table {
    width: 100%;
    border-collapse: collapse;
}

.log-table th {
    text-align: left;
    padding: 8px;
    border-bottom: 2px solid #333;
    color: #888;
    font-size: 13px;
}

.log-table td {
    padding: 8px;
    border-bottom: 1px solid #222;
    font-size: 14px;
}

/* ===== SELECT DROPDOWN - database-siden ===== */
.select-input {
    padding: 10px;
    border: 1px solid #333;
    border-radius: 8px;
    background-color: #1a1a1a;
    color: white;
    font-size: 16px;
}

/* ===== SLET-KNAP - database-siden ===== */
.delete-btn {
    width: 30px;
    height: 30px;
    font-size: 14px;
    background-color: #c0392b;
    border-radius: 6px;
}

/* ===== FIL-INPUT - upload-siden ===== */
input[type="file"] {
    padding: 10px;
    border: 1px solid #333;
    border-radius: 8px;
    background-color: #1a1a1a;
    color: white;
    font-size: 14px;
}

/* ===== SEKTIONS-TITEL - upload-siden ===== */
.section-title {
    font-size: 16px;
    color: #888;
    margin-bottom: 15px;
}

/* ===== FILLISTE - upload-siden ===== */
.file-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1a1a1a;
    padding: 12px;
    border-radius: 10px;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-icon {
    font-size: 24px;
}

.file-name {
    font-size: 14px;
    font-weight: bold;
}

.file-desc {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

/* ===== DOWNLOAD-KNAP - upload-siden ===== */
.download-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
    background-color: #2980b9;
    border-radius: 8px;
}
