 body {
      font-family: Arial, sans-serif;
      margin: 0;
      padding: 0;
      background-color: #f4f4f4;
    }

    /* Tab Menu Styles */
    .tabs {
      display: flex;
      justify-content: space-around;
      background-color: #333;
    }
    
    .tab {
      padding: 15px;
      cursor: pointer;
      color: white;
      text-align: center;
      flex: 1;
      border: 1px solid #ddd;
      transition: background-color 0.3s ease;
    }

    .tab:hover {
      background-color: #575757;
    }

    .tab.active {
      background-color: #007BFF;
    }

    /* Tab Content Styles */
    .tab-content {
      display: none;
      padding: 20px;
      background-color: white;
      border: 1px solid #ddd;
      border-top: none;
    }

    .tab-content.active {
      display: block;
    }

    /* Form Input Styles */
    .form-group {
      margin-bottom: 15px;
    }

    .form-group label {
      font-weight: bold;
    }

    .form-group input, .form-group select {
      width: 100%;
      padding: 10px;
      font-size: 14px;
      border-radius: 5px;
      border: 1px solid #ccc;
      box-sizing: border-box;
    }

    .form-group input[type="file"] {
      padding: 3px;
    }

    /* Submit Button */
    .submit-btn {
      background-color: #28a745;
      color: white;
      padding: 10px 20px;
      font-size: 16px;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      display: block;
      width: 100%;
    }

    .submit-btn:hover {
      background-color: #218838;
    }
/* Reset default styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styling */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa;
    color: #343a40;
    padding: 30px;
    line-height: 1.6;
}

/* Header Styling */
h1 {
    text-align: center;
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Form labels */
label {
    font-size: 1.1em;
    font-weight: bold;
    margin-right: 10px;
    color: #34495e;
}

/* Select dropdown and input fields */
select, input[type="checkbox"] {
    padding: 8px;
    font-size: 1.1em;
    border-radius: 5px;
    border: 2px solid #ddd;
    margin: 10px 0;
    transition: all 0.3s ease;
}

/* Hover effect on select dropdown */
select:hover, input[type="checkbox"]:hover {
    border-color: #3498db;
}

/* Button Styling */
button {
    background-color: #3498db;
    color: white;
    padding: 12px 20px;
    font-size: 1.1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

button:hover {
    background-color: #2980b9;
}

/* Buttons for Show/Hide Answer/Remove */
input[type="checkbox"]:checked + label {
    color: #3498db;
}

/* Styling for chapters, topics and questions */
div[id^="chapter"], div[id^="topic"], div[id^="mcqQuestions"], div[id^="shortQuestions"], div[id^="longQuestions"] {
    margin-top: 20px;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Styling for checkboxes in the chapter/topic sections */
label input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.1);
}

/* Table Styling */
table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

table th, table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

/* Table Header Styling */
table th {
    background-color: #3498db;
    color: white;
    font-weight: bold;
}

/* Table Row Hover Effect */
table tr:hover {
    background-color: #ecf0f1;
}

/* Table Row Styling for Odd and Even */
table tr:nth-child(odd) {
    background-color: #f9f9f9;
}

table tr:nth-child(even) {
    background-color: #f1f1f1;
}

/* Styling for the remove buttons in the table */
button.remove-btn {
    background-color: #e74c3c;
    color: white;
    font-size: 1em;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
}

button.remove-btn:hover {
    background-color: #c0392b;
}

/* Toggle visibility of columns in tables */
input[type="checkbox"]:checked + label {
    color: #3498db;
}

/* Styling for the topic selection section */
#topic {
    margin-top: 15px;
}

/* Card-like sections for questions */
.question-card {
    background-color: #ecf0f1;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.question-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

/* Label for checkboxes inside question cards */
.question-card label {
    font-size: 1em;
    color: #34495e;
}

/* Styling for question inputs */
input[type="checkbox"] {
    margin-left: 15px;
}

/* Scrollable box for MCQs, Short Questions, and Long Questions */
#mcqQuestions, #shortQuestions, #longQuestions {
    max-height: 300px; /* Set max height for scrollable box */
    overflow-y: auto;  /* Enable vertical scrolling */
    padding-right: 15px; /* To avoid scrollbar overlap */
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Scrollbar Styling */
#mcqQuestions::-webkit-scrollbar, #shortQuestions::-webkit-scrollbar, #longQuestions::-webkit-scrollbar {
    width: 8px;
}

#mcqQuestions::-webkit-scrollbar-thumb, #shortQuestions::-webkit-scrollbar-thumb, #longQuestions::-webkit-scrollbar-thumb {
    background-color: #3498db;
    border-radius: 10px;
}

#mcqQuestions::-webkit-scrollbar-track, #shortQuestions::-webkit-scrollbar-track, #longQuestions::-webkit-scrollbar-track {
    background-color: #f1f1f1;
}

/* Responsive Styling */
@media (max-width: 768px) {
    body {
        padding: 20px;
    }

    h1 {
        font-size: 1.8em;
    }

    select, input[type="checkbox"] {
        width: 100%;
        font-size: 1em;
    }

    button {
        width: 100%;
    }

    table {
        font-size: 0.9em;
    }

    #mcqQuestions, #shortQuestions, #longQuestions {
        max-height: 200px; /* Adjust max height for mobile */
    }
}
