.content-area {
    background: var(--sub-white);
    z-index: 1;

    position: absolute;
    left: 270px;
    top: 60px;
    min-height: calc(100vh - 60px);

    padding: 0 15px;
}

.content-area-index {
    left: 0 !important;
    width: 100vw !important;
}

.content-area-app,
.content-area-guide {
    width: 80%;
    background: white;
    margin: 60px 0 0 0;
    border-radius: 8px;
    filter: drop-shadow(3px 3px 4px #1016161d);
}
.content-area-place {
    width: calc(100vw - 620px);
}

.content-area .card-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    align-content: flex-start;

    padding-bottom: 15px;

    overflow-y: auto;
}
.full-width-section-header {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 32px;
    padding: 16px 0 24px 0;
    align-items: center;
    align-content: center;
}

.full-width-section-header * {
    align-self: center;
}

table.dataTable thead th {
    background-color: #F5F7F9;  /* Replace with your desired color */
    color: #555555;               /* Optional: change text color to contrast with the background */
}

/* Change row height */
table.dataTable tbody tr {
    height: 77px;  /* Adjust this value as needed */
}

/* Alternating row colors */
table.dataTable tbody tr.odd {
    background-color: #f9f9f9;  /* Light grey for odd rows */
}

table.dataTable tbody tr.even {
    background-color: #ffffff;  /* White for even rows */
}

/* Highlight row on hover */
table.dataTable tbody tr:hover {
    background-color: #f1f1f1;  /* Light highlight color */
}

span.published-status {
    padding: 4px 8px; /* Padding around text */
    border-radius: 4px; /* Rounded corners */
    font-size: 14px; /* Font size */
    display: inline-block; /* Make it behave like an inline element */
}

span.published {
    background-color: #DAFAE1;
    color: #34583F; /* Dark green text color */
}
span.draft {
    background-color: #CBEBFF; /* Light green background */
    color: #115498;
}

.editor-container {
    position: relative;
    display: flex;
    flex-wrap: wrap; /* Allow wrapping of items */
    gap: 10px;
    width: 100%;
}

#table-places {
    width: 100%;
}

.editor-column {
    background-color: white;
    padding: 20px;
    box-sizing: border-box;
    border-width: 2px;
    border-radius: 8px;
    border-color: #A0A0A0;
}

.editor-single-column {
    flex: 1 1 45%; /* Takes up 45% of the container width */
}

.editor-double-column {
    flex: 2 1 90%; /* Takes up 90% of the container width */
}

/* Optional: For styling */
.editor-column {
    border: 1px solid #ccc;
}
#editorAppPlaceMap {
    aspect-ratio: 16 / 9;
}

.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.field input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.field small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category {
    background-color: #f4d03f;
    color: #333;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}

.category button.remove-category {
    background: none;
    border: none;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    margin-left: 8px;
}

.add-category {
    background-color: transparent;
    border: 1px solid #ccc;
    padding: 8px 15px;
    color: #333;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.add-category:hover {
    background-color: #f0f0f0;
}

.field label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.field input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.field small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.field-media {
    display: flex;
    flex-direction: row;
    align-items: center;      /* vertically center if needed */
    height: 110px;
    gap: 8px;                 /* optional spacing between items */
    overflow-x: auto;
}

.media-preview {
    flex: 0 0 100px;          /* do not grow or shrink, fixed 100px width */
    height: 100px;
    box-sizing: border-box;
    background: #eee;         /* visual placeholder */
    border: 1px solid #ccc;
}

.sortable-ghost {
    opacity: 0.4;
    background-color: #ddd;
    border: 2px dashed #888;
}

.media-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category {
    background-color: #f4d03f;
    color: #333;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}

.home-module-gap {
    gap: 20px 5px;
}

.category button.remove-category {
    background: none;
    border: none;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    margin-left: 8px;
}

.add-category {
    background-color: transparent;
    border: 1px solid #ccc;
    padding: 8px 15px;
    color: #333;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.add-category:hover {
    background-color: #f0f0f0;
}

.input-with-clear {
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-with-clear input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.clear-btn {
    background-color: transparent;
    border: none;
    color: #d9534f;
    font-size: 14px;
    cursor: pointer;
    padding: 5px;
}

.clear-btn:hover {
    text-decoration: underline;
}

.media-upload {
    width: 98px;
    height: 98px;
    border: 2px dashed #ccc;
    background-color: #f9f9f9;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    padding: 30px;
}

textarea#textContent {

    width: 100%;
    height: 100px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

textarea:focus {
    outline-color: #4f81bd;
}

.table-row-icon {
    width: 40px;
    height: 40px;
    padding: 10px;"
}

.media-selector-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* spacing between grid items */
    padding: 10px;
}

.item-selector-container {
    display: flex;
    flex-direction: column;
    width: 100%;

    height: 100%;         /* relative height */
    overflow: auto;
}
.dataTables_wrapper {
    flex: 1;
    overflow: hidden;
}

.rows {
    flex-direction: row;
}

.media-selector-item {
    width: 100px;
    height: 100px;
    background-color: #eee;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.9rem;
}

.media-selector-item img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* maintain aspect ratio */
}

.media-selector-row-item {
    width: 100%;
    height: 48px;
    background-color: #eee;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    text-align: center;
    font-size: 0.9rem;
}
.sound {
    display: flex;
    align-content: center;
    height: 80px;
}

.sound-item {
    display: flex;
    flex-direction: column;
    width: 90%;
    height: 80px;
    border-radius: 4px;
    background-color: #FFF;
    border: 1px solid #A0A0A0;
}

.sound-item-text {
    height: 20px;
    margin: 8px 20px 4px 20px;
}

.sound-item-player {
    margin: 4px 20px 8px 20px;
}

.delete-container {
    display: flex;
    height: 80px;
    justify-content: center;
    align-items: center;
    margin-left: 16px;
}

.delete-container button {
    height: 40px;
    width: 40px;
    border-radius: 4px;
    background-color: #FFF;
}

.media-selector-row-item img {
    height: 100%;
    object-fit: contain; /* maintain aspect ratio */
    aspect-ratio: 1 / 1;
}

.media-preview .remove-media-item {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 14px;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    cursor: pointer;
    display: none; /* Optional: only show on hover */
}

/* Show the X on hover */
.media-preview:hover .remove-media-item {
    display: block;
}

.media-preview-container {
    position: relative;
    height: 100px;
    width: 100px;

}

.back-to-overview {
    display: flex;
    gap: 4px;
    font-size: 14px;
    color: #555;
    min-width: 125px;
}
.back-to-overview a{
    font-size: 14px;
    color: #555;
    min-width: 125px;
}
.header-button-container {
    display: flex;
    margin-left: auto;
    gap: 24px;
}

.module-container {
    width: 300px;
    display: flex;
    flex-direction: column;  /* stack rows vertically */
    gap: 1rem;
}
.module-row:first-child {
    margin-top: 20px; /* pushes everything else to the right */
}

.module-row:last-child {
    margin-bottom: 20px; /* pushes everything else to the right */
}

.module-row {
    display: flex;           /* label + input side by side */
    align-items: center;     /* vertical alignment */
    gap: 0.5rem;
    margin-left: 1rem;
    margin-right: 1rem;
}

.module-row label {
    flex: 0 0 100px;         /* fixed label width */
    font-weight: bold;
}

.module-row input {
    flex: 1;                 /* input grows to fill space */
    padding: 0.4rem;
}