/* Reset and basic styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #121212; /* Dark background */
    color: #e0e0e0; /* Light text color for contrast */
    font-family: Arial, sans-serif;
    padding: 20px;
    line-height: 1.6;
}

/* Headings */
h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
}

h2 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 24px;
    margin-top: 20px;
}

h3 {
    font-size: 20px;
    margin: 0;
    padding: 12px;
    background-color: #2e2e2e;
    color: #ffffff;
    text-align: center;
}

/* Form container and columns */
.form-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.form-column {
    flex: 1 1 calc(25% - 20px); /* Four columns */
    min-width: 250px;
}

@media (max-width: 1200px) {
    .form-column {
        flex: 1 1 calc(50% - 20px); /* Two columns */
    }
}

@media (max-width: 800px) {
    .form-column {
        flex: 1 1 100%; /* Single column */
    }
}

/* Form groups */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #bbbbbb;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #444;
    background-color: #1e1e1e;
    color: #e0e0e0;
    font-size: 14px;
}

.form-group input::placeholder {
    color: #777777;
}

.form-group input:focus {
    border-color: #1f78d1;
    outline: none;
}

/* Submit button */
.submit-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #1f78d1;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 30px;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #1565c0;
}

/* Messages */
.message {
    text-align: center;
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.success-message {
    background-color: #388e3c;
    color: #ffffff;
}

.load-message {
    background-color: #1976d2;
    color: #ffffff;
}

/* Collapsible Dungeon Buttons */
.collapsible {
    background-color: #2e2e2e;
    color: #e0e0e0;
    cursor: pointer;
    padding: 12px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    font-size: 20px;
    margin-bottom: 5px;
    border-radius: 8px;
}

.active, .collapsible:hover {
    background-color: #3a3a3a;
}

.collapsible::after {
    content: '\25bc'; /* Down arrow */
    float: right;
    margin-left: 5px;
}

.active::after {
    content: "\25b2"; /* Up arrow */
}

/* Dungeon Content */
.content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: transparent;
    margin-bottom: 15px;
}

.content.show {
    max-height: 10000px; /* A large value to ensure full height */
}

/* Bosses Container */
.bosses-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

/* Boss Card */
.boss-card {
    background-color: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    flex: 1 1 calc(50% - 20px); /* Two cards per row */
    min-width: 300px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.boss-card h3 {
    background-color: #2e2e2e;
    color: #ffffff;
    margin: 0;
    padding: 12px;
    font-size: 20px;
    text-align: center;
}

/* Boss Content Container */
.boss-content-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    padding: 15px;
}

.boss-content-container .boss-base-table,
.boss-content-container .boss-player-table {
    flex: 1;
    min-width: 200px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .boss-card {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 800px) {
    .boss-card {
        flex: 1 1 100%;
    }

    .boss-content-container {
        flex-direction: column;
    }

    .form-container {
        flex-direction: column;
    }
}

/* Tables within boss cards */
.boss-content-container table {
    width: 100%;
    border-collapse: collapse;
    background-color: #1e1e1e;
}

.boss-content-container table th,
.boss-content-container table td {
    border: 1px solid #444;
    padding: 8px;
    text-align: left;
    font-size: 14px;
}

.boss-content-container table th {
    background-color: #2e2e2e;
    color: #ffffff;
}

.boss-content-container table tr:nth-child(even) {
    background-color: #2a2a2a;
}

.boss-content-container table caption {
    caption-side: top;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
    color: #ffffff;
}

/* Adjustments for tables and forms */
table {
    margin-bottom: 20px;
}

table th,
table td {
    text-align: left;
}

table th {
    font-weight: bold;
}

.form-column h2 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #ffffff;
    text-align: center;
}

.form-column h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 18px;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
    color: #ffffff;
}

/* Scrollbar styles */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #1e1e1e;
}

::-webkit-scrollbar-thumb {
    background-color: #3a3a3a;
    border-radius: 6px;
    border: 3px solid #1e1e1e;
}

/* Adjust font sizes for better hierarchy */
body {
    font-size: 16px;
}

p {
    margin-bottom: 10px;
}

code {
    background-color: #1e1e1e;
    padding: 2px 4px;
    border-radius: 4px;
}

/* Button adjustments */
.submit-btn {
    margin-top: 30px;
}
