/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    text-align: center;
}

h1 {
    margin: 0;
}

/* Exam Container */
.exam-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Exam Cards */
.exam-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.exam-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.exam-date {
    color: #e74c3c;
    font-weight: bold;
    margin: 5px 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem 0;
    background-color: #2c3e50;
    color: white;
    margin-top: 20px;
}

/* Exam Page Styles (will be used in individual exam pages) */
.topic-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.topic-section {
    margin-bottom: 20px;
}

.subtopic {
    margin-left: 20px;
    padding: 10px;
    border-left: 3px solid #3498db;
}

.pdf-link {
    display: inline-block;
    margin: 5px 0;
    padding: 8px 15px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.pdf-link:hover {
    background-color: #2980b9;
}

.back-button {
    display: inline-block;
    margin: 20px;
    padding: 10px 20px;
    background-color: #2c3e50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}
#NR {
    background-color: #ff7070; /* Base yellow color */
    animation: yellowColorPulse 1.5s infinite;
  }
  
  @keyframes yellowColorPulse {
    0% {
      background-color: #f4afaf; /* Normal yellow */
      box-shadow: 0 0 5px rgba(255, 59, 59, 0.9); /* Subtle glow */
    }
    50% {
      background-color: #e38080; /* Brighter yellow */
      box-shadow: 0 0 15px rgba(255, 59, 59, 0.9); /* Stronger glow */
    }
    100% {
      background-color: #f16c6c; /* Back to normal */
      box-shadow: 0 0 5px rgba(255, 59, 59, 0.9);
    }
  }
  :root {
    --bg-color: #f5f5f5;
    --text-color: #333;
    --header-bg: #2c3e50;
    --header-text: white;
    --card-bg: white;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --card-hover-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    --link-color: #3498db;
    --link-hover: #2980b9;
    --footer-bg: #2c3e50;
    --footer-text: white;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #f0f0f0;
    --header-bg: #121212;
    --card-bg: #2d2d2d;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --card-hover-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    --link-color: #4da6ff;
    --link-hover: #1a8cff;
    --footer-bg: #121212;
}

/* Rest of your existing CSS remains the same, just replace hardcoded colors with variables */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s, color 0.3s;
}

header {
    background-color: var(--header-bg);
    color: var(--header-text);
    padding: 1rem 0;
    text-align: center;
}

.exam-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.exam-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.pdf-link {
    background-color: var(--link-color);
}

.pdf-link:hover {
    background-color: var(--link-hover);
}

footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
}

/* Add theme toggle button styles */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--card-bg);
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    z-index: 1000;
}

.theme-toggle svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}
/* Topic Container - Base Styles */
.topic-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: background-color 0.3s, box-shadow 0.3s;
}

/* Topic Section */
.topic-section {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .topic-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topic-section h2 {
    color: var(--text-color);
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--link-color);
}

/* Subtopic */
.subtopic {
    margin: 15px 0 15px 20px;
    padding: 15px;
    border-left: 3px solid var(--link-color);
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 0 4px 4px 0;
    transition: background-color 0.3s;
}

[data-theme="dark"] .subtopic {
    background-color: rgba(255, 255, 255, 0.05);
}

.subtopic h3 {
    margin-top: 0;
    color: var(--text-color);
}

/* PDF Links */
.pdf-link {
    display: inline-block;
    margin: 8px 5px 8px 0;
    padding: 8px 15px;
    background-color: var(--link-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s, transform 0.2s;
    font-size: 0.9em;
}

.pdf-link:hover {
    background-color: var(--link-hover);
    transform: translateY(-2px);
}

/* Back Button */
.back-button {
    display: inline-block;
    margin: 20px;
    padding: 10px 20px;
    background-color: var(--header-bg);
    color: var(--header-text);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.back-button:hover {
    background-color: var(--link-hover);
}

/* Code Blocks (if you add them later) */
.topic-container pre {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
}

[data-theme="dark"] .topic-container pre {
    background-color: rgba(255, 255, 255, 0.05);
}