:root {
    --color-primary: #fd6d0d;
    --color-secondary: #6c757d;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
}

body {
    display: flex;
    flex-direction: column;
}

/* Header and Footer */
header, footer {
    width: 100%;
    flex-shrink: 0;
}

footer {
    background-color: #f1f1f1;
    text-align: center;
    padding: 10px;
    margin-top: auto;
}

.nav-link {
    color: white !important;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Typography */
h2, h3 {
    color: #343a40;
}

pre {
    background: #e9ecef;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
}

/* Navbar */
.navbar-brand {
    font-weight: bold;
}

/* Footer */
footer {
    background-color: #f1f1f1;
    text-align: center;
    padding: 10px;
    margin-top: auto;
}

/* Form Styles */
form {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.form-wrapper form {
    box-shadow: none;
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

form input, form textarea, form button, #editor-toolbar button {
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

form button, #editor-toolbar button {
    background-color: var(--color-primary);
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

form button:hover {
    background-color: #e65c00;
}

/* Call Guides Styles */
.crowd {
    color: red;
}

.captain {
    color: red;
    text-decoration: underline;
}

.uo {
    color: orange;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.action {
    color: blue;
}

.lyrics {
    color: black;
}

.title {
    color: black;
    font-weight: bold;
    font-size: large;
}

.credits {
    color: gray;
    font-size: small;
    font-style: italic;
    margin-top: 0;
    margin-bottom: 0;
}

/* Utility Classes */
.background-primary {
    background-color: var(--color-primary) !important;
}

main {
    flex: 1;
}

/* Structuur voor series en songs */
.series {
    margin-bottom: 40px;
}

.group {
    margin-bottom: 20px;
}

.song-list {
    list-style: none;
    padding-left: 0;
}

.song-list li {
    margin-bottom: 5px;
}

/* Wrapper for the content */
.content-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Accordion Container */
.accordion-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0 auto;
}

.main-group {
    background-color: #ffffff;
    border: 2px solid var(--color-primary);
    padding: 15px;
    padding-right: 50px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.main-group:hover {
    background-color: var(--color-primary);
    color: #fff;
}

.main-group:hover > .subgroup-list {
    background-color: inherit;
}

.accordion-container a {
    text-decoration: none;
    color: inherit !important;
}

/* Accordion Indicator */
.main-group::after {
    content: '➕';
    font-size: 16px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #333;
    transition: color 0.3s ease, transform 0.3s ease;
}

.main-group.active::after {
    content: '➖';
    color: #fff;
    transform: translateY(-50%) rotate(180deg);
}

/* Subgroup List Styling */
.subgroup-list {
    display: none;
    padding: 10px 15px;
    margin-left: 0;
    margin-top: 10px;
    border-left: 2px solid var(--color-secondary);
    background-color: #f9f9f9;
    border-radius: 8px;
}

.subgroup-list a {
    display: block;
    font-size: 16px;
    color: #007bff;
    text-decoration: none;
    padding: 5px 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.subgroup-list a:hover {
    background-color: #e9ecef;
    color: var(--color-primary);
}

/* Subgroup Item Styling */
.subgroup-item {
    margin-bottom: 12px;
}

.subgroup-item strong {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: bold;
    color: #555;
}

/* Song List Styling */
.song-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.song-item {
    margin-bottom: 8px;
    padding: 6px 10px;
    background-color: #eef3f7;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.song-item a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    font-size: 14px;
    transition: color 0.3s ease;
}

.song-item:hover {
    background-color: #d7e5f1;
    transform: scale(1.02);
}

.song-item a:hover {
    color: #0056b3;
}

/* Markdown Editor Specific Styles */
.container-main {
    display: flex;
    gap: 20px;
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
}

.cheat-sheet-container {
    flex: 0 0 20%;
    max-width: 200px;
    background: #ffffff;
    border: 1px solid var(--color-secondary);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    height: 500px;
}

.cheat-sheet-title {
    background-color: var(--color-primary);
    color: #ffffff;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.cheat-sheet-content h3 {
    font-size: 14px;
    margin-top: 10px;
    color: var(--color-secondary);
}

.cheat-sheet-content ul {
    list-style: none;
    padding-left: 15px;
    font-size: 12px;
}

.cheat-sheet-content li, .cheat-sheet-content pre {
    margin-bottom: 10px;
    font-size: 12px;
}

/* Panels equal width */
.editor-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Editor and Preview Layout */
.editor-preview-container {
    margin-top: 20px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Editor and Preview Container */
.editor-live-preview {
    display: flex;
    gap: 20px;
}

textarea.markdown-input,
.markdown-preview {
    width: 50%;
    height: 450px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-family: monospace, sans-serif;
}

.markdown-preview {
    background: #f9f9f9;
    overflow-y: auto;
}

/* Modal Styling for Cheat Sheet */
.modal-body ul {
    padding: 0;
    font-size: 14px;
}

.modal-body ul li {
    margin-bottom: 10px;
}

.modal-body pre {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
}

.modal-body {
    font-size: 14px;
}

/* Button Styles */
button[type="submit"] {
    width: 100%;
    font-weight: bold;
    font-size: 16px;
}

/* Wrapper Specific to Submit Form */
.form-wrapper {
    width: 80%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

select {
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.select2-selection__choice {
    padding: 0px;
}

.select2-selection__choice__remove {
    padding: 0px;
    text-align: left;
}


form select[multiple] {
    height: auto;               /* Let it grow with content */
    min-height: 120px;          /* Ensures enough space */
    overflow-y: auto;           /* Scroll if too many options */
    resize: vertical;           /* Optional: allow resizing */
}

.submission-form {
    display: none;
}

.submission-form button[type="submit"] {
    background-color: var(--color-primary);
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-weight: bold;
    margin-top: 20px;
}

#editor-toolbar {
    display: flex;
    justify-content: start;
    flex-direction: row;
    gap: 2%;
}

/* Editor and Preview Container */
.editor-live-preview {
    display: flex;
    gap: 20px;
}

textarea.markdown-input,
.markdown-preview {
    width: 50%;
    height: 400px;
    padding: 10px;
    font-family: monospace, sans-serif;
    font-size: 14px;
    border: 1px solid #ccc;
    background: #f9f9f9;
    border-radius: 5px;
    box-shadow: none;
    box-sizing: border-box;
    overflow-y: auto;
}

textarea.markdown-input {
    resize: vertical;
}

.markdown-preview {
    overflow-y: auto;
}
/* Editor Toolbar */
.toolbar {
    display: flex;
    justify-content: start;
    gap: 8px;
    padding: 5px;
    margin-bottom: 10px;
}

.toolbar button {
    padding: 5px 10px;
    font-size: 12px;
    background-color: #6c757d;
    color: #ffffff;
    border: 1px solid #6c757d;
    border-radius: 4px;
    cursor: pointer;
    text-transform: capitalize;
    transition: background-color 0.3s, transform 0.2s;
}

.toolbar button:hover {
    background-color: #5a6268;
}

.toolbar button:active {
    transform: scale(0.95);
}

#editor-toolbar {
    margin-bottom: 10px;
}

/* Search form */
.search-form {
    margin-bottom: 0px;
    box-shadow: none;
}

.search-form > div {
    display: flex;
    justify-content: space-between;
}

.search-form > div > select {
    width: 12.5%;
    height: 50px;
}

.search-form > div input {
    width: 85% !important;
    height: 50px;
}

/* Search result */
.search-result-list {
    list-style: none;
    padding-left: 0;
}

.search-results-list li {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.search-results-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.search-results-list li {
    margin-bottom: 10px;
}


.search-results-list li a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s ease;
}

.search-results-list li a:hover {
    color: #0056b3;
}

/* Checkbox Styles */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    appearance: none;
    border: 2px solid var(--color-secondary);
    border-radius: 4px;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

input[type="checkbox"]:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M14.27 4.27a1 1 0 0 1 0 1.41l-7 7a1 1 0 0 1-1.41 0l-4-4a1 1 0 1 1 1.41-1.41L6.59 10.59l6.3-6.3a1 1 0 0 1 1.41 0z'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 14px;
}

input[type="checkbox"]:hover {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.checkbox-container label {
    font-size: 16px;
    color: #333;
    cursor: pointer;
}

input[type="checkbox"]:disabled {
    background-color: #e9ecef;
    border-color: #ced4da;
    cursor: not-allowed;
}

/* Artist profile */
.artist-profile, .album-profile{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: left;
    gap: 20px;
    margin-bottom: 20px;

    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 8px;

    width: 100%;
}

.artist-profile > div {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

.artist-profile > div:nth-of-type(1) > div {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.artist-profile > div:nth-of-type(2) {
    justify-content: space-between;
    gap: 2%;
}

.artist-profile > div:nth-of-type(2) > div {
    width: 49%;
}

.artist-profile ul, .album-profile ul {
    list-style: none;
    padding-left: 0;
}

.artist-profile ul li, .album-profile ul li {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.artist-profile ul li a, .album-profile ul li a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s ease;
}

.artist-profile ul li p, .album-profile ul li p {
    margin: 0;
}

.artist-profile img, .album-profile img {
    width: 300px;
    height: 300px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 20px;
}

.artist-profile .child-artists {
    display: flex;
    flex-direction: column !important;
    justify-content: left;
    width: 25%;
    gap: 20px;
}

.child-artists > h3 {
    text-align: left;
    width: 100%;
    margin-bottom: 0px;
}

.child-artists > ul {
    width: 100%;
}

/* Artist profile */

.album-profile > div:nth-of-type(1) {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

.album-profile > div:nth-of-type(1) > div:nth-of-type(1) {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.album-profile > div:nth-of-type(1) > div:nth-of-type(2) {
    width: 25%;
}

.album-profile > div:nth-of-type(2) {
    width: 100%;
}

/* Song page */

.song-info {
    color: gray;
    font-size: small;
    font-style: italic;
    margin-top: 0;
    margin-bottom: 0;
}

.song-info p {
    margin: 0;
}

.song-artists {
    width: 25%;
}

.song-artists ul, .song-albums ul {
    width: 100%;
    list-style: none;
    padding-left: 0;
}

.song-artists li, .song-albums li {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.song-info-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

.song-albums {
    margin-top: 20px;
}

.guide-content {
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    margin-top: 0;
}

/* Admin panel */

.submission-section {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #fff;
    border-left: 6px solid var(--color-primary);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.submission-section h3 {
    margin-bottom: 20px;
    color: var(--color-primary);
}

.artist-submissions li,
.album-submissions li,
.song-submissions li,
.guide-submissions li {
    list-style: none;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background-color: #fefefe;
    transition: box-shadow 0.3s;
}

.artist-submissions li:hover,
.album-submissions li:hover,
.song-submissions li:hover,
.guide-submissions li:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.approval-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.modal-content {
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background-color: var(--color-primary);
    color: white;
    border-bottom: none;
}

.modal-footer {
    border-top: none;
}

.submission-section .artist-image, .submission-section .album-image {
    max-width: 150px;
    height: auto;
    border-radius: 8px;
}

/* Grid layout for artist cards */
.artist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Ensures 2 cards fit side by side */
    gap: 20px;
    margin-top: 20px;
}

/* Compact artist card */
.artist-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    overflow: hidden;
    display: flex; /* Use flex for horizontal layout */
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 8px; /* Add padding inside */
    gap: 12px; /* Space between image and text */
}

.artist-card:hover {
    transform: translateY(-3px);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Link styling */
.artist-card-content {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

/* Artist image styling */
.artist-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover; /* Maintain aspect ratio inside the container */
    flex-shrink: 0; /* Prevent the image from shrinking */
    margin-right: 1rem;
}

/* Artist text container */
.artist-text {
    flex-grow: 1; /* Ensure text uses the remaining space */
}

/* Artist name */
.artist-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
}

.artist-name-romanized {
    font-size: 0.9rem;
    color: #666;
    margin-top: 4px;
}