/* --- Base & Typography --- */
body {
    background-color: #121212; /* Material Dark Grey */
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
}

/* --- Layout --- */
.container {
    margin-top: 20px;
    background-color: #1E1E1E; /* Elevated Surface */
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.logo {
    text-align: center;
    margin-bottom: 20px;
}

.logo img {
    width: 200px;
}

/* --- Buttons --- */
.btn-primary {
    background-color: #DD105B;
    border-color: #DD105B;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #b80d4c;
    border-color: #b80d4c;
}

.btn-info {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.btn-info:hover {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-danger {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

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


/* --- DataTables --- */
td.details-control {
    text-align: center;
    cursor: pointer;
    width: 20px;
}
td.details-control::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f0d7"; /* fa-caret-down */
    color: #DD105B;
    font-size: 1.2em;
}
tr.shown td.details-control::before {
    content: "\f0d8"; /* fa-caret-up */
}

#eventsTable {
    border-collapse: collapse !important;
    width: 100% !important;
}

#eventsTable thead {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

#eventsTable th, #eventsTable td {
    padding: 12px 15px !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#eventsTable tbody, #eventsTable tbody tr, #eventsTable tbody tr td {
    color: #ffffff !important;
    background-color: transparent !important;
}

#eventsTable.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.03);
}

#eventsTable tbody tr:hover {
    background-color: rgba(221, 16, 91, 0.15) !important;
}

.dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter, .dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_processing, .dataTables_wrapper .dataTables_paginate {
    color: #ffffff;
}

#eventsTable_filter input {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 5px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: #ffffff !important;
    border: 1px solid transparent;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    color: #ffffff !important;
    background: rgba(221, 16, 91, 0.2) !important;
    border: 1px solid rgba(221, 16, 91, 0.4) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #DD105B !important;
    border: 1px solid #DD105B !important;
}

/* --- Modal --- */
.modal-content {
    background-color: #2C2C2C; /* Darker elevated surface */
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.form-control {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: #DD105B;
    box-shadow: 0 0 0 0.2rem rgba(221, 16, 91, 0.25);
}

/* --- Cards --- */
.card {
    background-color: #2C2C2C;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-header {
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-body {
    color: #ffffff;
}

/* --- Navbar --- */
.navbar-custom {
    background-color: #1E1E1E;
}

.navbar-dark .navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}