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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1a2e;
    color: #eee;
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.login-container {
    max-width: 450px;
    margin-top: 10vh;
    text-align: center;
}

h1 {
    color: #e94560;
    margin-bottom: 8px;
}

h2 {
    color: #c4c4c4;
    margin-bottom: 16px;
    font-weight: 400;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.logout-btn {
    color: #e94560;
    text-decoration: none;
    border: 1px solid #e94560;
    padding: 6px 16px;
    border-radius: 6px;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: #e94560;
    color: #fff;
}

form label {
    display: block;
    margin: 16px 0 6px;
    font-size: 14px;
    color: #aaa;
}

form input[type="text"],
form input[type="date"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #333;
    border-radius: 8px;
    background: #16213e;
    color: #eee;
    font-size: 16px;
    text-align: center;
    color-scheme: dark;
}

form input[type="text"]:focus,
form input[type="date"]:focus {
    outline: none;
    border-color: #e94560;
}

form button[type="submit"] {
    margin-top: 16px;
    padding: 12px 32px;
    background: #e94560;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

form button[type="submit"]:hover {
    background: #c73652;
}

.error {
    margin-top: 16px;
    padding: 10px;
    background: #4a1528;
    border: 1px solid #e94560;
    border-radius: 8px;
    color: #e94560;
}

.message {
    margin-bottom: 16px;
    padding: 10px 16px;
    background: #1b3a2d;
    border: 1px solid #4caf50;
    border-radius: 8px;
    color: #81c784;
}

.my-booking {
    background: #16213e;
    border: 2px solid #0f3460;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
}

.my-booking h3 {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 6px;
}

.my-booking p {
    font-size: 18px;
    color: #e94560;
}

.delete-btn {
    margin-top: 10px;
    padding: 8px 20px;
    background: transparent;
    color: #e94560;
    border: 1px solid #e94560;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.delete-btn:hover {
    background: #e94560;
    color: #fff;
}

.day-row {
    margin-bottom: 20px;
    background: #16213e;
    border-radius: 10px;
    padding: 14px;
}

.day-row h3 {
    margin-bottom: 10px;
    color: #ccc;
    font-size: 15px;
}

.slots {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 36px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s;
}

.slot.free {
    background: #0f3460;
    color: #7ec8e3;
    cursor: pointer;
    border: 1px solid #1a4a7a;
}

.slot.free:hover {
    background: #4caf50;
    color: #fff;
    border-color: #4caf50;
}

.slot.taken {
    background: #4a1528;
    color: #e94560;
    cursor: not-allowed;
    border: 1px solid #6b2040;
}

.slot.taken:hover {
    background: #5a1a30;
}

.slot.past {
    background: #1a1a2e;
    color: #444;
    cursor: not-allowed;
    border: 1px solid #2a2a3e;
}

.slot.mine {
    background: #1b3a2d;
    color: #81c784;
    border: 2px solid #4caf50;
    cursor: default;
}

.slot-form {
    display: inline;
}

.slot-form button.slot {
    border: 1px solid #1a4a7a;
    font-family: inherit;
}

.legend {
    margin-bottom: 16px;
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #aaa;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-color {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.legend-color.free {
    background: #0f3460;
    border: 1px solid #1a4a7a;
}

.legend-color.taken {
    background: #4a1528;
    border: 1px solid #6b2040;
}

.legend-color.mine {
    background: #1b3a2d;
    border: 2px solid #4caf50;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background: #16213e;
    border-radius: 10px;
    overflow: hidden;
}

.admin-table th {
    background: #0f3460;
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    color: #7ec8e3;
}

.admin-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #1a2a4a;
    font-size: 14px;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: #1a2a4a;
}

@media (max-width: 600px) {
    .container {
        padding: 12px;
    }

    .slot {
        width: 58px;
        height: 32px;
        font-size: 11px;
    }

    .header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
