.responsive-container {
  max-width: 2000px;
    margin: 0;
  padding: 0;

  box-sizing: border-box;
}


body {
    font-size: 1rem; /* Base size */

  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background: #f5f5f5;
    overflow-x: hidden;
}

.ssc-wrapper {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* Header */
.ssc-header {
  background: #fff;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ccc;
}
.ssc-title {
  font-size: 1.5rem;
  font-weight: bold;
}
.ssc-timer {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.ssc-roll {
  font-size: 14px;
  color: #555;
}

/* Main Content */
.ssc-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Sidebar */
.ssc-sidebar {
  width: 280px;
  background: #fff;
  padding: 10px;
  overflow-y: auto;
  border-right: 1px solid #ccc;
}
.tab-section {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.tab {
  flex: 1;
  padding: 6px;
  font-size: 13px;
  background: #eee;
  border: 1px solid #ccc;
  margin-right: 3px;
  cursor: pointer;
}
.tab:last-child {
  margin-right: 0;
}
.tab.active {
  background: #d9edf7;
  color: #000;
}
.palette-section {
  margin-top: 10px;
}
.palette-title {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 5px;
}
.palette-grid {
    margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.q-btn {
  padding: 8px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  text-align: center;
  border-radius: 3px;
}
.q-btn.not-visited {
  background-color: hsl(235, 86%, 49%); /* Blue */
  color: white;
}

.q-btn.visited {
  background-color: #f31505; /* Red */
  color: white;
}

.q-btn.answered {
  background-color: #009905; /* Green */
  color: white;
}

.q-btn.review {
  background-color: #ff8400; /* Orange */
  color: white;
}
.analysis {
  margin-top: 20px;
  font-size: 13px;
  color: #555;
}
.clear-response {
  margin-top: 10px;
  padding: 6px;
  width: 100%;
  background: #d9534f;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 3px;
  font-size: 14px;
}

/* Question Main */
.ssc-main {
  flex: 1;
  background: #fff;
  padding: 20px;
  overflow-y: auto;
}

.question-box p {
  font-size: 15px;
  margin-bottom: 10px;
}
.question-box label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

/* Action Buttons */

.submit-btn {
  padding: 10px 20px;
  background: #007bff;
  border: none;
  color: white;
  font-size: 15px;
  border-radius: 4px;
  cursor: pointer;
}

.zoom-controls {
  display: flex;
  gap: 10px;
}

.zoom-btn {
  font-size: 0.9rem;
  padding: 0.4rem 1rem;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.zoom-btn:hover {
  background-color: #0056b3;
}

/* Zoom Levels */
.zoom-100 { font-size: 100%; }
.zoom-110 { font-size: 110%; }
.zoom-120 { font-size: 120%; }
.zoom-130 { font-size: 130%; }
.zoom-140 { font-size: 140%; }
.zoom-150 { font-size: 150%; }
.zoom-160 { font-size: 160%; }
.zoom-170 { font-size: 170%; }
.zoom-180 { font-size: 180%; }
.zoom-90  { font-size: 90%; }
.zoom-80  { font-size: 80%; }
.zoom-70  { font-size: 70%; }

/* Prevent overflow */
.ssc-wrapper {
  width: 100%;
  box-sizing: border-box;
}
.sidebar-top-buttons {
  display: flex;
  gap: 10px;
  
  justify-content: center;
}

.info-btn {
  flex: 1;
  padding: 6px 10px;
background: white;
  color: rgb(252, 120, 4);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: underline;
  margin: 20px 0;
}

.info-btn:hover {
  
}

/* Popup styling */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.popup-box {
  background: #fff;
  padding: 20px;
  max-width: 400px;
  width: 90%;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.popup-box h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.popup-box ul {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}

.popup-box li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.legend-box {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border-radius: 3px;
}

.close-btn {
  padding: 6px 12px;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.close-btn:hover {
  background: #a71d2a;
}
.ssc-title {
  font-size: 1.4rem;

}

.site-name {
  font-weight: bold;
  color: #007bff;
  text-transform: uppercase;
  font-size: 1.2rem;
}

.divider {
  font-size: 1.2rem;
  color: #888;
}

.mock-title {
  color: #333;
  font-size: 1.1rem;
  font-weight: 500;
}
/* Tab Buttons Section */
/* Tab Buttons Section */
.tab-section {
  display: flex;
  justify-content: space-around;
  gap: 8px;
  flex-wrap: wrap;
}

/* Tab Buttons */
.tab-section .tab {
  flex: 1 1 22%;
  background-color: #ffffff;         /* light green background */
  color: #1b5e20;                    /* dark green text */
  border: 2px solid #a5d6a7;         /* soft green border */
  padding: 10px 14px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
}

.tab-section .tab:hover {
  background-color: #ffffff;
  border-color: #81c784;
  color: #1b5e20;
}

/* Active Tab */
.tab-section .tab.active {
  background-color: #2e7d32;         /* strong green */
  color: white;
  border-color: #2e7d32;
}
.ssc-analysis-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  font-size: 14px;
  margin-top: 60px;
  box-shadow: 0 0 3px rgba(0,0,0,0.1);
}

.ssc-analysis-table th {
  background-color: #c4c4c4; /* light gray */
  color: black;
  text-align: left;
  padding: 6px 10px;
  font-weight: bold;
}

.ssc-analysis-table td {
  padding: 6px 10px;
  border: 1px solid #ddd;
}

.ssc-count {
  display: inline-block;
  background-color: yellow;
  padding: 2px 6px;
  color: black;
  font-weight: bold;
}
/* Main Question Section */
.ssc-main {
  flex: 1;
  background: #fff;
  padding: 0px;   /* Remove top padding */
  overflow-y: auto;
}

/* Top bar with question number + buttons */
.ssc-question-header {
  background: #ffffff;
  border-bottom: 1px solid #ccc;
  padding: 5px 10px;
  margin: 0;
}

.left-head {
  display: flex;
  align-items: center;
  gap: 20px;
}

.question-number {
  font-size: 14px;
  font-weight: bold;
  color: #000;
}

/* Action Buttons aligned left */



.ssc-actions button:hover {
  background: #005bb5;
}

/* Submit button specific */
.submit-btn {
  background-color: #5cb85c !important;
}

/* Question Block */
/* Question box with border below each part */
.question-box {
  padding: 0;
  border: 1px solid #ccc;
  border-top: none;
  border-left: none;
  border-right: none;
 margin-top: 50px;
}

/* Add border below question line */
.question-text {
  font-size: 14px;
  padding: 10px 15px;
  margin: 0;
  border-bottom: 1px solid #ccc;
}

/* Add border below each option */
.option-label {
  display: block;
  font-size: 14px;
  padding: 10px 15px;
  margin: 0;
  color: #000;
}

/* Border only between options */
.option-label:not(:last-child) {
  border-bottom: 1px solid #ccc;
}
.ssc-actions {
  display: flex;
  justify-content: center; /* center align buttons horizontally */
  gap: 20px; /* space between buttons */
  margin: 10px 0;
  flex-wrap: wrap; /* wrap on small screens */
}

.ssc-actions button {
  padding: 8px 16px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  border-radius: 1px;
  min-width: 160px;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

/* Individual button styles */
#markReviewBtn {
  margin-left: 20px;
  font-size: 13px;
  width: 100px !important;
  background-color: #1931e5;
  color: white;

}

#markReviewBtn:hover {
  background-color:#1931e5;
}

#saveNextBtn {
  background-color: #1931e5;
  
  width: 100px ;
  color: white;
}

#saveNextBtn:hover {
  background-color: #1931e5;
}

.submit-btn {
  background-color: #0a7005 !important;
  color: white;
}

.submit-btn:hover {
  background-color: #1931e5;
}
.language-select {
  display: flex;
  align-items: center;
  font-size: 14px;
  gap: 8px;
  margin-left: auto;
  margin-right: 20px;
}

.language-select select {
  padding: 4px 8px;
  font-size: 14px;
  border-radius: 4px;
  border: 1px solid #ccc;
}


.label {
  color: #333;
}

.timer-display {
  display: flex;
  gap: 6px;
  align-items: center;
}

.timer-display span {
  width: 25px;
  background-color: #ff8316; /* light red highlight */
  
}
@media (max-width: 768px) {
  .zoom-controls,
  .ssc-roll,
  .mock-title,
  .ssc-sidebar,
  .question-number {
    display: none !important;
  }
}
@media (max-width: 768px) {
  .mock-title {
    font-size: 14px;
 
    text-align: left;
  }
}@media (max-width: 768px) {
  .label,
  .language-select {
    display: none !important;
  }
  .site-name {
 
  font-size: 18px;
  margin-left: -10px;
}
}

.marking-info {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
}

.marking-info .mark {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
}

.marking-info .positive {
  color: green;
}

.marking-info .negative {
  color: red;
}

.marking-info i {
  width: 16px;
  height: 16px;
  margin-right: 5px;
}
/* ✅ Responsive styling for mobile screens */
/* Show button bar fixed at the bottom on mobile only */
@media (max-width: 768px) {
  .ssc-actions.mobile-hidden {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
   
    justify-content: center;
    background-color: #ffffff;
    padding: 10px;
    z-index: 999;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    gap: 5px;
    flex-wrap: nowrap;
  }

  .ssc-actions.mobile-hidden button {
    width: 50px !important; /* ✅ Fixed width */
    font-size: 14px;
    padding: 10px 5px;
    white-space: nowrap;
    flex: 0 0 auto;
  }

  body {
    padding-bottom: 60px; /* Prevent content from hiding behind the fixed button bar */
  }
  .ssc-actions button {
  padding: 8px 16px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  border-radius: 1px;
  min-width: 111px;
  font-weight: bold;
  transition: background-color 0.2s ease;
}
}
/* Hide by default */
#backBtn {
    display: none;
    padding: 8px 14px;
    background-color: #007bff; /* Primary button color */
    color: white;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

/* Hover effect */
#backBtn:hover {
    background-color: #0056b3;
}

/* Click animation */
#backBtn:active {
    transform: scale(0.96);
}

/* Mobile only — show on small screens */
@media (max-width: 768px) {
    #backBtn.mobile-only {
        display: inline-block;
    }
}
