/* Loginpagina YouTube-stijl */
.login-container {
    max-width: 400px;
    margin: 60px auto 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    padding: 32px 28px 24px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-container h2 {
    font-size: 22px;
    font-weight: 500;
    color: #222;
    margin-bottom: 18px;
}

.login-container form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.login-container input[type="text"],
.login-container input[type="password"],
.login-container input[type="email"] {
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 16px;
    background: #fafafa;
    color: #222;
    transition: border 0.2s;
}
.login-container input:focus {
    border: 1.5px solid #e62117;
    outline: none;
}

.login-container button {
    background: #e62117;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 0;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(230,33,23,0.08);
    transition: background 0.2s;
}
.login-container button:hover {
    background: #c00;
}

.login-container hr {
    width: 100%;
    border: none;
    border-top: 1px solid #eee;
    margin: 18px 0;
}

#loginMessage {
    margin-top: 8px;
    font-size: 15px;
    color: #e62117;
    text-align: center;
    min-height: 22px;
}
/* Zoekbalk en knoppen in licht thema */
body.light-theme .search-bar input {
    background: #fff;
    color: #222;
    border: 1px solid #ccc;
}

body.light-theme .search-bar button {
    background: #f1f1f1;
    color: #222;
    border: 1px solid #ccc;
}

body.light-theme .search-bar button:hover {
    background: #eaeaea;
}

body.light-theme #createButton {
    background: #eaeaea;
    color: #222;
}

body.light-theme #createButton:hover {
    background: #d6d6d6;
}

body.light-theme .user-actions button {
    color: #222;
}

body.light-theme .user-actions button:hover {
    background: #eaeaea;
}

body.light-theme .profile-icon {
    background: #eaeaea;
    color: #222;
}

body.light-theme .profile-icon:hover {
    background: #d6d6d6;
}
/* Algemene stijlen */
body {
    font-family: Arial, sans-serif;
    background-color: #181818;
    color: #fff;
    margin: 0;
    transition: background-color 0.3s, color 0.3s;
}

body.light-theme {
    background-color: #f9f9f9;
    color: #222;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #202020;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    padding: 0;
    transition: background-color 0.3s;
}

body.light-theme header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(200,200,200,0.3);
}

nav {
    display: flex;
    align-items: center;
    height: 70px;
    max-width: 100vw;
    padding: 0 24px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 22px;
    font-weight: bold;
    color: #ff0000;
    margin-right: 0;
}

body.light-theme .logo {
    color: #e62117;
}

body.light-theme #toggleSidebar {
    color: #222;
}

#toggleSidebar {
    background: none;
    border: none;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    padding: 8px;
}

.search-bar {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 600px;
}

.search-bar input {
    flex: 1;
    padding: 0 12px;
    border-radius: 24px 0 0 24px;
    border: 0px solid #333;
    background: #121212;
    color: #fff;
    font-size: 16px;
    outline: none;
    height: 36px;
}

.search-bar button {
    background: #222;
    border: 1px solid #333;
    color: #fff;
    font-size: 18px;
    padding: 0 16px;
    cursor: pointer;
    border-radius: 0 24px 24px 0;
    margin-left: -1px;
    transition: background 0.1s;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Microfoonknop volledig rond */
.search-bar button:last-child {
    border-radius: 50%;
    margin-left: 8px;
    width: 36px;
    padding: 0;
}

.search-bar button:hover {
    background: #333;
}

#createButton {
    background: #222;
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 8px 18px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.1s;
}

#createButton:hover {
    background: #333;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-actions button {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 8px;
    transition: background 0.1s;
    border-radius: 50%;
}

.user-actions button:hover {
    background: #333;
}

.profile-icon {
    width: 36px;
    height: 36px;
    background: #444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    margin-left: 8px;
    cursor: pointer;
    transition: background 0.1s;
}

.profile-icon:hover {
    background: #666;
}

.sidebar {
    position: fixed;
    top: 70px; /* Matches header height */
    left: 0;
    width: 200px;
    height: calc(100% - 70px);
    background-color: #202020;
    padding: 20px 0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    transition: width 0.1s, background-color 0.3s;
    z-index: 999;
}

body.light-theme .sidebar {
    background-color: #f1f1f1;
    box-shadow: 2px 0 5px rgba(200,200,200,0.3);
}

.sidebar.collapsed {
    width: 60px;
    padding: 20px 0;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    margin: 8px 0;
}

.sidebar ul li a {
    text-decoration: none;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.2s, gap 0.2s, color 0.3s;
}

body.light-theme .sidebar ul li a {
    color: #222;
}

.sidebar.collapsed ul li a {
    gap: 0;
    justify-content: center;
    padding: 8px 0;
}

.sidebar ul li a:hover {
    background-color: #383838;
}

body.light-theme .sidebar ul li a:hover {
    background-color: #eaeaea;
}

.sidebar ul li a.active {
    background-color: #ff0000;
}

body.light-theme .sidebar ul li a.active {
    background-color: #e62117;
    color: #fff;
}

.sidebar .icon {
    font-size: 22px;
    min-width: 22px;
    text-align: center;
}

.sidebar .text {
    transition: opacity 0.2s, width 0.2s;
    white-space: nowrap;
}

.sidebar .text.hidden {
    opacity: 0;
    width: 0;
    overflow: hidden;
    display: none;
}

main {
    margin-left: 220px; /* Adjust to leave space for the fixed sidebar */
    padding: 20px;
    transition: margin-left 0.2s;
}

.sidebar.collapsed ~ main {
    margin-left: 60px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.video-card {
    background-color: #202020;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, background-color 0.3s;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

body.light-theme .video-card {
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(200,200,200,0.2);
}

.video-thumbnail {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.video-card h3 {
    margin: 10px 10px 0 10px;
    font-size: 16px;
    color: #fff;
    transition: color 0.3s;
}

body.light-theme .video-card h3 {
    color: #222;
}

.video-card p {
    margin: 10px;
    font-size: 14px;
    color: #aaa;
    transition: color 0.3s;
}

body.light-theme .video-card p {
    color: #555;
}