/* ===== Base Reset ===== */
* {
    box-sizing: border-box;
    font-family: "Segoe UI", "Noto Sans TC", Arial, sans-serif;
}

body {
    margin: 0;
    background: #f6f7fb;
    color: #333;
}

/* ===== Header / Navbar ===== */
header {
    background: #1f2937;
    color: white;
    padding: 12px 20px;
}

nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

    nav a {
        color: #e5e7eb;
        text-decoration: none;
        padding: 6px 10px;
        border-radius: 6px;
    }

        nav a:hover {
            background: rgba(255,255,255,0.12);
        }

.navbar-logo {
    height: 36px; /* 可調整：32~48 都不錯 */
    width: auto;
    display: block;
}

/* ===== Page Container ===== */
main {
    max-width: 960px;
    margin: 30px auto;
    padding: 0 16px;
}

/* ===== Card UI ===== */
.card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

/* ===== Titles ===== */
h2 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 22px;
}

/* ===== Form Layout ===== */
form {
    background: white;
    padding: 22px;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.05);
}

    form > div {
        margin-bottom: 16px;
    }

/* Labels */
label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

/* Inputs */
input[type="text"],
input[type="password"],
input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

input:focus {
    outline: none;
    border-color: #3b82f6;
}

/* Radio & Checkbox groups */
input[type="radio"],
input[type="checkbox"] {
    margin-right: 6px;
    transform: scale(1.05);
}

/* Checkbox list spacing */
form div br {
    line-height: 1.8;
}

/* Buttons */
button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
}

    button:hover {
        background: #2563eb;
    }

/* ===== Channel List (首頁) ===== */
.channel-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

    .channel-list li a {
        display: block;
        background: white;
        padding: 14px;
        border-radius: 10px;
        text-decoration: none;
        color: #111827;
        border: 1px solid #e5e7eb;
        transition: 0.15s;
    }

        .channel-list li a:hover {
            transform: translateY(-2px);
            border-color: #3b82f6;
        }

/* ===== Alerts ===== */
.alert-error {
    background: #fee2e2;
    color: #b91c1c;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
}

/* ===== Footer ===== */
footer {
    text-align: center;
    padding: 18px 12px;
    color: #6b7280;
    font-size: 14px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    margin-top: 40px;
}
