body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    background-color: #1c1c1c;
	color: white;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	color: white;
}


.header {
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    width: 100%;
    height: 40px;
    align-items: center;
    position: fixed;
    z-index: 1000;
}

.icon {
	width: 50px;
	height: 50px;
	border-radius: 30px;
}


.header-title {
    font-size: 20px;
    flex-grow: 1;
    text-align: left;
    margin: 0 15px;
	color: white;
}


.header-right {
  margin: auto;
}

.header::before {
	content: "";
  position: absolute;
  inset: 0;
  background: rgba(160, 160, 160, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: -1;
}


.subs-container {
	padding-top: 100px;
}

.rand-container {
    padding-top: 50px;
	margin-left: 5%;
	margin-right: 5%;
}


/* Quiz Page Additions */
.quiz-header {
    display: flex;
    align-items: center;
}

.answer-input-container {
    margin: 15px 0;
}

.answer-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.quiz-notes {
    margin: 20px 0;
}

.quiz-notes textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.quiz-actions {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

/* History Page Styles */
.last-taken-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.history-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.history-notes {
    color: #666;
    font-style: italic;
    margin: 10px 0;
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #28a745;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
}



.notes-input {
	font-family: Arial, sans-serif;
      color: white;
      background-color: rgba(0, 0, 0, 0.2);
	  padding: 10px;
	  font-size: 15px;
	  width: calc(100% - 23px);
	  border-radius: 10px;
	  margin-top: 10px;
}

.notes-input:focus {
	border-color: #007BFF;
}


.profile-container {
    position: relative;;
}

.profile-popup {
    display: none;
    position: fixed;
	background-color: rgba(90, 90, 90, 0.3);
    right: 25px;
    top: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    padding: 10px;
    width: 180px;
    backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
    z-index: 1001
}

.profile-popup:hover {
	background-color: var(--ios-blue: #007AFF);
	}


.popup-item {
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.popup-item:hover {
    background-color: rgba(200, 200, 200, 0.1);
}

.popup-item i {
    width: 20px;
    text-align: center;
}


.profile-popup.show {
    display: block;
}

.popup-item {
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.popup-item:hover {
    background-color: rgba(200, 200, 200, 0.1);
}

.popup-item i {
    width: 20px;
    text-align: center;
}




/* Add these to your style.css */
.answer-input-container {
    margin: 15px 0 25px;
}

.answer-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.quiz-notes {
    margin: 30px 0;
}

.quiz-notes label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.quiz-notes textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    resize: vertical;
}

.save-confirmation {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(20px); }
    20% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(20px); }
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.error {
    text-align: center;
    padding: 20px;
    color: #dc3545;
}




.hidden {
    display: none;
}

.setup-panel {
    margin-bottom: 20px;
}

#question-count {
    width: 60px;
    padding: 5px;
    margin: 0 10px;
}



#quiz-container {
    margin-top: 20px;
}

.question-item {
    background: #262525;
	  background-color: #0f0f0f;
      padding: 20px;
      border-radius: 10px;
      box-shadow: 0 0px 8px rgba(0, 0, 0, 0.7);
      margin-bottom: 30px;
      transition: background-color 0.3s ease, border 0.3s ease;
      border: 2px solid transparent;
}

.question-text {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 18px;
}

.question-tile {
	 margin-bottom: 5px;
      padding: 15px;
	  background-color: #1c1c1c;
      border-radius: 8px;
      background: #1c1c1c;
      box-shadow: 0 0px 8px rgba(0, 0, 0, 0.5);
	  background: rgba(110, 110, 110, 0.3);
      display: flex;
      align-items: center;
	  margin-top: 0px;
      margin-bottom: 20px;
    }
}

.question-table {
    margin-bottom: 15px;
    overflow-x: auto;
	
}

.options-container {
	margin-left: 10px;
	margin-right: 10px;
	padding: 20px;
	border-radius: 10px;
	background-color: rgba(40, 40, 40, 0.2);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
	background-color: transparent;
	border-radius: 10px;
}

table, th, td {
    border: transparent;
}

.table-tile {
	background-color: rgba(20, 20, 20, 0.50);
	border-radius: 10px;
}

.table-footer {
    font-size: 0.9em;
    color: #666;
    padding: 8px;
    text-align: left;
    font-style: italic;
    background-color: #f9f9f9;
    border-top: 1px solid #ddd;
}

thead th {
  background-color: transparent; /* Green background */
  color: white; /* White text */
  padding: 12px; /* Padding for spacing */
  text-transform: uppercase; /* Uppercase text */
  border-bottom: 2px solid #ddd; /* Bottom border */
}

th, td {
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}


.options-container {
    display: grid;
          flex-wrap: wrap;
          gap: 10px;
      box-shadow: 0 0px 8px rgba(0, 0, 0, 0.5);
      background: rgba(75, 75, 75, 0.2);
      margin-bottom: 3px;
}

.option-tile {
    padding: 12px 15px;
          background-color: rgba(100, 100, 100, 0.2);;
          border-radius: 8px;
          cursor: pointer;
          transition: all 0.2s ease;
          border: 2px solid transparent;
}

.option-tile:hover {
    transform: scale(1.01);
          background-color: rgba(16, 147, 255, 0.2);
          border-color: rgba(16, 147, 255, 0.6);
}

.option-tile.selected {
    background-color: rgba(2, 114, 208, 0.3);
          border-color: #2083D6;
          font-weight: bold;
}

.correct-answer {
    font-weight: bold;
    margin-top: 10px;
    padding: 8px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    display: none;
}

.option-tile.correct {
    background-color: #d4edda;
    border-color: #1CD60D;
}

.option-tile.incorrect {
    background-color: #f8d7da;
    border-color: #f5c6cb;
}






/* Add these to your CSS */
.correct-answer-tile {
    background-color: #4CAF50 !important; /* Green for correct */
    color: white;
}

.incorrect-answer-tile {
    background-color: #422629 !important; /* Red for incorrect */
	border-color: #fc031d !important;
    color: white;
}

.question-item.correct {
    border-left: 4px solid #4CAF50;
}

.question-item.incorrect {
    border-left: 4px solid #F44336;
}

.question-item.unanswered {
    border-left: 4px solid #FFC107;
}











.tile {
    background-color: #434343;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(0);
    animation: fadeIn 0.3s ease-out;
    border: 0.5px solid rgba(0,0,0,0.05);
}

.tile:hover {
    background-color: #535353;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.index-container {
    padding: 15px;
    display: grid;
    padding-top: 51px;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    animation: fadeIn 0.3s ease-out;
}


.tile-icon.math { background-color: #007aff; }
.tile-icon.science { background-color: #34c759; }
.tile-icon.history { background-color: #ff9500; }
.tile-icon.english { background-color: #ff2d55; }
.tile-icon.art { background-color: #af52de; }
.tile-icon.physics { background-color: #5856d6; }





.tile-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 600;
}


#result-container {
    padding: 5px;
    background-color: #8cbef5;
    border-radius: 10px;
	margin-right: 15px;
	color: #0923ed;
}

#quiz-back-btn {
	color: white;
}


.score-display {
    font-size: 14px;
    font-weight: bold;
    padding: 2px;
	color: #010CD3;
	background-color: #8cbef5;
}


#question-count {
	border-radius: 10px;
	background-color: #5e5e5e;
	color: white;
}


.quiz-btn {
	background-color: #245EDA;
	border-radius: 7px;
	padding: 10px;
	font-size: 20px;
	color: white;
}


/* Add these new styles */
.question-item.correct {
    background-color: #12381b;
    border-color: #04db37;
}

.question-item.incorrect {
    background-color: #381212;
    border-color: #f5c6cb;
}

.question-item.unanswered {
    background-color: #232402;
    border-color: #c6c918;
}



.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}





.search-btn {
    background: none;
    font-size: 1.5em;
    padding: 5px 10px;
}

.search-btn:hover {
    background-color: #f0f0f0;
    border-radius: 50%;
}

/* Content Container */
.folder-container, .file-container {
    display: grid;
grid-template-columns: 1fr; /* Creates a single column */
gap: 20px; /* Keeps spacing */
width: 100%; /* Ensures full width */
}

.folder-item, .file-item {
    background-color: #434343;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.folder-item:hover, .file-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.folder-icon, .file-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

/* Search Overlay */
#search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 100px;
    z-index: 1000;
}

#search-overlay.hidden {
    display: none;
}

.search-container {
    width: 100%;
    max-width: 600px;
    background-color: rgba(100, 100, 100, 0.5);
    border-radius: 10px;
    padding: 20px;
	backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}




#search-input {
    width: calc(100% - 26px);
    padding: 12px 12px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
	color: white;
	background-color: rgba(20, 20, 20, 0.3);
}

.search-results {
    max-height: 60vh;
    overflow-y: auto;
    border-radius: 8px;
}

.search-result-item {
    padding: 12px;
    cursor: pointer;
	border-radius: 10px;
}

.search-result-item:hover {
    background-color: rgba(0, 128, 255, 0.3);
}

.search-result-item.selected {
    background-color: rgba(0, 128, 255, 0.3);
}

.search-result-type {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8em;
    margin-right: 8px;
}

.type-activity {
    background-color: #87c3ff;
	font-weight: bold;
    color: #0052a3;
}

.type-book {
    background-color: #7aff7d;
    color: #008003;
}

.search-result-folder {
    font-size: 0.8em;
    color: #dbdbdb;
    margin-top: 4px;
}


.search-result {
    font-family: Arial, sans-serif;
    line-height: 1.4;
    margin-bottom: 8px;
}

.search-result-title {
    font-weight: bold;
    font-size: 16px;
	color: white;
}

.search-result-meta {
    font-size: 14px;
    color: #666;
}

.search-result-type {
    text-transform: capitalize;
}



.no-results {
    padding: 20px;
    text-align: center;
    color: #666;
}





/* Correct answer tile styling */
.correct-answer-tile {
    background-color: #23522e !important;
    border-color: #1CD60D !important;
}

/* Answer input styling */
.answer-input-container {
    margin: 15px 0;
}

.answer-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

/* Correct answer text */
.correct-answer {
    display: none;
    margin-top: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

/* Question status indicators */
.question-item.correct {
    border: 3px solid #28a745;
}

.question-item.incorrect {
    border: 3px solid #dc3545;
}

.question-item.unanswered {
    border: 3px solid #ffc107;
}

/* Save confirmation */
.save-confirmation {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; transform: translateY(20px); }
    20%, 80% { opacity: 1; transform: translateY(0); }
}



.last-quiz-info {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.last-quiz-info h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.last-quiz-info p {
    margin: 8px 0;
}

.last-quiz-info strong {
    color: #3498db;
}


/* Quiz Info Card */
.quiz-info-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 25px;
}

.quiz-info-card h2 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.quiz-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-weight: 600;
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.info-value {
    font-size: 1.1rem;
    color: #2c3e50;
}

.quiz-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    display: none;
}

.empty-state-image {
    max-width: 200px;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.empty-state p {
    color: #7f8c8d;
    margin-bottom: 20px;
}

/* Buttons */
.btn-primary {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-danger:hover {
    background-color: #c0392b;
}













/* Toggle Styles */
.toggle-container {
    padding: 5px 5px;
    background-color: transparent;
    display: flex;
    position: fixed;
    left: calc(50% - 100px);
    height: 42px;
    top: 70px;
    justify-content: center;
    z-index: 1000;
}

.toggle {
    display: flex;
    background-color: rgba(40, 40, 40, 0.8);
    width: 200px;
    color: white;
    z-index: 1000;
}

.toggle::before {
	content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: -1;

    border-radius: 10px;

    padding: 1px;
}




.toggle-option {
    padding: 8px 16px;
    border-radius: 7px;
    text-align: center;
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: white;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toggle-option.active {
    background-color: #007aff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    color: white;
    font-weight: 600;
}