/* General Body Styling */
body {
    font-family: 'Times New Roman', serif;
    margin: 0;
    padding: 0;
    background-color: #2e2e2e; /* Dark stone-like background */
    color: #eaeaea; /* Slightly off-white for better readability */
    line-height: 1.6;
    padding-left: 20px;
    padding-right: 20px;
}

/* Header Styling */
h1 {
    text-align: center;
    color: #f0c674; /* Golden color for headers */
    margin: 20px 0;
    font-size: 2.5rem;
    text-shadow: 2px 2px #000; /* Adds depth */
    padding-left: 20px;
    padding-right: 20px;
}

/* Section Headings */
h2 {
    color: #f0c674; /* Golden color */
    margin-top: 0; /* Remove the margin top */
    margin-bottom: 0; /* Remove the margin bottom */
    font-size: 1.8rem;
    text-shadow: 1px 1px #000;
    padding: 10px;
    background-color: #4a3616; /* Dark wood color */
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-bottom: 2px solid #6b4a22; /* Add a bottom border to connect it with content */
}

h2:hover {
    background-color: #6b4a22; /* Lighter wood color on hover */
}

h2 .toggle-icon {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Collapsible Section Styling */
.collapsible-content {
    display: none;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.8); /* Dark semi-transparent background */
    margin-top: 0; /* Remove the margin top */
    margin-bottom: 10px; /* Add a little space after the collapsible content */
    border-radius: 5px;
    border-top: 1px solid #6b4a22; /* Add a top border to connect the content with the title */
}

/* Table Styling */
table {
    width: 100%;
    max-width: 1200px; /* Ensure table doesn't stretch too wide */
    margin: 20px auto; /* Center the table */
    border-collapse: collapse;
    border: 2px solid #6b4a22; /* Wooden border */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.8); /* Semi-transparent black */
}

th, td {
    padding: 15px;
    text-align: center;
    border: 1px solid #6b4a22; /* Wooden border */
    color: #eaeaea;
}

th {
    background-color: #4a3616; /* Dark wood */
    color: #f0c674;
    font-size: 1rem;
    text-shadow: 1px 1px #000;
}

tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.1); /* Transparent white */
}

tr:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Lighter hover effect */
    cursor: pointer;
}

/* Market Rate Input Styling */
input[type="text"].market-rate-input {
    width: 100%; /* Make input span the entire cell */
    padding: 12px; /* Add some padding to make the input look more substantial */
    text-align: center; /* Center the text inside the input */
    font-size: 1.1rem; /* Increase font size for better readability */
    background-color: #2e2e2e; /* Dark background */
    color: #eaeaea; /* Light text */
    border: 1px solid #6b4a22; /* Wooden border to match theme */
    border-radius: 5px; /* Rounded corners */
    box-sizing: border-box; /* Ensure padding is included in the width */
    transition: background-color 0.3s ease;
}

input[type="text"].market-rate-input:focus {
    background-color: #4a3616; /* Dark wood color on focus */
    border-color: #f0c674; /* Golden border on focus */
    outline: none; /* Remove default outline */
}

/* Form Styling */
form {
    max-width: 800px;
    margin: 20px auto;
    background: rgba(0, 0, 0, 0.9); /* Dark semi-transparent background */
    padding: 30px;
    border-radius: 8px;
    border: 2px solid #6b4a22; /* Wooden border */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

form label {
    display: block;
    font-size: 1rem;
    color: #f0c674;
    margin: 10px 0 5px;
}

form input, form select, form button {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #6b4a22; /* Wooden border */
    border-radius: 5px;
    font-size: 1rem;
    background-color: #2e2e2e;
    color: #eaeaea;
    box-sizing: border-box;
}

form button {
    background-color: #4a3616; /* Dark wood */
    color: #f0c674;
    border: 1px solid #6b4a22;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #6b4a22; /* Lighter wood */
}

/* Button Styling */
button {
    display: block;
    width: 200px;
    margin: 20px auto;
    padding: 10px;
    font-size: 1rem;
    background-color: #4a3616;
    color: #f0c674;
    border: 1px solid #6b4a22;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #6b4a22;
}

/* Dropdown Styling */
select {
    background-color: #2e2e2e;
    color: #eaeaea;
    border: 1px solid #6b4a22;
    padding: 10px;
    border-radius: 5px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    body {
        padding-left: 10px;
        padding-right: 10px;
    }

    table, form {
        width: 100%;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    form {
        padding: 20px;
    }

    button {
        width: 100%;
    }
}
/* ===========================================
   STYLING <summary> LIKE YOUR OLD SECTION HEADINGS
   =========================================== */
   details summary {
    color: #f0c674;           /* Golden text color */
    font-size: 1.8rem;        /* Same size as your h2 */
    text-shadow: 1px 1px #000;
    padding: 10px;
    margin: 0;                /* Remove extra margins */
    background-color: #4a3616; 
    border-radius: 5px;
    display: flex;

    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-bottom: 2px solid #6b4a22; /* same "wooden" border as before */
  }
  
  /* Hover effect, just like the old h2:hover */
  details summary:hover {
    background-color: #6b4a22; /* Lighter wood color on hover */
  }
  
  /* If you want to replace the default disclosure arrow with your own,
     you can hide it via the webkit marker, then manually add your own icons */
  summary::-webkit-details-marker {
    display: none;
  }
  
  /* Alternatively, you can replace the default arrow with a custom one:
     "►" (closed) and "▼" (open) as you did before */
  details summary::before {
    content: "► ";
    margin-right: 5px;
  }
  details[open] summary::before {
    content: "▼ ";
  }
  
  /* If you need to style the arrow itself differently, 
     you could wrap it in a span, but often the pseudo-element is enough. */