/* ---------- Algemene stijl ---------- */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #74ebd5, #9face6);
    min-height: 100vh;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #1e3a8a; /* donkerblauw */
    padding: 14px 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.navbar a {
    display: inline-block;
    padding: 10px 20px;
    background: #2563eb;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.navbar a:hover {
    background: #1d4ed8;
    color: #facc15;
}

.navbar a.active {
    outline: 2px solid #facc15;
}

/* ---------- Container (content box) ---------- */
.container {
    margin: 100px auto 40px; /* extra ruimte onder navbar */
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    width: 360px;
    max-width: 90%;
    text-align: center;
}

/* ---------- Tekst ---------- */
h2 {
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

/* ---------- Inputs & forms ---------- */
input[type="text"], 
input[type="password"] {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: 0.2s;
}

input[type="text"]:focus, 
input[type="password"]:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 5px rgba(37, 99, 235, 0.4);
}

input[type="submit"], 
button {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    border: none;
    border-radius: 8px;
    background: #6a82fb;
    color: white;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

input[type="submit"]:hover, 
button:hover {
    background: #5a72e2;
}

/* ---------- Meldingen ---------- */
.success {
    margin-top: 15px;
    padding: 12px;
    background: #d1fae5;
    border: 1px solid #10b981;
    border-radius: 8px;
    color: #065f46;
    font-size: 14px;
    text-align: center;
}

.error {
    margin-top: 15px;
    padding: 12px;
    background: #fee2e2;
    border: 1px solid #ef4444;
    border-radius: 8px;
    color: #991b1b;
    font-size: 14px;
    text-align: center;
}

/* ---------- Weer box ---------- */
.weather-box {
    margin-top: 20px;
    padding: 18px;
    border-radius: 12px;
    background: #f9fafb;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: left;
}

.weather-box h3 {
    margin: 0 0 12px;
    color: #1e293b;
}

.weather-box img {
    vertical-align: middle;
    width: 32px;
    height: 32px;
}

.weather-box button {
    margin-top: 12px;
    background: #fbbf24;
    color: #1e293b;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: bold;
}

.weather-box button:hover {
    background: #f59e0b;
    color: #fff;
}

/* ---------- Favorieten ---------- */
.favorites-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    text-align: left;
}

.favorites-list li {
    padding: 10px 14px;
    margin-bottom: 8px;
    background: #e0e7ff;
    border-radius: 8px;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.favorites-list a {
    text-decoration: none;
    color: #2563eb;
    font-weight: bold;
    transition: 0.2s;
}

.favorites-list a:hover {
    color: #1d4ed8;
}
/* ---------- Delete knop bij favorieten ---------- */
.delete-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 4px 6px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: 0.2s ease;
}

.delete-btn:hover {
    background: #dc2626;
}
