body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    text-align: center;
    padding: 10px 50px 20px 50px;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    margin: 20px;
    border: none;
    cursor: pointer;
}

button:disabled {
    background-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed;
    opacity: 0.7;
}

button:hover {
    background-color: #45a049;
}

#answers {
    margin-top: 20px;
}

.answer {
    margin: 10px;
    background-color: #f0f0f0;
    color: black;
}

#feedback {
    margin-top: 20px;
    font-weight: bold;
}


table {
    width: 80%;
    text-align: center;
    border: 1px solid black;
    margin: 20px auto;
}

th, td {
    padding: 10px;
    border: 1px solid black;
}

th {
    background-color: #4CAF50;
    color: white;
}

a {
    color: blue;
    text-decoration: underline;
}



#signUpSection, #logInSection {
    width: 300px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ccc;
    background-color: #fff;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

#signUpSection input, #logInSection input {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
}

#signUpSection button, #logInSection button {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}

#signUpSection button:hover, #logInSection button:hover {
    background-color: #45a049;
}


/* General Table Styles */
table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px;
}

th, td {
    border: 1px solid black;
    padding: 10px;
    text-align: center;
}

/* Header Row */
th {
    background-color: #f2f2f2;
}

/* Answer Highlighting */
.correct-answer {
    background-color: lightgreen; /* ✅ Correct answers */
}

.wrong-answer {
    background-color: lightcoral; /* ❌ Wrong answers */
}

/* Question Images */
td img {
    max-width: 150px;
    height: auto;
}

/* Solution Links */
td a {
    text-decoration: none;
    color: blue;
    font-weight: bold;
}


#submitBtn:disabled {
    background-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed;
    opacity: 0.7;
}


#submitBtn:not(:disabled) {
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

#submitBtn:not(:disabled):hover {
    background-color: #45a049;
}


.answer.selected {
    background-color: #2196F3;
    color: white;
    font-weight: bold;
    border: 2px solid #0b7dda;
}


#questionImage {
    max-width: 90%;        /* Keeps the image within screen bounds */
    height: auto;          /* Maintains aspect ratio */
    max-height: 500px;     /* Prevents it from taking over the whole page */
    margin: 20px auto;     /* Centered with spacing */
    display: block;        /* So margin auto works */
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


.charts-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
  }
  
  .chart-box {
    flex: 1 1 200px;
    max-width: 500px;
    min-width: 300px;
  }
  
  /* Optional: Tighten padding on small screens */
  @media screen and (max-width: 600px) {
    .chart-box {
      flex: 1 1 100%;
      max-width: 100%;
    }
  
    .charts-container {
      padding: 10px;
    }
  }
  


  .page-header {
    position: relative;
    text-align: center;
    padding: 20px;
}

.home-button {
    position: absolute;
    top: 20px;
    right: 30px;
    background-color: #4CAF50;
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}

.home-button:hover {
    background-color: #45a049;
}



select {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
}

select:focus {
    outline: none;
    background-color: #45a049;
}

.neutral-select {
    background-color: white;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px;
    font-size: 16px;
    box-shadow: none;
    appearance: none; /* Optional: remove default styling */
}

.neutral-select:focus,
.neutral-select:active {
    background-color: white;
    color: #333;
    border: 1px solid #666; /* Optional: darker border on focus */
    outline: none;
    box-shadow: none;
}



.review-btn {
    background-color: #6F42C1 !important;
    color: white !important;
    padding: 10px 20px;
    border: none;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0px 2px 6px rgba(111, 66, 193, 0.3) !important;
    transition: background-color 0.3s ease;
}

.review-btn:hover {
    background-color: #5a2d91 !important; /* Darker purple on hover */
}

.review-btn:disabled {
    background-color: #c8a2d4;
    cursor: not-allowed;
    opacity: 0.7;
}

.review-btn, .review-dropdown {
    background-color: #6F42C1 !important; /* Consistent purple for review items */
    color: white !important;
    font-weight: bold;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    height: 45px; /* Make both buttons and dropdown same height */
}

.review-btn:hover, .review-dropdown:hover {
    background-color: #5a2d91 !important;
}

/* Optional: make sure the dropdown text is nicely centered */
.review-dropdown {
    appearance: none; /* Remove default ugly arrow in some browsers */
    padding-right: 30px; /* Space for custom arrow if you want */
}


#viewProgressBtn {
    background-color: #8e44ad;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
}

#viewProgressBtn:hover {
    background-color: #732d91;
}


.progress-button {
    background-color: #8e44ad;  /* purple */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background-color 0.3s;
}

.progress-button:hover {
    background-color: #732d91;  /* darker purple on hover */
}


.progress-btn {
    background-color: purple;
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-top: 5px;
  }
  
  .progress-btn:hover {
    background-color: darkviolet;
  } 


  .progress-container {
    padding: 5px 0;
  }
  
  .progress-bar {
    width: 100%;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
  }
  
  .progress-fill {
    height: 100%;
    transition: 
        width 0.6s cubic-bezier(0.65, 0, 0.35, 1),
        background 0.8s ease-out;
    border-radius: 8px;
}
  
  .progress-text {
    margin-left: 10px;
    font-weight: bold;
  }



/* Video checkbox styling */
.video-checkbox {
    transform: scale(1.3);
    margin-right: 10px;
    cursor: pointer;
    accent-color: #2196F3; /* Blue color */
}

.video-checkbox:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Video link styling */
.video-link {
    color: #1a73e8;
    text-decoration: underline;
    transition: color 0.2s;
}

.video-link:hover {
    color: #0d47a1;
}


/* Tools Section Styles */
.tools-container {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}

.tool-column {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.tool-header {
    padding: 15px;
    color: white;
    text-align: center;
}

.tool-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.tool-topics {
    padding: 20px;
    background: white;
    margin: 0;
    min-height: 200px;
}

.tool-topics li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    list-style-type: none;
    padding-left: 10px;
    position: relative;
}

.tool-topics li:before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
}

.tools-note {
    text-align: center;
    font-style: italic;
    color: var(--dark);
    margin-top: 20px;
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .tools-container {
        flex-direction: column;
    }
}


/* Add this to your CSS */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 30px 0;
}

.tool-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-top: 5px solid;
    transition: transform 0.3s ease;
}

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

.tool-card.algebra {
    border-color: #3498db;
}
.tool-card.geometry {
    border-color: #e74c3c;
}
.tool-card.stats {
    border-color: #2ecc71;
}

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-align: center;
}

.tool-card h3 {
    color: var(--secondary);
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.tool-card ul {
    padding-left: 20px;
}

.tool-card li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
}

.tool-card li:before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
}


input,
select,
button,
option {
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: normal;
    color: #333;
}


.quiz-btn {
    background-color: #4CAF50; /* Green background */
    color: white;              /* White text */
    font-weight: normal;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.quiz-btn:hover {
    background-color: #45a049; /* Darker green on hover */
}
