:root{
    --muted:#6b7280; 
    --link:#000000; 
    --border:#e5e7eb;
}

* { 
    margin: 0px; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
  background: #ffffff; 
  color: #000000; 
  line-height: 1.6; 
}

header{
    border-bottom:1px solid var(--border); 
    background:#fff
}

.wrap{
    max-width:920px; 
    margin:0 auto; 
    padding:1.25rem
}

.brand{
    display:flex; 
    align-items:center; 
    justify-content:space-between; 
    gap:1rem
}

.brand h1{
    margin:0; 
    font-size:1.25rem
}

.search-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.search-nav-row #search {
  max-width: 300px;
  flex: 0 0 auto;
}

nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

nav a {
  color: var(--link);
  text-decoration: none;
  font-weight: 500;
}

nav .muted {
  color: var(--muted);
}

#themes { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 20px; 
    padding: 20px; 
    background: #ffffff;
}

.card { 
    background: #f8f9fa; 
    padding: 20px; 
    text-align: center; 
    border-radius: 8px; 
    cursor: pointer; 
    border: 2px solid #000000;
    color: #000000;
    font-weight: 500;
    transition: all 0.3s ease;
}

.card:hover { 
    background: #303030; 
    color: #ffffff;
}

#sidebar {
  width: 300px; 
  min-width: 300px;
  overflow-y: auto;
}

.topic-link {
    cursor: pointer;
    margin-left: 10px;
    padding: 5px;
    color: #000000;
    transition: all 0.2s ease;
}

.topic-link:hover {
    background: #000000;
    color: #ffffff;
    border-radius: 4px;
}

.subject-section {
    margin-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
}

.subject-section strong {
    display: block;
    margin-bottom: 8px;
    color: #000000;
    font-size: 16px;
    padding: 5px;
}

.subject-section strong:hover {
    background: #f8f9fa;
}

.topics-container {
    margin-left: 15px;
    margin-bottom: 10px;
}

.search-result {
  text-align: left !important;
  padding: 15px !important;
}

.search-result:hover {
  background: #e9ecef !important;
  color: #000000 !important;
}

.feedback { 
    position: fixed; 
    bottom: 20px; 
    right: 20px; 
}

.feedback-btn { 
    background: #007acc; 
    color: white; 
    border: none; 
    padding: 10px; 
    border-radius: 50%; 
    cursor: pointer; 
    font-size: 14px; 
}

.feedback-form { 
    position: absolute; 
    bottom: 50px; 
    right: 0; 
    width: 280px; 
    background: white; 
    border: 1px solid #ddd; 
    border-radius: 6px; 
    padding: 12px; 
    display: none; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); 
}

.feedback-form textarea, .feedback-form input { 
    width: 100%; 
    padding: 6px; 
    border: 1px solid #ddd; 
    border-radius: 4px; 
    margin-bottom: 8px; 
    font-size: 12px; 
}

.feedback-form button { 
    background: #007acc; 
    color: white; 
    border: none; 
    padding: 6px 12px; 
    border-radius: 4px; 
    cursor: pointer; 
    font-size: 12px; 
}

@media (max-width: 767.98px) {
  .brand {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  
  .brand h1 {
    text-align: center;
    font-size: 1.1rem;
  }
  .search-nav-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .search-nav-row #search {
    order: 2;
    max-width: none;
  }
  nav {
    order: 1;
  }
  #google_translate_element {
    order: 1;
  }
  #sidebar {
    position: absolute;
    z-index: 1000;
    height: 100%;
    background: white;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
  }
  
  #sidebar.d-none {
    display: none !important;
  }
  
  #notes-layout {
    position: relative;
  }
}
footer{
    border-top: 1px solid var(--border);
    font-size: .9rem;
    width: 100%;
    background-color: #6b7280;
    color: white;
}