/* ============================
   GLOBALT
============================ */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 20px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: #f7f7f7;
    color: #222;
}

h1, h2 {
    text-align: center;
    margin-bottom: 20px;
}

.page-container {
    max-width: 600px;
    margin: 0 auto;
}

/* ============================
   KNAPPAR
============================ */
button,
a.btn {
    display: inline-block;
    padding: 10px 16px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

button:hover,
a.btn:hover {
    background: #0056b3;
}

.btn-approve { background: #28a745; }
.btn-approve:hover { background: #1e7e34; }

.btn-reject { background: #dc3545; }
.btn-reject:hover { background: #b02a37; }

.btn-block { background: #6c757d; }
.btn-block:hover { background: #565e64; }

.btn-delete { background: #dc3545; }
.btn-delete:hover { background: #b02a37; }

/* ============================
   FORMULÄR
============================ */
label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #bbb;
    border-radius: 6px;
    font-size: 16px;
    background: #fff;
}

textarea {
    height: 80px;
}

/* ============================
   TABELLER (admin/dagvy)
============================ */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

th {
    background: #f0f0f0;
    font-weight: bold;
}

.slot-requested { background:#fff3cd; }
.slot-approved  { background:#d4edda; }
.slot-blocked   { background:#f8d7da; }
.slot-free      { background:#e9ecef; }

/* Mobil scroll för breda tabeller */
.admin-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
}

.admin-table {
    min-width: 900px;
}

/* ============================
   LOGIN / NOTICE
============================ */
.login-box {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.notice-box {
    background:#e9f5ff;
    padding:10px;
    border-radius:6px;
    margin-bottom:15px;
}

/* ============================
   STOPPA MOBILENS BOUNCE
============================ */
html, body {
    overscroll-behavior: none;
}

