.pricing-container {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}

.pricing-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.pricing-card {
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 300px;
}

.pricing-card.featured {
  transform: scale(1.05);
  border: 2px solid #3498db;
}

.pricing-card h3 {
  color: #2c3e50;
  font-size: 24px;
  margin-bottom: 20px;
}

.price {
  font-size: 36px;
  color: #3498db;
  margin-bottom: 20px;
}

.savings {
  color: #27ae60;
  font-weight: bold;
  margin-bottom: 20px;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.pricing-card li {
  margin: 10px 0;
  color: #34495e;
}

.subscribe-btn {
  background: #3498db;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.subscribe-btn:hover {
  background: #2980b9;
}

/* General Styles */
@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes flashRed {
  0%, 100% {
    background-color: white;
  }
  50% {
    background-color: #ff0000;
  }
}

.flash-warning {
  animation: flashRed 1s infinite;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f6f7;
  /* Very Light Gray Background Color */
  box-sizing: border-box;
  overflow-x: hidden;
  /* Prevent horizontal scrolling */
  transition: all 0.5s ease;
}


body.student-out #sign-out-btn,
body.student-out #sign-in-btn,
body.student-out #add-to-queue-btn,
body.student-out #adaptive-sign-btn {
  background: linear-gradient(-45deg, #8b0000, #dc143c, #ff1a1a, #8b0000);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  border: 2px solid #ff0000;
  box-shadow: 0 8px 16px rgba(255, 0, 0, 0.3);
}

body.student-out .navbar {
  background: linear-gradient(-45deg, #8b0000, #dc143c, #ff1a1a, #8b0000);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}

/* Today's Breaks Table */
#todays-breaks-container {
  margin-top: 20px;
  width: 100%;
}

#todays-breaks-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 15px;
  background: white;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

#todays-breaks-table th,
#todays-breaks-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eaeaea;
}

#todays-breaks-table th {
  background-color: #3498db;
  color: white;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9em;
  letter-spacing: 0.5px;
}

#todays-breaks-table tr:hover {
  background-color: #f1f7fb;
}

#todays-breaks-table tr:last-child td {
  border-bottom: none;
}



/* Container */
.container {
  display: flex;
  flex-direction: column;
  width: 75%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Content Wrapper */
.content-wrapper {
  display: flex;
  flex-direction: column;
  transition: width 0.3s ease;
  width: 100%;
  margin-right: 10px;
  /* Small gap between dashboard and content-wrapper */
}

/* Sections */
section {
  background: #fff;
  /* White Background Color */
  padding: 5px;
  border-radius: 12px;
  /* Increased border radius */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  /* Softer shadows */
  margin: 0;
  /* No vertical spacing between sections */
  width: calc(100% - 40px);
  /* Internal margin adjustment */
}

/* Headings */
h2 {
  margin-top: 0;
  font-size: 1.5em;
  /* Slightly larger font */
  color: #2c3e50;
  /* Dark Gray Text Color */
  border-bottom: 2px solid #ddd;
  /* Underline effect */
  padding-bottom: 3px;
  /* Further reduced padding under the heading */
}

/* Buttons */
button {
  display: inline-block;
  margin: 10px 0;
  padding: 10px 25px;
  /* Increased padding */
  background-color: #3498db;
  /* Primary Blue Color */
  color: #fff;
  border: none;
  border-radius: 25px;
  /* Rounded corners */
  cursor: pointer;
  font-size: 1em;
  /* Increased font size */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  /* Added shadows */
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  /* Smooth transition */
  white-space: nowrap;
  /* Prevent text wrapping */
  overflow: hidden;
  /* Hide overflow text */
  text-overflow: ellipsis;
  /* Add '...' if text overflows */
}

button:hover {
  background: linear-gradient(-45deg, #2c3e50, #3498db, #2980b9, #2c3e50);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(52, 152, 219, 0.3);
  transition: all 0.3s ease;
}

#sign-out-btn:hover,
#sign-in-btn:hover,
#add-to-queue-btn:hover {
  background: linear-gradient(-45deg, #2c3e50, #3498db, #2980b9, #2c3e50);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(52, 152, 219, 0.3);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

button.saving {
  background-color: #4CAF50;
  /* Green */
  color: white;
}

/* Inputs and Selects */
input[type="text"],
input[type="number"],
select,
input[type="file"] {
  width: calc(100% - 20px);
  /* Responsive width */
  margin-left: 10px;
  /* Consistent margin */
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 25px;
  /* Rounded corners */
  font-size: 1em;
  /* Increased font size */
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  /* Inner shadow */
  transition: box-shadow 0.3s ease;
  /* Smooth transition */
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
input[type="file"]:focus {
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.2);
  /* Deeper inner shadow on focus */
}

/* Help Icon */
.help-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: #ffffff;
  color: #3498db;
  border-radius: 50%;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  line-height: 16px;
  margin-left: 5px;
  cursor: help;
  border: 1px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.help-icon:hover {
  background-color: #f5f5f5;
  color: #2980b9;
}

/* Hidden Elements */
.hidden {
  display: none;
}

/* Tables */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 20px;
  table-layout: auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}

table,
th,
td {
  border: none;
}

th,
td {
  padding: 12px 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  border-bottom: 1px solid #eaeaea;
}

th {
  background-color: #3498db;
  color: white;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9em;
  letter-spacing: 0.5px;
}

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

tr:hover {
  background-color: #f1f7fb;
}

tr:last-child td {
  border-bottom: none;
}

/* Button columns */
td.delete-column {
  width: 80px;
  text-align: center;
}

td.break-history-column {
  min-width: 150px;
  text-align: center;
}

.download-break-history {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 0.9em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.download-break-history:hover {
  background-color: #45a049;
}

/* Specific table styles */
#blocks-table th, 
#students-table th,
#todays-breaks-table th,
#view-data-table th,
#class-average-table th {
  position: sticky;
  top: 0;
  z-index: 10;
}

#todays-breaks-table tr:hover td {
  background-color: rgba(241, 247, 251, 0.7);
}

.delete-break-btn {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.delete-break-btn:hover {
  background-color: #c0392b;
}

/* Table input styling */
table input[type="text"],
table input[type="number"],
table input[type="time"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9em;
  transition: border-color 0.3s, box-shadow 0.3s;
}

table input[type="text"]:focus,
table input[type="number"]:focus,
table input[type="time"]:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
  outline: none;
}

/* Class average table styling */
#class-average-table {
  margin-top: 30px;
  max-width: 600px;
}

#class-average-table th {
  background-color: #2980b9;
}

/* Sidebar Styles */
.sidebar {
  position: fixed;
  right: 0;
  top: 70px;
  height: calc(100% - 70px);
  width: 54%;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15), -2px 0 8px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  padding: 25px;
  transform: translateX(100%);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 999;
  border-left: 1px solid rgba(52, 152, 219, 0.1);
  backdrop-filter: blur(10px);
}

.sidebar.active {
  transform: translateX(0);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.2), -4px 0 12px rgba(0, 0, 0, 0.15);
}

.sidebar h3 {
  margin-top: 0;
  color: #2c3e50;
  font-size: 1.4em;
  font-weight: 600;
  padding-bottom: 5px;
  border-bottom: 2px solid #e8f4fd;
  margin-bottom: 3px;
}

.sidebar ul {
  list-style-type: none;
  padding: 0;
}

.sidebar ul li {
  margin: 2px 0;
}

.sidebar ul li a {
  text-decoration: none;
  color: #3498db;
  margin: 0;
  font-weight: 600;
  font-size: 1.05em;
  padding: 6px 15px;
  border-radius: 8px;
  display: block;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.sidebar ul li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
  transition: left 0.5s;
}

.sidebar ul li a:hover {
  text-decoration: none;
  color: #2980b9;
  background: rgba(52, 152, 219, 0.08);
  transform: translateX(2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}

.sidebar ul li a:hover::before {
  left: 100%;
}

/* Custom scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(248, 249, 250, 0.5);
  border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #3498db, #2980b9);
  border-radius: 4px;
  transition: background 0.3s ease;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #2980b9, #1f5f8b);
}

/* Interface Settings Styles */
.interface-settings {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin: 0 auto;
  max-width: 900px;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e8eaed;
}

.interface-settings h2 {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  font-size: 28px;
  font-weight: 600;
  margin: 0;
  padding: 10px 35px;
  border-bottom: none;
  text-align: center;
  letter-spacing: 0.5px;
}

/* Settings Categories */
.settings-category {
  margin: 0;
  border-bottom: 1px solid #f1f3f4;
}

.settings-category:last-of-type {
  border-bottom: none;
}

.settings-category-title {
  font-size: 20px;
  color: #2980b9;
  font-weight: 600;
  margin: 0;
  padding: 8px 35px 5px 35px;
  border-bottom: 2px solid #d6e9f7;
  background: #f8f9fa;
  display: flex;
  align-items: center;
}

.settings-category-title::before {
  content: "⚙️";
  margin-right: 10px;
  font-size: 18px;
}

/* Settings Items */
.settings-item {
  padding: 8px 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f3f4;
  transition: background-color 0.2s ease;
}

.settings-item:hover {
  background-color: #fafbfc;
}

.settings-item:last-child {
  border-bottom: none;
}

.setting-info {
  flex: 1;
  margin-right: 30px;
}

.setting-info label {
  font-size: 16px;
  font-weight: 500;
  color: #202124;
  display: block;
  margin-bottom: 4px;
}

.setting-description {
  color: #5f6368;
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
}

.settings-item input[type="number"],
.settings-item select {
  width: 120px;
  padding: 10px 14px;
  border: 2px solid #dadce0;
  border-radius: 8px;
  font-size: 14px;
  color: #202124;
  background: #fff;
  transition: all 0.3s ease;
  font-weight: 500;
}

.settings-item input[type="number"]:hover,
.settings-item select:hover {
  border-color: #3498db;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.settings-item input[type="number"]:focus,
.settings-item select:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
  outline: none;
}

/* Bulk Settings Card */
.bulk-settings-card {
  background: #f8f9fa;
  border-radius: 12px;
  margin: 20px 35px;
  border: 2px solid #e8eaed;
  overflow: hidden;
}

.bulk-settings-header {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  padding: 20px 25px;
  text-align: center;
}

.bulk-settings-header h4 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
}

.bulk-settings-description {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.4;
}

.bulk-settings-form {
  padding: 25px;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  flex: 1;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #202124;
  margin-bottom: 8px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #dadce0;
  border-radius: 8px;
  font-size: 14px;
  color: #202124;
  background: #fff;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
  outline: none;
}

.bulk-apply-btn {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
  width: 100%;
  margin-bottom: 15px;
}

.bulk-apply-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
}

.bulk-warning {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 6px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #856404;
}

.warning-icon {
  font-size: 16px;
  flex-shrink: 0;
}

/* Switch styling for boolean settings */
.switch {
  position: relative;
  width: 50px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 26px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
  background-color: #3498db;
}

input:checked + .slider:before {
  transform: translateX(24px);
}

.slider:hover {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 0 8px rgba(52, 152, 219, 0.1);
}

/* Settings Footer */
.settings-footer {
  background: #f8f9fa;
  padding: 25px 35px;
  border-top: 1px solid #e8eaed;
  text-align: center;
}

.save-settings-btn {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 16px 40px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
  min-width: 200px;
}

.save-settings-btn:hover {
  background-color: #218838;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

.save-settings-btn:active {
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .interface-settings {
    margin: 10px;
    max-width: none;
  }

  .interface-settings h2,
  .settings-category-title,
  .settings-item,
  .bulk-settings-form,
  .settings-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .bulk-settings-card {
    margin-left: 20px;
    margin-right: 20px;
  }

  .form-row {
    flex-direction: column;
    gap: 15px;
  }

  .settings-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .setting-info {
    margin-right: 0;
  }

  .settings-item input[type="number"],
  .settings-item select {
    width: 100%;
  }
}

/* Student Roster Menu Improvements */
.student-roster-section {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 0;
  overflow: hidden;
  border: 1px solid #e1e4e8;
}

.student-roster-header {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  padding: 20px 30px;
  border-bottom: none;
}

.student-roster-header h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
  color: white;
  border: none;
  padding: 0;
}

.student-roster-content {
  padding: 10px;
}

.roster-controls {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}

.control-group {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 8px;
  border: 1px solid #e9ecef;
}

.control-group h3 {
  margin: 0 0 15px 0;
  font-size: 1.2rem;
  color: #2c3e50;
  font-weight: 600;
}

.block-selection-group {
  background: #e8f4fd;
  border: 1px solid #bee5eb;
}

.import-methods-group {
  background: #f0f8ff;
  border: 1px solid #b3d9ff;
}

.manual-entry-group {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
}

/* Block Selection Dropdown - Uniform styling for all block selectors */
#block-select-dropdown,
#block-select-view,
#block-select-today,
#bulk-block-select {
  width: 100%;
  max-width: 400px;
  padding: 12px 16px;
  border: 2px solid #3498db;
  border-radius: 8px;
  font-size: 16px;
  background: white;
  color: #2c3e50;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#block-select-dropdown:focus,
#block-select-view:focus,
#block-select-today:focus,
#bulk-block-select:focus {
  outline: none;
  border-color: #2980b9;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Import Methods */
.import-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.google-classroom-btn {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #34a853, #2d8f47);
  color: white;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(52, 168, 83, 0.3);
}

.google-classroom-btn:hover {
  background: linear-gradient(135deg, #2d8f47, #1e7e34);
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(52, 168, 83, 0.4);
}

.google-classroom-btn img {
    width: 24px;
  height: 24px;
  margin-right: 10px;
}

.csv-upload-container {
  background: white;
  border: 2px dashed #3498db;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.csv-upload-container:hover {
  border-color: #2980b9;
  background: #f8f9fa;
}

.csv-input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.csv-input-group input[type="file"] {
  width: 100%;
  max-width: 300px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: white;
}

.csv-import-btn {
  background: linear-gradient(135deg, #17a2b8, #138496);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.csv-import-btn:hover {
  background: linear-gradient(135deg, #138496, #117a8b);
  transform: translateY(-1px);
}

/* Manual Entry */
#add-student-container {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: none;
  box-shadow: none;
}

.manual-entry-header {
  background: #f8f9fa;
  padding: 15px 20px;
  border-bottom: 1px solid #e9ecef;
  margin: 0;
}

.manual-entry-header h4 {
  margin: 0;
  font-size: 1.1rem;
  color: #495057;
  font-weight: 600;
}

#add-student-form {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  padding: 20px;
}

#add-student-form input {
  flex: 1;
  min-width: 180px;
  padding: 12px 16px;
  font-size: 16px;
  border: 2px solid #dee2e6;
  border-radius: 6px;
  transition: all 0.3s ease;
}

#add-student-form input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

#add-student-form button {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(40, 167, 69, 0.3);
}

#add-student-form button:hover {
  background: linear-gradient(135deg, #20c997, #17a2b8);
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(40, 167, 69, 0.4);
}

/* Students Table Improvements */
#students-table-container {
  margin-top: 30px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #dee2e6;
}

#students-table {
  margin: 0;
  border-radius: 0;
}

#students-table th {
  background-color: #3498db;
  color: white;
  font-weight: 600;
  padding: 15px 12px;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

#students-table td {
  padding: 12px;
  vertical-align: middle;
}

#students-table tbody tr:hover {
  background-color: #f1f7fb;
  transform: translateX(3px);
  transition: all 0.2s ease;
}

/* Save Button Enhancement */
#save-students-changes-btn {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 25px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
  margin-top: 25px;
}

#save-students-changes-btn:hover {
  background-color: #218838;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .student-roster-content {
    padding: 20px;
  }

  .import-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .google-classroom-btn {
    width: 100%;
    justify-content: center;
  }

  #add-student-form {
    flex-direction: column;
    align-items: stretch;
  }

  #add-student-form input {
    min-width: auto;
  }

  #add-student-form button {
    align-self: center;
    min-width: 200px;
  }
}

/* Navbar Styling */
.navbar {
  width: 100%;
  background-color: #3498db;
  padding: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: fixed;
  /* Fixes the navbar to the top */
  top: 0;
  /* Positions it at the top of the window */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  /* Ensures it stays above other content */
}

.navbar a {
  color: white;
  text-decoration: none;
  margin: 0 1rem;
  font-weight: bold;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #2980b9;
}

body {
  padding-top: 5rem;
  /* Adjust padding-top to match the height of the navbar */
}

/* Max Students Out Input */
#max-students-out-input {
  width: 100px;
  /* Smaller width */
  height: 30px;
  /* Height as needed */
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 5px;
  font-size: 14px;
  margin: 0 auto;
  /* Centering the input using margin */
  display: block;
  /* Ensures the element is treated as a block */
}

/* Save Buttons and Add Student Button */
#save-changes-btn,
#save-settings-btn,
#add-student-form button {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 25px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

#save-changes-btn:hover,
#save-settings-btn:hover,
#add-student-form button:hover {
  background-color: #218838;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

/* FAQ Section Styling */
#faq-container {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(52, 152, 219, 0.15);
  overflow: hidden;
  border: 1px solid #e8f4fd;
}

#faq-container h3 {
  text-align: center;
  font-size: 1.8em;
  color: white;
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  padding: 30px 20px;
  margin: 0;
  border: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.faq-item {
  background: white;
  margin: 0;
  border-bottom: 1px solid #e8f4fd;
  transition: all 0.3s ease;
  overflow: hidden;
}

.faq-item:hover {
  background: #f8f9fa;
  box-shadow: inset 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  cursor: pointer;
  font-size: 1.3em;
  font-weight: 600;
  color: #2c3e50;
  padding: 25px 30px;
  margin: 0;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.5em;
  font-weight: bold;
  color: #3498db;
  transition: all 0.3s ease;
  transform: rotate(0deg);
  flex-shrink: 0;
  margin-left: 20px;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
  color: #2980b9;
}

.faq-question:hover {
  color: #3498db;
  background: #f8f9fa;
}

.faq-item.active .faq-question {
  color: #2980b9;
  background: #e8f4fd;
  border-bottom: 2px solid #3498db;
}

.faq-answer {
  display: none;
  padding: 0 30px 30px 30px;
  font-size: 1em;
  color: #5a6c7d;
  line-height: 1.7;
  background: #fafbfc;
  border-top: 1px solid #e8f4fd;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-answer p {
  margin: 0 0 15px 0;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ul {
  margin: 15px 0;
  padding-left: 0;
  list-style: none;
}

.faq-answer li {
  margin: 12px 0;
  padding-left: 25px;
  position: relative;
  line-height: 1.6;
}

.faq-answer li::before {
  content: '•';
  color: #3498db;
  font-size: 1.2em;
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

.faq-answer ol {
  margin: 15px 0;
  padding-left: 20px;
}

.faq-answer ol li {
  padding-left: 10px;
  list-style: decimal;
}

.faq-answer ol li::before {
  display: none;
}

.faq-answer strong {
  color: #2c3e50;
  font-weight: 600;
}

.faq-answer ul ul {
  margin: 8px 0;
  padding-left: 20px;
}

.faq-answer ul ul li::before {
  content: '◦';
  color: #3498db;
  font-size: 1em;
}

/* Responsive Design */
@media (max-width: 768px) {
  #faq-container {
    width: 98%;
    margin: 10px auto;
    border-radius: 12px;
  }

  #faq-container h3 {
    font-size: 1.8em;
    padding: 20px 15px;
  }

  .faq-question {
    font-size: 1.1em;
    padding: 20px 20px;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .faq-question::after {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
  }

  .faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
  }

  .faq-answer {
    padding: 0 20px 25px 20px;
    font-size: 0.95em;
  }

  .faq-answer li {
    padding-left: 20px;
  }
}

/* Add Student Title */
#add-student-title {
  font-size: 13px;
  /* Set your desired font size */
}

/* CSV Import Styling */
.csv-upload-box {
  border: 1px solid #ddd;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
}

.csv-input-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
}

.csv-input-group input[type="file"] {
  width: 300px;
  flex-shrink: 1;
}

/* Hide Sections */
.hidden {
  display: none;
}

/* Queue Container */
#queue-container {
  position: fixed;
  right: 20px;
  top: 90px; /* Below the navbar */
  width: 280px;
  padding: 0;
  border: none;
  border-radius: 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: none;
  box-sizing: border-box;
  max-height: calc(100vh - 110px);
  overflow: hidden;
  z-index: 900;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border: 3px solid #e74c3c;
  animation: queue-glow 3s ease-in-out infinite;
}

@keyframes queue-glow {
  0%, 100% { 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 30px rgba(231, 76, 60, 0.3);
  }
  50% { 
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 0 0 50px rgba(231, 76, 60, 0.5);
  }
}

#queue-container h2 {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: #495057;
  margin: 0;
  padding: 20px 25px;
  font-size: 1.4em;
  font-weight: 700;
  text-align: center;
  border-radius: 17px 17px 0 0;
  text-shadow: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 2px solid #e74c3c;
}

#queue-list {
  padding: 20px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  background: transparent;
}

/* Custom scrollbar for queue list */
#queue-list::-webkit-scrollbar {
  width: 8px;
}

#queue-list::-webkit-scrollbar-track {
  background: rgba(222, 226, 230, 0.3);
  border-radius: 4px;
}

#queue-list::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #ced4da, #adb5bd);
  border-radius: 4px;
}

#queue-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #adb5bd, #868e96);
}

/* Queue Item Styling */
.queue-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-left: 4px solid #e74c3c;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.queue-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  transition: width 0.3s ease;
}

.queue-item:hover {
  transform: translateX(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.queue-item:hover::before {
  width: 8px;
}

.queue-item:last-child {
  margin-bottom: 0;
}

.queue-item {
  font-size: 0.95em;
  color: #2c3e50;
  line-height: 1.4;
  font-weight: 500;
}

/* Queue number styling - now inline in the queue item HTML */

/* Empty queue message */
.queue-empty {
  text-align: center;
  color: #6c757d;
  font-style: italic;
  padding: 40px 20px;
  background: rgba(222, 226, 230, 0.3);
  border-radius: 12px;
  margin: 20px;
}

/* Student and Teacher Interfaces */
#student-interface,
#teacher-interface {
  flex: 1;
  margin: 10px;
  transition: all 0.3s ease;
}

/* Adjust student interface when queue is active */
body.queue-active #student-interface {
  margin-right: 40px; /* Make room for queue (280px width + 40px spacing) */
}

body.queue-active .content-wrapper {
  width: calc(100% - 40px);
}

/* Switch Styles */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: #2196F3;
}

/* Google Classroom Import Button Styling */
.google-classroom-btn {
    display: flex;
    align-items: center;
    background-color: #34a853;
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 15px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.google-classroom-btn:hover {
    background-color: #2c8c46;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.google-classroom-btn img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}


input:checked+.slider:before {
  transform: translateX(26px);
}

/* Message Display */
.message-display {
  font-size: 2em;
  text-align: center;
  margin: 20px auto;
  padding: 25px;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  max-width: 90%;
  width: 90%;
  min-height: 120px;
  max-height: 200px;
  line-height: 1.2;
  color: #2c3e50;
  border: 3px solid #e74c3c;
  z-index: 1000;
  position: relative;
  letter-spacing: 2px;
  animation: pulse-border 2s infinite;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

@keyframes pulse-border {
  0%, 100% { border-color: #e74c3c; }
  50% { border-color: #c0392b; }
}

.student-status-name {
  font-size: 1.5em;
  color: #e74c3c;
  text-transform: uppercase;
  font-weight: 900;
  margin-bottom: 8px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
  letter-spacing: 2px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

#large-timer-display {
  font-size: 8em;
  text-align: center;
  font-weight: 900;
  color: #e74c3c;
  margin: 30px auto;
  line-height: 1;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  border-radius: 25px;
  padding: 40px;
  border: 4px solid #e74c3c;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  max-width: 90%;
  font-family: 'Courier New', monospace;
  letter-spacing: 5px;
  animation: timer-glow 3s ease-in-out infinite;
}

@keyframes timer-glow {
  0%, 100% { 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 30px rgba(231, 76, 60, 0.3);
  }
  50% { 
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 0 50px rgba(231, 76, 60, 0.5);
  }
}

/* Enhanced display when student is out */
body.student-out .message-display {
  background: linear-gradient(135deg, #fff5f5 0%, #ffebee 100%);
  border-color: #e74c3c;
  animation: urgent-pulse 1.5s infinite;
}

body.student-out #large-timer-display {
  background: linear-gradient(135deg, #fff5f5 0%, #ffebee 100%);
  border-color: #c0392b;
  color: #c0392b;
}

@keyframes urgent-pulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 0 20px rgba(231, 76, 60, 0.4);
  }
  50% { 
    transform: scale(1.02);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3), 0 0 40px rgba(231, 76, 60, 0.6);
  }
}

/* Container for the Interface Box */
.interface-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Center buttons and input field */
  padding: 20px;
  width: 100%;
  max-width: 800px;
  min-height: 600px;
  /* Increased max-width to allow button expansion */
  margin: 0 auto;
  /* Center on the page */
  box-sizing: border-box;
  /* Include padding and border in width */
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Buttons in the Interface Box */
#sign-out-btn,
#sign-in-btn,
#add-to-queue-btn,
#adaptive-sign-btn {
  font-size: 2em;
  padding: 20px;
  width: 100%;
  max-width: 500px;
  margin: 30px 0;
  border-radius: 40px;
  border: none;
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  background-color: #3498db;
  color: #fff;
  transition: all 0.3s ease-in-out;
  white-space: nowrap;
  overflow: visible;
  text-overflow: unset;
  display: block;
}

#sign-out-btn:hover,
#sign-in-btn:hover,
#add-to-queue-btn:hover {
  background-color: #2980b9;
  /* Darker blue on hover */
}

/* Adjusted Button for Text Wrapping on Small Screens */
@media (max-width: 600px) {
  #add-to-queue-btn {
    white-space: normal;
    /* Allow text to wrap */    overflow: visible;
    /* Allow overflow */
    text-overflow: clip;
    /* No ellipsis */
  }
}

/* Input Field in the Interface Box */
#student-passcode-input {
  width: 100%;
  /* Full width within container */
  max-width: 500px;
  /* Maximum width */
  padding: 20px;
  /* Extra padding for comfort */
  font-size: 2em;
  /* Larger font size */
  margin: 20px 0;
  /* Space around input */
  border-radius: 40px;
  /* Rounded corners */
  border: 2px solid #3498db;
  /* Blue outline */
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
  /* Added inner shadow */
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  /* Smooth transition */
  box-sizing: border-box;
  /* Include padding and border in width */
}

#student-passcode-input:focus {
  border-color: #2980b9;
  /* Darker blue on focus */
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.3);
  /* Deeper inner shadow on focus */
  outline: none;
  /* Remove default focus outline */
}

/* Media Queries for Smaller Screens */
@media (max-width: 768px) {
  .interface-box {
    max-width: 100%;
    /* Allow container to use full width */
  }

  #sign-out-btn,
  #sign-in-btn,
  #add-to-queue-btn,
  #student-passcode-input {
    font-size: 1.5em;
    /* Slightly smaller text */
    padding: 15px;
    /* Adjust padding */
  }

  .content-wrapper {
    flex-direction: column;
    /* Stack elements vertically */
  }

  #queue-container {
    width: 100%;
    /* Full width on smaller screens */
    margin-left: 0;
    /* Remove left margin */
  }

  /* Stack student interface vertically on mobile */
  #student-interface > div:first-child {
    flex-direction: column !important;
    gap: 20px !important;
  }

  #instructions-panel {
    width: 100% !important;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {

  #sign-out-btn,
  #sign-in-btn,
  #add-to-queue-btn,
  #student-passcode-input {
    font-size: 1.2em;
    /* Smaller text for small screens */
    padding: 10px;
    /* Adjust padding */
  }

  .interface-box {
    padding: 10px;
    /* Reduce padding */
  }
}

.interface-settings-container {
  max-width: 100%;
  padding: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bulk-action-container {
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  padding: 15px;
  margin-top: 20px;
  border-radius: 8px;
}

.bulk-action-container h4 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 16px;
  color: #333;
}

.block-selector-container {
  margin: 10px 0;
}



/* End of existing styles */

.subscription-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.pricing-plans {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.plan {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.plan:hover {
    transform: translateY(-5px);
}

.price {
    font-size: 24px;
    font-weight: bold;
    color: #3498db;
    margin: 20px 0;
}

/* Premium button styling */
.premium-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    margin-top: 15px;
}

.premium-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.premium-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Enhanced Premium Button */
.premium-button-enhanced {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
    border: 2px solid #4a90e2;
    border-radius: 12px;
    padding: 0;
    margin-top: 20px;
    width: 100%;
    max-width: 400px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 8px 32px rgba(74, 144, 226, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.premium-button-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.premium-button-enhanced:hover::before {
    left: 100%;
}

.premium-button-enhanced:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: #5ba0f2;
    box-shadow: 
        0 12px 40px rgba(74, 144, 226, 0.3),
        0 8px 24px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.premium-button-enhanced:active {
    transform: translateY(-1px) scale(1.01);
    transition: all 0.1s ease;
}

.button-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    position: relative;
    z-index: 2;
}

.security-badge {
    font-size: 20px;
    margin-right: 15px;
    opacity: 0.9;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.button-text {
    flex: 1;
    text-align: left;
}

.upgrade-label {
    display: block;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.price-label {
    display: block;
    color: #b8d4f0;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    opacity: 0.9;
}

.arrow-icon {
    font-size: 18px;
    color: #4a90e2;
    font-weight: bold;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.premium-button-enhanced:hover .arrow-icon {
    transform: translateX(3px);
    color: #5ba0f2;
}

.premium-button-enhanced:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.premium-button-enhanced:disabled:hover {
    transform: none;
    border-color: #4a90e2;
}

.stripe-button {
    background: linear-gradient(135deg, #6772e5, #5469d4);
    border-color: #6772e5;
    margin-top: 15px;
}

.stripe-button:hover {
    background: linear-gradient(135deg, #5469d4, #4f63d2);
    border-color: #5469d4;
    box-shadow: 0 8px 25px rgba(103, 114, 229, 0.4);
}

/* Responsive design for enhanced button */
@media (max-width: 768px) {
    .premium-button-enhanced {
        max-width: 100%;
    }
    
    .button-content {
        padding: 16px 20px;
    }
    
    .upgrade-label {
        font-size: 16px;
    }
    
    .price-label {
        font-size: 12px;
    }
    
    .security-badge {
        font-size: 18px;
        margin-right: 12px;
    }
    
    .arrow-icon {
        font-size: 16px;
        margin-left: 12px;
    }
}

.subscription-section {
    margin-top: 25px;
}

.subscription-section h3,
.data-management-section > h3 {
    color: #2c3e50;
    font-size: 1.4em;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.data-management-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e8ed;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

.data-management-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9, #3498db);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.data-management-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.danger-zone-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.danger-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.danger-zone-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #3498db;
    margin: 0 0 5px 0;
}

.danger-zone-subtitle {
    color: #5f6368;
    font-size: 0.9em;
    margin: 0;
    line-height: 1.4;
}

.danger-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.danger-action-card {
    background: rgba(52, 152, 219, 0.05);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.danger-action-card:hover {
    background: rgba(52, 152, 219, 0.08);
    border-color: rgba(52, 152, 219, 0.3);
}

.danger-action-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.danger-action-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.danger-action-info {
    flex: 1;
}

.danger-action-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 5px 0;
}

.danger-action-description {
    color: #5f6368;
    font-size: 0.9em;
    margin: 0;
    line-height: 1.4;
}

.danger-action-details {
    margin-bottom: 15px;
}

.danger-action-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.danger-action-list li {
    color: #5f6368;
    font-size: 0.85em;
    margin-bottom: 5px;
    padding-left: 5px;
}

.danger-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(52, 152, 219, 0.3);
    width: 100%;
}

.danger-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(52, 152, 219, 0.4);
}

.danger-zone-warning {
    background: rgba(255, 193, 7, 0.15);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9em;
    color: #856404;
    line-height: 1.5;
}

.warning-icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.warning-content {
    flex: 1;
}

.subscription-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e8ed;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.subscription-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9, #3498db);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

.subscription-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.status-display {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 40px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.status-details {
    flex: 1;
}

.status-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.status-info {
    color: #5f6368;
    font-size: 0.9em;
    line-height: 1.5;
}

.status-info div {
    margin-bottom: 4px;
}

.expiration-warning {
    background: rgba(255, 193, 7, 0.15);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    color: #856404;
    font-size: 0.9em;
    line-height: 1.5;
    position: relative;
}

.expiration-warning::before {
    content: '⚠️';
    font-size: 1.2em;
    margin-right: 8px;
}

#current-status {
    font-weight: bold;
    color: #28a745;
}

/* Status badge color variants */
#status-badge.premium,url: rag://rag_source_8
path: index.html