* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #fafafa;
    padding: 40px 0;
}


/* ================================================================
   HOOFDLAYOUT
   Links: Nieuw lid + Update lid
   Rechts: Database
   ================================================================ */

.main-dashboard-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    column-gap: 50px;
    width: 100%;
    max-width: 1600px;
    margin: 130px auto 0 auto;
    padding: 0 4%;
    align-items: start;
}


/* ================================================================
   LINKER KOLOM
   Nieuw lid + Update lid staan hier onder elkaar
   ================================================================ */

.left-dashboard-column {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: stretch;
}


/* ================================================================
   NIEUW LID / POST
   ================================================================ */

.swagger-ui-container {
    width: 100%;
    max-width: 600px;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 110px;
}


/* De Dropdown Balk (Swagger POST stijl) */
.api-endpoint-balk {
    background-color: rgba(73, 204, 144, 0.1);
    border: 1px solid #49cc90;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.api-endpoint-balk:hover {
    background-color: rgba(73, 204, 144, 0.15);
}


/* Groene POST badge */
.method-badge {
    background-color: #49cc90;
    color: #ffffff;
    font-weight: bold;
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 3px;
    min-width: 80px;
    text-align: center;
}

.api-path {
    font-family: monospace;
    font-weight: bold;
    color: #3b4151;
    margin-left: 15px;
    font-size: 15px;
}

.api-summary {
    color: #3b4151;
    font-size: 13px;
    margin-left: 15px;
    flex-grow: 1;
}

.arrow-icon {
    color: #3b4151;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.arrow-icon.open {
    transform: rotate(180deg);
}


/* Dropdown Container */
.api-dropdown-content {
    display: none;
    background-color: rgba(73, 204, 144, 0.05);
    border: 1px solid #49cc90;
    border-top: none;
    padding: 20px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}


/* ================================================================
   ADD NEW LID KNOP
   ================================================================ */

.btn-try-out {
    background-color: #49cc90 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 6px 14px !important;
    font-size: 13px !important;
    font-weight: bold !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
}

.btn-try-out:hover {
    background-color: #3ca977 !important;
}


.request-box h4,
.response-box h4 {
    color: #3b4151;
    font-size: 14px;
    margin-bottom: 12px;
}


/* ================================================================
   INPUT FORMULIER
   ================================================================ */

.white-input-card {
    background-color: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.input-group label {
    font-size: 14px;
    font-weight: bold;
    color: #3b4151;
    margin-bottom: 6px;
}

.input-group input {
    padding: 10px 14px;
    font-size: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s;
}

.input-group input:focus {
    border-color: #49cc90;
    box-shadow: 0 0 0 3px rgba(73, 204, 144, 0.2);
}


/* ================================================================
   SUBMIT KNOP
   ================================================================ */

.btn-submit {
    display: block;
    width: 100%;
    background-color: #49cc90;
    color: #ffffff;
    border: none;
    padding: 12px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: #3ca977;
}


/* ================================================================
   RESPONSE PANEEL
   ================================================================ */

.response-box {
    margin-top: 25px;
    border-top: 1px dashed #49cc90;
    padding-top: 20px;
}

#response-output {
    background-color: transparent;
    color: #3b4151;
    padding: 0;
    border-radius: 0;
    font-family: inherit;
    font-size: 16px;
    overflow-x: auto;
    white-space: pre-wrap;
}

/* ================================================================
   AUTORISEREN RECHTSBOVEN
   ================================================================ */

.top-nav-bar {
    position: absolute;
    top: 25px;
    right: 4%;
    z-index: 10;
}


/* De Swagger-stijl knop */
.btn-authorize {
    background-color: #ffffff;
    color: #49cc90;
    border: 2px solid #49cc90;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.btn-authorize:hover {
    background-color: rgba(73, 204, 144, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(73, 204, 144, 0.12);
}


/* State wanneer geautoriseerd */
.btn-authorize.locked {
    color: #f93e3e;
    border-color: #f93e3e;
}

.btn-authorize.locked:hover {
    background-color: rgba(249, 62, 62, 0.05);
}


/* Grotere slot-icoon schaling */
.lock-icon {
    font-size: 17px;
}


/* ================================================================
   POP-UP MODAL
   ================================================================ */

.auth-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 100;
    justify-content: center;
    align-items: center;
}

.auth-modal-card {
    background-color: #ffffff;
    width: 100%;
    max-width: 480px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid #ced4da;
    overflow: hidden;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-modal-header {
    background-color: #f7f7f7;
    padding: 15px 20px;
    border-bottom: 1px solid #ced4da;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-modal-header h3 {
    color: #3b4151;
    font-size: 16px;
    font-weight: bold;
}

.btn-close-modal {
    background: none;
    border: none;
    font-size: 24px;
    color: #aaaaAA;
    cursor: pointer;
}

.btn-close-modal:hover {
    color: #3b4151;
}

.auth-modal-body {
    padding: 25px 20px;
}

.auth-instruction {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 18px;
    line-height: 1.5;
}

.success-text {
    color: #49cc90;
    font-weight: 600;
}


/* Knoppen binnen de pop-up */
.btn-modal-action {
    background-color: #49cc90;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin-top: 5px;
    transition: background-color 0.2s;
}

.btn-modal-action:hover {
    background-color: #3ca977;
}

.modal-footer-buttons {
    display: flex;
    gap: 10px;
}

.btn-modal-cancel {
    background-color: #f93e3e;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin-top: 5px;
}

.btn-modal-cancel:hover {
    background-color: #d63333;
}


/* ================================================================
   DATABASE MONITOR
   ================================================================ */

.database-monitor-container {
    background-color: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    width: 100%;
    margin-top: 20px;
}

.database-monitor-container h3 {
    color: #3b4151;
    font-size: 16px;
    margin-bottom: 4px;
}

.db-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 20px;
}


/* De Harde Buitenlijnen van de Tabel */
.database-table {
    display: flex;
    flex-direction: column;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background-color: #ffffff;
}


/* Grid verdeling voor harde verticale kolommen */
.db-header-row,
.db-data-row {
    display: grid;
    grid-template-columns: 50px 1.5fr 70px 2fr 90px;
    width: 100%;
}


/* Header Rij */
.db-header-row {
    background-color: #f8fafc;
    font-weight: bold;
    color: #3b4151;
    font-size: 13px;
    border-bottom: 2px solid #cbd5e1;
}


/* Data Rij */
.db-data-row {
    border-bottom: 1px solid #e2e8f0;
    color: #4f566b;
    font-size: 13px;
    transition: background-color 0.2s;
}

.db-data-row:hover {
    background-color: #f8fafc;
}

.db-data-row:last-child {
    border-bottom: none;
}


/* Cellen regelen de harde verticale scheidingslijnen */
.db-cell {
    padding: 12px 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-right: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
}


/* Iets dikkere verticale scheidingslijnen in de header */
.db-header-row .db-cell {
    border-right: 1px solid #cbd5e1;
}


/* Haal de verticale lijn weg aan de uiterste rechterkant */
.db-cell:last-child {
    border-right: none;
}


/* Mooie groene badge voor de is_Active status */
.status-badge {
    background-color: #e6f6ee;
    color: #2e7d32;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    display: inline-block;
    text-align: center;
    width: 100%;
}


/* ================================================================
   UPDATE BESTAAND GYM-LID
   ================================================================ */

.update-ui-container {
    width: 100%;
    max-width: 600px;
}


/* Blauwe PUT balk */
.update-endpoint-balk {
    border-color: #61affe;
    background-color: rgba(97, 175, 254, 0.1);
}

.update-endpoint-balk:hover {
    background-color: rgba(97, 175, 254, 0.15);
}

.update-method-badge {
    background-color: #61affe;
}


/* Blauwe dropdown */
.update-dropdown-content {
    border-color: #61affe;
    background-color: rgba(97, 175, 254, 0.05);
}


/* ================================================================
   DELETE BESTAAND GYM-LID
   ================================================================ */

.delete-ui-container {
    width: 100%;
    max-width: 600px;
}


/* Rode DELETE balk */
.delete-endpoint-balk {
    border-color: #f93e3e;
    background-color: rgba(249, 62, 62, 0.1);
}

.delete-endpoint-balk:hover {
    background-color: rgba(249, 62, 62, 0.15);
}


/* Rode DELETE badge */
.delete-method-badge {
    background-color: #f93e3e;
}


/* Rode DELETE dropdown */
.delete-dropdown-content {
    border-color: #f93e3e;
    background-color: rgba(249, 62, 62, 0.05);
}


/* Rode Delete lid knop */
.delete-activate-btn {
    background-color: #f93e3e !important;
}

.delete-activate-btn:hover {
    background-color: #d63333 !important;
}


/* Rode Lid verwijderen knop */
.delete-submit-btn {
    background-color: #f93e3e;
}

.delete-submit-btn:hover {
    background-color: #d63333;
}
