/* General styles */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
}
h1, h2, h3, button {
    font-family: 'Poppins', sans-serif;
}


/* Landing Page */
.landing-page {
    background-color: #0B0D1F;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.landing-content {
    text-align: center;
}

.landing-content h1 {
    color: #1EDFE6;
    font-size: 2rem;
    margin-bottom: 20px;
}

.landing-content button {
    padding: 12px 24px;
    font-size: 1rem;
    background-color: #1EDFE6;
    border: none;
    border-radius: 8px;
    color: #0B0D1F;
    cursor: pointer;
    transition: background 0.3s ease;
}

.landing-content button:hover {
    background-color: #17c4d6;
}
.landing-content {
    text-align: center;
    transform: translateY(-5vh); /* moves content slightly upward */
}


/* Calculator Page */
.calculator-page {
    background-color: #1E1E2F;
    color: #eee;
    max-width: 900px;
    margin: auto;
    padding: 20px;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #0B0D1F;
    padding: 10px 20px;
}

header .logo {
    height: 50px;
}

header nav a {
    color: #1EDFE6;
    margin-left: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: #14B8A6;
}

h2 {
    text-align: center;
    margin-top: 20px;
    color: #1EDFE6;
}

.section {
    background-color: #2A2A3D;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.section h3 {
    margin-top: 0;
    color: #ccc;
}

.input-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.input-group label {
    width: 250px;
    font-weight: 500;
}

.input-group input[type="number"],
.input-group input[type="email"],
.input-group input[type="text"],
.input-group input[type="password"],
.input-group textarea {
    width: 200px;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #555;
    background-color: #1E1E2F;
    color: #eee;
}

/* Make textarea look consistent */
.input-group textarea {
    width: 100%;
    min-height: 80px;
}

/* Checkbox */
.input-group input[type="checkbox"] {
    margin-left: 10px;
    transform: scale(1.2);
}

#calculateAttendanceBtn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #7F5AF0, #14B8A6);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#calculateAttendanceBtn:hover {
    transform: scale(1.05);
}

#resultBox {
    text-align: center;
    font-weight: bold;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.2rem;
    margin-top: 20px;
    display: none;
}

#quoteBox {
    text-align: center;
    font-style: italic;
    margin-top: 10px;
    color: #ccc;
}

/* Buttons */
button {
    cursor: pointer;
    border-radius: 8px;
    font-weight: bold;
    transition: transform 0.2s ease;
}

/* Bunk buttons */
#bunkBtn {
    font-size: 16px;
}

#calculateBunkBtn {
    width: 100%;
    padding: 12px;
    background: #7F5AF0;
    border: none;
    color: white;
    font-size: 16px;
}

/* Result Boxes */
#bunkResultBox {
    text-align: center;
    font-weight: bold;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    margin-top: 15px;
    display: none;
}

#bunkQuoteBox {
    text-align: center;
    font-style: italic;
    margin-top: 10px;
    color: #ccc;
}

/* Footer */
footer {
    background-color: #0B0D1F;
    color: #ccc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    flex-wrap: wrap;
}

.footer-left p {
    margin: 4px 0;
}

.footer-right a {
    margin-left: 10px;
}

.footer-right img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.footer-right img:hover {
    transform: scale(1.2);
}

/* Calculator Container for side-by-side */
.calculator-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Auth form style */
.auth-form {
    max-width: 600px;
    margin: 0 auto;
}

/* Profile textarea */
.profile-section textarea {
    min-height: 100px;
}

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

    .input-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .input-group label {
        width: auto;
        margin-bottom: 5px;
    }

    header nav {
        margin-top: 10px;
    }

    footer {
        flex-direction: column;
        text-align: center;
    }

    .footer-right {
        margin-top: 10px;
    }
}
/* Floating effect for query buttons */
.queries-buttons button {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.queries-buttons button:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
/* Welcome & Title Styling */
.welcome-text {
    font-family: 'Poppins', sans-serif;
    color: #ccc;
    font-size: 1.2rem;
    margin-bottom: 10px;
    animation: fadeIn 1s ease-in;
}

.main-title {
    font-family: 'Poppins', sans-serif;
    color: #1EDFE6;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    animation: fadeIn 1.2s ease-in;
}

/* Button Layout */
.button-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    opacity: 0;
    transform: translateY(50px);
    animation: slideUp 1s ease-out forwards;
    animation-delay: 1.4s;
}

.top-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Floating Buttons */
.landing-content .button-grid button {
    width: 180px;
    padding: 12px 24px;
    font-size: 1rem;
    background-color: #1EDFE6;
    border: none;
    border-radius: 8px;
    color: #0B0D1F;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.landing-content .button-grid button:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Query Card Styling */
.query-card {
  background-color: #1E1E2F;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  color: #eee;
}

.query-meta {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 8px;
}

.query-text {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

/* Replies Section */
.replies-section {
  margin-top: 10px;
}

.reply-card {
  background-color: #2A2A3D;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 8px;
  color: #ccc;
}

/* Show More Button */
.show-more-btn {
  background: none;
  border: none;
  color: #1EDFE6;
  cursor: pointer;
  font-size: 0.9rem;
  margin-top: 5px;
}

/* Reply Input Box */
.reply-input {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.reply-input input {
  flex: 1;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #444;
  background-color: #1E1E2F;
  color: #eee;
}

.submit-reply-btn {
  background-color: #1EDFE6;
  color: #0B0D1F;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.submit-reply-btn:hover {
  transform: translateY(-2px);
}
/* Search & Sort Styling */
#searchQueryInput {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #444;
  background-color: #1E1E2F;
  color: #eee;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: box-shadow 0.3s ease;
}

#searchQueryInput:focus {
  outline: none;
  box-shadow: 0 0 0 2px #1EDFE6;
}

#sortQuerySelect {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #444;
  background-color: #1E1E2F;
  color: #eee;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
}

#sortQuerySelect:hover {
  background-color: #2A2A3D;
}
.query-card {
  background-color: #f0f8ff;
  padding: 16px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.query-meta {
  font-size: 13px;
  color: #555;
  margin-bottom: 6px;
}

.query-text {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 12px;
  color: #222;
}

.reply-card {
  background-color: #1E1E2F; /* Same as main background */
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 10px;
  color: #ccc;
  border: 1px solid #2A2A3D;
  box-shadow: inset 0 0 0 1px #2A2A3D;
  transition: background-color 0.3s ease;
}

.reply-card:hover {
  background-color: #2A2A3D;
}

.reply-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #ddd;
}

.reply-card button {
  background-color: #ff4d4d;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 8px;
  transition: background-color 0.3s ease;
}

.reply-card button:hover {
  background-color: #e63946;
}
.query-card {
  background-color: #f0f8ff;
}
/* Query Card Styling */
.query-card {
  background-color: #1E1E2F;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  color: #eee;
  border: 1px solid #2A2A3D;
}

.query-meta {
  font-size: 0.85rem;
  color: #aaa;
  margin-bottom: 6px;
}

.query-text {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: #ddd;
}

/* Replies Section */
.replies-section {
  margin-top: 10px;
}

.reply-card {
  background-color: #2A2A3D;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 10px;
  color: #ccc;
  border: 1px solid #3A3A4D;
  box-shadow: inset 0 0 0 1px #3A3A4D;
  transition: background-color 0.3s ease;
}

.reply-card:hover {
  background-color: #333344;
}

.reply-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #ddd;
}

.reply-card button {
  background-color: #ff4d4d;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 8px;
  transition: background-color 0.3s ease;
}

.reply-card button:hover {
  background-color: #e63946;
}

/* Reply Input */
.reply-input {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.reply-input input {
  flex: 1;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #444;
  background-color: #1E1E2F;
  color: #eee;
  font-size: 0.95rem;
}

.reply-input input::placeholder {
  color: #aaa;
}

.submit-reply-btn {
  background-color: #1EDFE6;
  color: #0B0D1F;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.submit-reply-btn:hover {
  transform: translateY(-2px);
}

/* Search & Sort Styling */
#searchQueryInput {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #444;
  background-color: #1E1E2F;
  color: #eee;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: box-shadow 0.3s ease;
}

#searchQueryInput:focus {
  outline: none;
  box-shadow: 0 0 0 2px #1EDFE6;
}

#sortQuerySelect {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #444;
  background-color: #1E1E2F;
  color: #eee;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
}

#sortQuerySelect:hover {
  background-color: #2A2A3D;
}

/* Show More Button */
.show-more-btn {
  background: none;
  border: none;
  color: #1EDFE6;
  cursor: pointer;
  font-size: 0.9rem;
  margin-top: 5px;
  font-weight: bold;
}

/* Nested Replies */
.nested-replies {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
}

/* Reply Actions (Voting + Reply Button) */
.reply-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
  flex-wrap: wrap;
}

.reply-actions button {
  background-color: transparent;
  color: #ccc;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.3s ease;
}

.reply-actions button:hover {
  color: #fff;
}

.reply-actions span {
  font-size: 0.85rem;
  color: #aaa;
  margin-right: 12px;
}

/* Highlight active upvote */
.reply-actions button.active-vote {
  background-color: #1EDFE6;
  color: #0B0D1F;
  border: 1px solid #1EDFE6;
  transform: scale(1.05);
  transition: all 0.2s ease-in-out;
}

/* Highlight active downvote */
.reply-actions button.active-vote.downvote {
  background-color: #F87171;
  color: white;
  border: 1px solid #F87171;
  transform: scale(1.05);
  transition: all 0.2s ease-in-out;
}
.reply-card button {
  background-color: #0B0D1F; /* Deep black */
  color: #fff;               /* White text */
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 8px;
  transition: background-color 0.3s ease;
}

.reply-card button:hover {
  background-color: #1E1E2F; /* Slight hover contrast */
}
.edit-query-box {
  background-color: #1E1E2F;
  color: #eee;
  border: 1px solid #444;
  padding: 10px;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
}
.reply-actions button {
  background: none;
  border: none;
  color: #ccc;
  font-size: 18px;
  padding: 4px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.reply-actions button:hover {
  color: #1EDFE6;
}

.reply-actions .active-vote {
  color: #1EDFE6;
}
.comment-actions button {
  background-color: #0B0D1F;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.comment-actions button:hover {
  background-color: #1E1E2F;
}
.query-actions button,
.reply-actions .reply-btn,
.reply-actions .edit-btn,
.reply-actions .delete-btn {
  background-color: #00BFFF; /* KL Blue */
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-right: 10px; /* Adds space between buttons */
}

.query-actions button:hover,
.reply-actions .reply-btn:hover,
.reply-actions .edit-btn:hover,
.reply-actions .delete-btn:hover {
  background-color: #000000 
}
.query-actions button,
.reply-actions .reply-btn,
.reply-actions .edit-btn,
.reply-actions .delete-btn {
  background-color: #0B0D1F; /* Black background */
  color: #fff;               /* White text */
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  margin-right: 10px;
  transition: background-color 0.3s ease;
}

/* Hover effect */
.query-actions button:hover,
.reply-actions .reply-btn:hover,
.reply-actions .edit-btn:hover,
.reply-actions .delete-btn:hover {
  background-color: #1E1E2F;
}
.edit-query-box {
  background-color: #0B0D1F; /* Deep black */
  color: #fff;               /* White text */
  border: 1px solid #444;
  padding: 10px;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
}

.edit-query-box::placeholder {
  color: #aaa;
}
.report-icon {
  width: 22px;              /* Slightly bigger */
  height: 22px;
  margin-left: 0px;         /* Push it left */
  margin-right: 12px;       /* Space from query text */
  vertical-align: middle;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.report-icon:hover {
  transform: scale(1.1);
}
.calculator-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.section {
  flex: 1 1 280px;
}
