
/* body {
    font-family: "Inter", "Segoe UI", sans-serif;
    margin:1.8em 1em;
    
    background: #f9fafb;
    color: #1f2937;
    line-height: 1.6;
  } */

  body { display: flex; flex-direction: column;  font-family: "Inter", "Segoe UI", sans-serif;  background: #2b2b2b;     color: #eee;
    line-height: 1.6; }

  /* html, body {
    max-width: 100%;
    overflow-x: hidden;
  } */
  /* html, body { height: 100%; overflow: hidden; } */
  html, body {
    height:100%;
max-width: 100%;
overflow-x: hidden;
margin:0;
}
/* html, body { height: 100%; overflow: hidden; } */

*{ box-sizing: border-box; margin: 0; padding: 0; }


/* Apply to the whole page */
* {
  scrollbar-width: thin;              /* For Firefox */
  scrollbar-color: #555 #222;         /* For Firefox */
}

/* WebKit Browsers */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #222;                   /* Dark background */
}

::-webkit-scrollbar-thumb {
  background-color: #555;             /* Darker thumb */
  border-radius: 10px;
  border: 2px solid #222;             /* Padding effect */
}

::-webkit-scrollbar-thumb:hover {
  background-color: #777;
}


  h1, h2, h3 {
    font-weight: 600;
    color: #c0c0c0;
  }

  .problem-card {
    background: #393939;
    border: 1px solid #0c0c0c;
    border-radius: 12px;
    padding: 0.25em 1em;
    margin-bottom: 0.5em;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, transform 0.1s ease;
    cursor: pointer;
  }

  .problem-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    background-color: #777777;
  }

  .tags {
    font-size: 0.85em;
    color: ##d3d3d3;
    margin-top: 0.3em;
    margin-bottom:3px;
  }

  .tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin-top: 1em;
  }

  .tag-pill {
    background-color: #e0f2fe;
    color: #0369a1;
    padding: 0.3em 0.8em;
    border-radius: 999px;
    font-size: 0.85em;
    font-weight: 500;
    white-space: nowrap;
  }


.tag-new {
background-color: #ffe0b2;
}



  #detail-container {
    display: none;
   
  }
  .fade-in {
animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .statement, .solution, .hints {
    background: #252526;
    border: 1px solid #9e9e9e;
    border-radius: 12px;
    padding: 1.25em 1.5em;
    margin-top: 1.5em;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  }
  .statement{
    margin-bottom:4.5em;
  }

  /* details summary {
    cursor: pointer;
    font-weight: 500;
    margin: 0.75em 0;
    color: #1d4ed8;
    transition: color 0.2s ease;
  }

  details summary:hover {
    color: #2563eb;
  } */














  .custom-checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    color: #e0e0e0;
    font-size: 1em;
    user-select: none;
    position: relative;
    padding-left: 28px;
  }
  
  .custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
  }
  
  .custom-checkbox .checkmark {
    position: absolute;
    left: 0;
    top: 2px;
    height: 18px;
    width: 18px;
    background-color: #1a1a1a;
    /* border: 2px solid #444; */
    border-radius: 4px;
    transition: background-color 0.2s, border-color 0.2s;
  }
  
  .custom-checkbox input:checked ~ .checkmark {
    background-color: #0f4c81;
    border-color: #2d9cdb;
  }
  
  .custom-checkbox .checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }
  
  .custom-checkbox input:checked ~ .checkmark::after {
    display: block;
  }
  








  #back-button {
    display: inline-block;
    margin-bottom: 1em;
    background-color: #1c213f;
    color: white;
    font-size: 0.95em;
    font-weight: 500;
    border: none;
    padding: 0.6em 1.2em;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }

  #back-button:hover {
    background-color: #6f7588;
  }

  button:focus, details summary:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
  }

  .comments-section {
margin-top: 1.5em;
border-top: 1px solid #e2e8f0;
padding: 1em 0.5em 0.5em;
font-family: 'Segoe UI', Roboto, sans-serif;
}

.comments-title {
font-size: 1em;
font-weight: 600;
color: #374151;
margin-bottom: 0.5em;
padding-bottom: 0.3em;
border-bottom: 1px solid #e5e7eb;
}

#comments-list {
display: flex;
flex-direction: column;
gap: 0.3em;
max-height: 300px;
overflow-y: auto;
}

.comment {
background: #252627;
border: 1px solid #e5e7eb;
border-radius: 10px;
padding: 0.5em 0.8em;
font-size: 0.9em;
max-width: 100%;
word-wrap: break-word;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.comment-header {
font-size: 0.75em;
color: #6b7280;
margin-bottom: 0.25em;
}

textarea#comment-input {
margin-top: 0.8em;
width: 100%;
padding: 0.5em 0.8em;
font-size: 0.9em;
border: 1px solid #8994a3;
border-radius: 8px;
resize: vertical;
box-sizing: border-box;
background: #151616;
transition: border 0.2s ease;
}

textarea#comment-input:focus {
border: 1px solid #3b82f6;
outline: none;
background: #413f3f;
color:aliceblue;
}


  #submit-comment {
    background-color: #2563eb;
    color: white;
    padding: 0.5em 1em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }

  #submit-comment:hover {
    background-color: #1e40af;
  }























  #add-tag-btn {
    padding: 4px 10px;
    font-size: 1em;
    background-color: transparent;
    border: 1px solid #666;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
  }
  
  #add-tag-btn:hover {
    background-color: #222;
    border-color: #999;
  }
  
  
  #add-hint-btn {
    padding: 4px 10px;
    font-size: 1em;
    background-color: transparent;
    border: 1px solid #666;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
  margin-right: 0.63em;
  }

  
  #add-hint-btn:hover {
    background-color: #222;
    border-color: #999;
  }
  













  .tag-input-wrapper {
    display: none;
    margin-top: 0.75em;
    background-color: #111;
    padding: 1em;
    border-radius: 8px;
    border: 1px solid #333;
  }
  
  .tag-input {
    width: 100%;
    padding: 0.5em 0.75em;
    background-color: #1a1a1a;
    color: #f0f0f0;
    border: 1px solid #333;
    border-radius: 6px;
    font-size: 1em;
    margin-bottom: 0.75em;
    outline: none;
    transition: border-color 0.2s;
  }
  
  .tag-input:focus {
    border-color: #888;
  }
  
  .submit-tags-btn {
    background-color: #222;
    color: #fff;
    padding: 0.5em 1em;
    border: 1px solid #444;
    border-radius: 6px;
    font-size: 0.95em;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
  }
  
  .submit-tags-btn:hover {
    background-color: #333;
    border-color: #666;
  }
















  .hint-form {
    display: none;
    margin-bottom: 1em;
    background-color: #111;
    padding: 1em;
    border-radius: 8px;
    border: 1px solid #333;
  }
  
  .hint-input,
  .hint-textarea {
    width: 100%;
    padding: 0.5em 0.75em;
    background-color: #1a1a1a;
    color: #f0f0f0;
    border: 1px solid #333;
    border-radius: 6px;
    font-size: 1em;
    margin-bottom: 0.75em;
    outline: none;
    transition: border-color 0.2s ease;
  }
  
  .hint-input:focus,
  .hint-textarea:focus {
    border-color: #888;
  }
  
  .submit-hint-btn {
    background-color: #222;
    color: #fff;
    padding: 0.5em 1em;
    border: 1px solid #444;
    border-radius: 6px;
    font-size: 0.95em;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
  }
  
  .submit-hint-btn:hover {
    background-color: #333;
    border-color: #666;
  }
  
  






.shrouded {
display: inline-block;
padding: 0px 10px;
border-radius: 20px;
background-color: #393838;
color: transparent;
font-size: 0.7em;
transition: color 0.3s ease 0.5s, background-color 0.3s ease 0.5s; /* Delay hiding */
cursor: pointer;
user-select: none;
/* border: 1px solid #ccc; */
}

.shrouded:hover {
color: #e0e0e0;
background-color: #1a1a1a;
transition: color 0.5s ease 0s, background-color 0.5s ease 0s; /* No delay on reveal */
}
.visible{
  color: #f5f5f5;
  background-color: #737373;
transition: color 0.5s ease 0s, background-color 0.5s ease 0s; /* No delay on reveal */
}

.preserve-whitespace {
  white-space: pre-wrap;
  word-break: break-word;
}









#problems-container{
  max-width: 100%;
  margin: 1rem;
}
#detail-container{
    height:100%;
  max-width: 100%;
  /* margin:0em 8em; */
}














#page-container {
display: flex;
flex-wrap: wrap;
align-items: flex-start;
justify-content: space-between;
gap: 2em;
/* margin-top:10px; */
height:100vh;
}

#problems-and-pagination {
flex: 1;
height:100%;
}

#filter-box {
display:none;
/* width: 250px; */
background: #21222347;
border: 1px solid #e5e7eb;
border-radius: 12px;
padding: 1em 1.2em;
/* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); */
position: sticky;
top: 1em;
height: fit-content;
font-size: 0.95em;
margin-top: 10px;
}

#filter-box h3 {
margin-top: 0;
color: #111827;
}

#filter-box input,
#filter-box select {
  width: 100%;
  background-color: #33303000;
  padding: 0.4em;
  margin-bottom: 0.8em;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.95em;
  color: white;
}

#filter-box button {
margin-right: 0.5em;
padding: 0.4em 0.8em;
background-color: #515357;
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
font-weight: 500;
transition: background-color 0.2s ease;
}

#filter-box button:hover {
background-color: #2563eb;
}














.defaulth3{
  margin-top:8px;
  margin-bottom:2px;
}



#pagination-controls {
display: flex;
justify-content: center;
gap: 0.5em;
padding: 1em 0;
align-items: center;
font-family: system-ui, sans-serif;
}

#pagination-controls button {
padding: 0.4em 0.8em;
border: 1px solid #ccc;
border-radius: 6px;
background-color: transparent;
color: #a9a9a9;
cursor: pointer;
font-size: 0.95em;
transition: all 0.2s ease;
}

#pagination-controls button:hover {
background-color: #f0f0f0;
border-color: #999;
color: #000;
}












.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9fafb;
    border-bottom: 1px solid #001fff;
    padding: -1px 20px;
    position: relative;
    top: 0;
    z-index: 100;
  }

  .navbar .logo {
    font-size: 1.2rem;
    font-weight: bold;
    color: #eeeeee;
    text-decoration: none;
  }

  .navbar-links {
    display: flex;
    gap: 20px;
  }

  .navbar-links a {
    text-decoration: none;
    color: #adadad;
    font-size: 0.95rem;
    transition: color 0.2s;
  }

  .navbar-links a:hover {
    color: #ffffff;
  }

  #profileCircle {
    display: flex;
    align-items: center;
  }

  #profileCircle button {
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 50%;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
  }

  #profileCircle button:hover {
    background-color: #e0e0e0;
  }
  
  

  
  
  .fh{
  
    
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    background: linear-gradient(90deg, #f8f8f8, #dbdbdb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    letter-spacing: 2px;
 
  
  }
  
  
  
  #special-filters {
  margin-top: 0.75em;
  display: flex;
  justify-content: center;
  gap: 1rem;          /* adjust to taste */
}

#special-filters button {
  background-color: transparent;
  color: #cbcaca; /* professional gray tone */
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;

  padding: 0.5em 1em; /* optional: give buttons some padding */
}



#special-filters button:hover {
  background-color: #6d6b6b; /* subtle hover effect */
  color: #fdfdfd;
  border-color: #888;
}



#left-column {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
#left-column {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}


.custom-mock-toggle-buttoni:hover {
  background-color: #f0f0f0; /* subtle hover effect */
  color: #000;
  border-color: #888;
}

  


























#custom-mock-container {
    position:absolute;
    font-family: Arial, sans-serif;
    color: #333;
    padding: 20px;
    display: grid;  /* Use grid layout */
    grid-template-columns: 1fr 2fr; /* 1:2 ratio for the columns */
    gap: 20px;  /* Space between columns */
    width:100%;
  }
  
  #mock-filters {
    
    color: white;
    background-color: #373737;
    padding: 20px;
    border-radius: 8px;
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
    margin-top: 10px;
  }
  
  #mock-paper-preview {
    max-width: 210mm;
    min-width: 15%;
    padding: 20px;
    border: 1px solid #ddd;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    border-radius:10px;
  }
  
  .filter-group {
    margin-bottom: 15px;
  }
  
  label {
    font-size: 1rem;
    margin-right: 10px;
  }
  
  input, select {
    padding: 2px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #3b3b3b;
    color: white;
  }
  
  .filter-buttons button {
    padding: 10px 15px;
    margin: 5px;
    border: none;
    background-color: #f0f0f0;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
  }
  
  .filter-buttons button:hover {
    background-color: #e0e0e0;
  }
  
  .mock-preview-box {
    border: 1px dashed #888;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
  }
  
  ol {
    padding-left: 20px;
    list-style-type: decimal;
  }
  
  #mock-tags-select {
    
      width: 100%;
      height: 100px;
      padding: 8px;
      border-radius: 4px;
      border: 1px solid #ccc;
      background-color: #5f5e5e;
      color: #ffffff;
  }
  
  h4 {
    margin-top: 20px;
    font-size: 1.5rem;
  }
  

  
  .sepbox{
    
  }
  #mock-problems-list li {
      margin-bottom: 20px; /* Adjust spacing as needed */
    }

    
    @media (max-width: 768px) {
      #custom-mock-container {
        grid-template-columns: 1fr;
        padding: 10px;
      }
    
      #mock-filters, #mock-paper-preview {
        margin-top: 10px;
        padding: 15px;
      }
    
      #mock-paper-preview {
        max-width: 100%;
      }
    

    
      .filter-buttons button {
        font-size: 0.7rem;
        padding: 8px 12px;
      }
    }
    @media (max-width: 768px) {
      #mock-problems-list li {
        margin-bottom: 15px;
        font-size: 0.7rem;
        line-height: 1.5;
      }
      .mock{
        flex-direction: column;
        font-size: 0.7em;
      }
      .mock h4,
  .mock label {
    font-size: inherit; /* Force them to use the parent's scaled size */
  }
    }


    .shrouded-difficulty {
      display: inline-block;
      padding: 0.2em 0.75em;
      border-radius: 999px;
      /* border: 1px solid rgba(0,0,0,0.2); */
      background-color: rgba(128, 128, 128, 0.2); 
        color: transparent;
    /* text-shadow: 0 0 6px rgba(0, 0, 0, 0.5); */
      transition: all 0.3s ease;
      cursor: pointer;
    }
    
    .shrouded-difficulty:hover {
      color: inherit;
      text-shadow: none;
      background-color: rgba(128, 128, 128, 0.1); 
    }


    


    
/* Responsive Navbar for Small Screens */

@media (max-width: 500px) {

  #detail-container {
    /* let it shrink and fill the screen */
    min-width: 0;
    width: 100%;
    max-width: 100%;
    margin: 0.6em;       /* or whatever small padding you like */
    padding: 0;          /* optional, to reclaim space */
    font-size: 0.67em;
  }#detail-container h4,
  #detail-container label {
    font-size: inherit; /* Force them to use the parent's scaled size */
  }

  #page-container {
    align-items: normal;
    flex-direction: column-reverse;
  }

  #filter-box {
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 10px;
    position: relative;
    font-size: 0.8em;
    padding: 0.5em 0.6em;
    border-radius: 8px;
  }
  

  #filter-box input,
  #filter-box select {
    font-size: 0.8em;
    padding: 0.3em;
    margin-bottom: 0.5em;
  }

  #filter-box button {
    font-size: 0.8em;
    padding: 0.3em 0.6em;
  }


  #filter-box label {
    font-size: 0.8em;
  }
  body{
    margin:0em 0em;
  }

  .problem-card {
 
    padding: 0.5em 0.8em;
    margin-bottom: 0.4em;
    font-size: 0.58em;
    border-radius: 8px;
    box-shadow: none;

  }

  .problem-card:hover {
    transform: none;
    box-shadow: none;
  }

  .tags {
    font-size: 0.75em;
    margin-top: 0.2em;
    margin-bottom: 0.2em;
  }


  textarea#comment-input {
    font-size: 0.85em;
    padding: 0.4em 0.6em;
  }

  #problems-container, #detail-container {
    margin: 0;
  }




  #pagination-controls{
    font-size: 0.7em;
    justify-content: center;
  }
  body{
    margin:0.3em 0.6em;
  }
  input, select {
    font-size: 0.8em;
  }
}
/* Base navbar */
/* .navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75em 1em;
  background: #f9fafb;
  border-bottom: 1px solid #e0e0e0;
  position: relative;
  z-index: 100;
} */

/* Profile avatar */
/* #profileCircle button {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
} */
/* #profileCircle .avatar {
  width: 2.2em;
  height: 2.2em;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #ccc;
}
 */


/* Hamburger icon (hidden on desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 1.5em;
  height: 1.2em;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}


.hamburger span {
  display: block;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animation for when menu is open */
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu (hidden by default) */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  display: flex;
  flex-direction: column;
}
.mobile-menu.open {
  max-height: 300px; /* adjust if you add more items */
}
.mobile-menu a,
.mobile-menu .make-mock {
  padding: 0.75em 1em;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #eee;
  background: transparent;
  text-align: left;
  font-size: 1rem;
  border: none;
  cursor: pointer;
}
.mobile-menu .make-mock {
  background: #2563eb;
  color: #fff;
  border-radius: 6px;
  margin: 0.5em;
}
.mobile-menu a:last-of-type,
.mobile-menu .make-mock:last-of-type {
  border-bottom: none;
}

/* Responsive trigger */
@media (max-width: 768px) {
  .navbar-links { display: none; }
  .hamburger { display: flex; }

  .custom-mock-toggle-buttoni{
  display:none;
  }
}

















.submission-card {
  background: #1a1a2e;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
  color: #e0e0e0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.timestamp {
  font-size: 0.8rem;
  color: #aaa;
  float: right;
}
.math-display {
  font-family: monospace;
  background: #222;
  padding: 8px;
  border-radius: 5px;
}



#tag-dropdown option{
  background-color: rgb(61, 61, 61);
}

















.icon-btn {
  background: transparent;
  border: none;
  padding: 0.3em;
  cursor: pointer;
  color: #e9e9e9;
  transition: transform 0.2s ease;
}
.icon-btn:hover {
  transform: scale(1.1);
}
.svg-inline--fa {
  width: 1.2em;
  height: 1.2em;
}



