/* -------------------------- */
/* DASHBOARD STYLING          */
/* -------------------------- */

/* Top header fixed */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #111;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 1000;
}

/* Sidebar fixed onder header */
.menu-sidebar {
    width: 250px;
    background-color: #222;
    color: #fff;
    padding: 20px;
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    overflow-y: auto;
}

/* Sidebar items */
.menu-sidebar ul {
    list-style: none;
    padding: 0;
}

.menu-sidebar li {
    margin: 15px 0;
}

.menu-sidebar a {
    color: #fff;
    text-decoration: none;
}

.menu-sidebar a:hover {
    text-decoration: underline;
}

/* Main content met ruimte voor sidebar en header */
.admin-content {
    margin-left: 290px; /* ruimte voor sidebar */
    margin-top: 60px;   /* ruimte voor header */
    padding: 20px;
    min-height: calc(100vh - 60px);
    background-color: #f4f4f4;
}

/* -------------------------- */
/* DASHBOARD WIDGETS           */
/* -------------------------- */
.dashboard-widgets {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.widget {
    background-color: #fff;
    padding: 20px;
    flex: 1 1 250px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}

.widget:hover {
    transform: translateY(-5px);
}

.widget::before {
    content: "";
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60px;
    height: 60px;
    opacity: 0.1;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Specifieke iconen per widget */
.widget-djs::before {
    background-image: url('../img/icons/dj.png');
}
.widget-shows::before {
    background-image: url('../img/icons/show.png');
}
.widget-today::before {
    background-image: url('../img/icons/calendar.png');
}

.widget h3 {
    margin-top: 0;
    font-size: 18px;
    margin-bottom: 10px;
}

.widget p {
    font-size: 24px;
    font-weight: bold;
}

/* -------------------------- */
/* DJ BEHEER PAGINA            */
/* -------------------------- */

/* Algemene styling */
.dj-page {
    width: 100%;
}

/* Kopjes */
.dj-page h2, .dj-page h3 {
    color: #222;
    margin-bottom: 20px;
}

/* Alerts */
.alert {
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: bold;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Formulier styling */
.dj-page form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.form-control, .form-control-file {
    width: 100%;
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

textarea.form-control {
    resize: vertical;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    margin-top: 5px;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0069d9;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-info {
    background-color: #17a2b8;
    color: #fff;
}

.btn-info:hover {
    background-color: #138496;
}

.btn-danger {
    background-color: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* Flex layout voor form en overzicht */
.row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.col-md-4 {
    flex: 0 0 32%;
}

.col-md-8 {
    flex: 0 0 65%;
}

/* Tabel styling */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
}

table thead {
    background-color: #007bff;
    color: #fff;
}

table tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

table tbody tr:hover {
    background-color: #e9ecef;
}

/* Afbeeldingen in tabel */
table img {
    max-height: 50px;
    border-radius: 4px;
}

/* Kleine tekst voor bestaande foto info */
.form-text {
    font-size: 12px;
    color: #666;
}

/* Responsive */
@media screen and (max-width: 992px) {
    .col-md-4, .col-md-8 {
        flex: 0 0 100%;
    }
    .row {
        flex-direction: column;
    }
}


/* -------------------------- */
/* DASHBOARD WIDGET ENHANCEMENTS */
/* -------------------------- */

/* Widget lijst styling */
.dashboard-widgets ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dashboard-widgets li {
    padding: 8px 10px;
    margin-bottom: 6px;
    border-left: 4px solid #007bff;
    background-color: #f9f9f9;
    border-radius: 5px;
    transition: background-color 0.2s, transform 0.2s;
}

.dashboard-widgets li:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
}

/* Iconen widget-today iets lichter */
.widget-today::before {
    opacity: 0.08;
}

/* Kleuren per type widget (meer visueel onderscheid) */
.widget-djs {
    border-left: 5px solid #28a745; /* groen */
}

.widget-shows {
    border-left: 5px solid #ffc107; /* geel */
}

.widget-today {
    border-left: 5px solid #17a2b8; /* blauw */
}

/* Kopjes in dashboard widgets iets groter en duidelijker */
.widget h3 {
    font-size: 20px;
    font-weight: 600;
}

/* Responsiveness verbeteren voor dashboard */
@media screen and (max-width: 768px) {
    .dashboard-widgets {
        flex-direction: column;
        gap: 15px;
    }
}

/* -------------------------- */
/* DASHBOARD TODAY LIST ICONS */
/* -------------------------- */
.dashboard-widgets li {
    position: relative;
    padding-left: 40px; /* ruimte voor iconen */
}

.dashboard-widgets li::before {
    content: "\1F551"; /* Unicode klokje ⏱ of 🕒 */
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #007bff;
}

.dashboard-widgets li span.dj-icon {
    content: "\1F3A4"; /* Unicode microfoon 🎤 */
    margin-left: 10px;
    font-size: 14px;
    color: #17a2b8;
}
