/* General Styles */
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f9f9f9;
}

.container {
    max-width: 1000px; /* Increased max-width to fit larger images */
    margin: 70px auto 20px; /* Added top margin for header */
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Ensures overflow content is hidden */
}

/* Header Styles */
.header {
    background-color: #f1f1f1;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ccc;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-sizing: border-box;
}

.header .nav-left,
.header .nav-right {
    display: flex;
    align-items: center;
}

.header .nav-left a,
.header .nav-right a {
    margin: 0 10px;
    text-decoration: none;
    color: #333; /* Default text color */
    font-weight: normal; /* Normal font weight */
}

.header .nav-right {
    margin-left: auto;
}

.header .back-button {
    font-size: 24px;
    text-decoration: none;
    color: #333; /* Default text color */
    font-weight: normal; /* Normal font weight */
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: #3e8e41;
}

/* Ensure content starts below the header */
.container {
    padding-top: 1px; /* Adjusted to ensure content starts below the header */
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header .nav-left,
    .header .nav-right {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .header .nav-left a,
    .header .nav-right a {
        margin: 5px 0;
    }
}

h1 {
    text-align: center;
    color: #333;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

input[type="text"],
select,
textarea {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

button,
a.button {
    display: inline-block;
    padding: 10px 20px;
    margin-right: 10px;
    border: 2px solid #e30613; /* Red border */
    border-radius: 50px; /* Rounded corners */
    background-color: transparent; /* Transparent background */
    color: #e30613; /* Red text color */
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease; /* Smooth transition */
}

button:hover,
a.button:hover {
    background-color: #e30613; /* Red background on hover */
    color: #fff; /* White text on hover */
}

.button-group {
    display: flex;
    justify-content: center; /* Center the buttons */
    gap: 10px; /* Space between buttons */
    margin-bottom: 20px;
}

.add-option-btn {
    background-color: #28a745;
}

.add-option-btn:hover {
    background-color: #218838;
}

.options-block {
    margin-bottom: 15px;
}

.option-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.option-wrapper input[type="text"] {
    margin-left: 10px;
}

.option-wrapper input[type="radio"],
.option-wrapper input[type="checkbox"] {
    margin: 0;
}

.question-block {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
}

.question-block:nth-child(even) {
    background-color: #f7f7f7;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th,
table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    font-size: 16px;
}

table th {
    background-color: #f2f2f2;
    color: #333;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tr:hover {
    background-color: #f1f1f1;
}

a {
    color: #e30613; /* Red text color */
    text-decoration: none;
    font-weight: normal; /* Normal font weight */
}

a:hover {
    text-decoration: underline;
}

/* Input container styling */
.input-container {
    margin-bottom: 15px;
}

/* Actions column styling */
.actions {
    text-align: right;
}

.actions .button {
    margin-bottom: 5px;
}

.actions a:last-child {
    margin-right: 0;
}

/* Survey list header button styling */
.header-button {
    display: block;
    margin-bottom: 20px;
}

/* Additional adjustments for better layout */
.form-group {
    margin-bottom: 20px;
}

button {
    margin: 5px 0;
}

/* Center buttons */
.button-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .button-container {
        flex-direction: column;
    }

    .button-container .button {
        margin-bottom: 10px;
        width: 100%;
        text-align: center;
    }
}

.slider {
    position: relative;
    width: 100%;
    max-width: 100%; /* Ensure the slider fits within the container */
    margin: 20px auto;
    overflow: hidden;
    border: 2px solid #ddd;
    border-radius: 10px;
    background: #f9f9f9;
}

.slider img {
    width: 100%;
    height: auto; /* Ensure images maintain their aspect ratio */
    object-fit: contain; /* Ensure images are fully visible within the slider */
    display: none;
}

.slider img.active {
    display: block;
}

/* Additional Styles for Image Group */
.image-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* Space between images */
    margin-top: 20px; /* Space above the image group */
}

.image-group img {
    width: 100%;
    max-width: 100%; /* Match the width of the slider */
    height: auto;
    border: 2px solid #ddd;
    border-radius: 10px;
}
/* Example CSS adjustment for spacing */
.button {
    margin-bottom: 20px; /* Add more space below the button */
}

.search-field {
    margin-top: 20px; /* Add more space above the search field */
}
