/* ===== ALGEMENE ADMIN STYLING ===== */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #0a0f2a 0%, #000 60%, #003a8c 100%);
    box-shadow: inset 0 0 80px 0 #1a003a, inset 0 0 120px 0 #000, 0 0 0 0 #000;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* ===== SIDEBAR ===== */

.sidebar {
    width: 230px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding: 20px;
    background: linear-gradient(120deg, #000 60%, #003a8c 100%, #ff003c 120%);
    box-shadow: 8px 0 30px 0 #000, 0 2px 24px 0 #003a8c, 0 0 0 0 #ff003c;
    border-right: 2px solid #ff003c;
    -webkit-backdrop-filter: blur(12px);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 4px 0 15px rgba(0,0,0,0.3);
    transition: 0.3s ease;
    overflow: hidden;
}

.sidebar.collapsed {
    width: 70px;
    padding: 20px 10px;
}

.sidebar-title {
    color: var(--text-primary);
    font-size: 22px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: bold;
    transition: 0.3s;
}

.sidebar.collapsed .sidebar-title {
    opacity: 0;
}

.sidebar-link {
    display: block;
    padding: 12px 15px;
    margin-bottom: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    border-radius: 10px;
    transition: 0.25s;
    background: linear-gradient(90deg, #1a1a1a 60%, #003a8c 100%);
    box-shadow: 0 2px 8px 0 #000, 0 0 0 0 #003a8c;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-link:hover {
    background: linear-gradient(90deg, #ff003c 0%, #003a8c 100%);
    color: #fff;
    transform: translateX(5px) scale(1.04);
    box-shadow: 0 4px 16px 0 #ff003c, 0 0 0 0 #003a8c;
}

.sidebar.collapsed .sidebar-link {
    text-indent: -9999px;
}

/* ===== TOGGLE BUTTON ===== */

.toggle-btn {
    position: absolute;
    top: 20px;
    right: -15px;
    width: 30px;
    height: 30px;
    background: rgba(0,120,255,0.8);
    border-radius: 50%;
    color: var(--text-primary);
    border: none;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.toggle-btn:hover {
    background: rgba(0,120,255,1);
}

/* ===== CONTENT (PERFECT CENTREREN) ===== */

.content {
    position: relative;

    /* centreren */
    max-width: 1100px;
    margin-left: calc(260px + 50%);
    transform: translateX(-50%);
    margin-top: 40px;
    margin-bottom: 40px;

    background: linear-gradient(120deg, #000 70%, #003a8c 100%);
    box-shadow: 0 8px 40px 0 #000, 0 0 0 0 #003a8c, 0 0 0 0 #ff003c;
    border: 2px solid #003a8c;
    -webkit-backdrop-filter: blur(14px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 0 25px rgba(0,0,0,0.4);
    color: var(--text-primary);
    transition: 0.3s ease;
}

/* Wanneer sidebar is ingeklapt */
.sidebar.collapsed ~ .content {
    margin-left: calc(70px + 50%);
}

/* ===== FORM ELEMENTEN ===== */

input[type="file"],
input[type="text"],
input[type="password"],
select,
textarea {
    background: rgba(255,255,255,0.15);
    padding: 10px;
    border-radius: 8px;
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.3);
    width: 100%;
    margin-bottom: 15px;
}

button,
.save-btn {
    background: linear-gradient(90deg, #ff003c 0%, #003a8c 100%);
    color: #fff;
    border: 1.5px solid #003a8c;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 2px 10px 0 #000, 0 0 0 0 #003a8c;
    transition: 0.25s;
}

button:hover,
.save-btn:hover {
    background: linear-gradient(90deg, #003a8c 0%, #ff003c 100%);
    color: #fff;
    box-shadow: 0 4px 20px 0 #ff003c, 0 0 0 0 #003a8c;
}

/* ===== TABELLEN ===== */

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    overflow: hidden;
}

table th {
    background: rgba(255,255,255,0.2);
    padding: 12px;
    color: var(--text-primary);
}

table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

table tr:hover {
    background: rgba(255,255,255,0.15);
}

/* ===== GALERIJ ===== */

.gallery-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 10px;
    width: 250px;
    text-align: center;
    transition: 0.25s;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.gallery-card:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-6px);
}

.delete-btn {
    display: inline-block;
    background: rgba(255,0,0,0.5);
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    transition: 0.25s;
}

.delete-btn:hover {
    background: rgba(255,0,0,0.8);
}

/* ===== TITELS ===== */

h1, h2, h3 {
    color: #fff;
    text-shadow: 0 2px 12px #003a8c, 0 0 18px #ff003c, 0 0 2px #000;
}

/* ===== SLIDESHOW PREVIEW ===== */
.preview-wrap {
    width: 320px;
    height: 320px;
    margin: 0 auto 30px auto;
    position: relative;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    box-shadow: 0 0 20px #0008;
    overflow: hidden;
}
.preview-box {
    width: 100%;
    height: 100%;
    position: relative;
}
.preview-box img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.7s;
    z-index: 1;
}
.preview-box img.active {
    opacity: 1;
    z-index: 2;
}
.preview-overlay-name {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 1.2em;
    padding: 12px 0 8px 0;
    text-align: center;
    z-index: 3;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    pointer-events: none;
}
