/*
Theme Name: CalcHub
Description: Modern dark calculator theme with glassmorphism effects
Author: CalcHub Team
Version: 1.0
Text Domain: calchub
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    min-height: 100vh;
    padding-top: 80px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
}

h2, h3 {
    font-size: clamp(1.2rem, 3vw, 2rem);
}

.header h1 {
    font-size: clamp(2rem, 6vw, 32px);
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.result-item#bmi-pdf-btn-wrapper {
  display: none;
  flex-direction: column;
  gap: 1rem;
}

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #D052FA;
    text-decoration: none;
}

.logo-icon {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 15px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nav-link:hover {
    color: #D052FA;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    min-width: 280px;
    max-height: 400px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 20px;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: rgba(208, 82, 250, 0.1);
    color: #D052FA;
    padding-left: 25px;
}

.dropdown-content a.active-page {
    background: rgba(208, 82, 250, 0.2);
    color: #D052FA;
    font-weight: 600;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Container Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.header {
    background: linear-gradient(135deg, #D052FA 0%, #764ba2 100%);
    padding: 30px;
    text-align: center;
}

.header p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 40px;
}

.main-paragraph {
    padding: 40px;
}

.calculator-section {
    background: #121212;
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 600;
    margin-bottom: 25px;
    color: #D052FA;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bet-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.bet-type-btn {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
}

.bet-type-btn:hover {
    background: rgba(208, 82, 250, 0.2);
    border-color: #D052FA;
    transform: translateY(-2px);
}

.bet-type-btn.active {
    background: linear-gradient(135deg, #D052FA, #C042E0);
    border-color: #D052FA;
    box-shadow: 0 5px 15px rgba(208, 82, 250, 0.3);
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #e0e0e0;
    font-size: 0.9rem;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

input[type="number"], select, input[type="text"], input[type="email"] {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

input[type="number"]:focus, select:focus, input[type="text"]:focus, input[type="email"]:focus {
    outline: none;
    border-color: #D052FA;
    background: rgba(208, 82, 250, 0.1);
    box-shadow: 0 0 20px rgba(208, 82, 250, 0.2);
}

input[type="number"]::placeholder, input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

select option {
    background: #121212;
    color: white;
    font-size: 0.9rem;
}

.results-section {
    background: #121212;
    border: 1px solid rgba(208, 82, 250, 0.3);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.result-label {
    font-weight: 500;
    color: #e0e0e0;
    font-size: 0.9rem;
}

.result-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #D052FA;
}

.profit {
    color: #D052FA;
}

.loss {
    color: #f44336;
}

.add-selection-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #D052FA, #C042E0);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.add-selection-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(208, 82, 250, 0.3);
}

.selection-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    font-size: 0.9rem;
}

.remove-selection {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mt-4 {margin-bottom:20px;}
.mt-5 {margin-top:20px;}
.input-hint {
    font-size: 0.85em;
    color: #999999;
    margin-top: 5px;
    display: block;
}
.primary {
    color:#D052FA;
}

/* --- Aspect Ratio Calculator Specific Styles --- */
.aspect-ratio-box-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 150px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.aspect-ratio-visual-box {
    border: 2px solid #D052FA;
    background-color: #D052FA;
    box-shadow: 0 0 15px rgba(208, 82, 250, 0.5);
    transition: width 0.3s ease-out, height 0.3s ease-out, background-color 0.3s ease;
    min-width: 20px;
    min-height: 20px;
    max-width: 100%;
    max-height: 250px;
}

.input-hint {
    font-size: 0.85em;
    color: #aaa;
    margin-top: 5px;
    display: block;
}

.result-lg {
    font-size: 2.2rem;
    font-weight: bold;
    color: #D052FA;
}

/* --- Net Worth Calculator Specific Styles --- */
.item-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.item-row .item-description {
    flex-grow: 1;
    min-width: 150px;
}

.item-row .item-amount {
    width: 120px;
    text-align: right;
}

.item-row .remove-item-btn {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    padding: 0;
    font-size: 1.2em;
    display: flex;
    justify-content: center;
    align-items: center;
}

.add-selection-btn.dblock {
    margin-top: 15px;
    margin-bottom: 20px;
    width: 100%;
}

.result-lg {
    font-size: 2.2rem;
    font-weight: bold;
}

/* --- Tax Calculator Specific Styles --- */
.disclaimer {
    font-size: 0.9em;
    color: #FFC107;
    background-color: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #FFC107;
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0f1419 100%);
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 60px 0 40px;
}

.footer-section {
    color: #e0e0e0;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 700;
    color: #D052FA;
    margin-bottom: 20px;
}

.footer-description {
    line-height: 1.7;
    margin-bottom: 25px;
    color: #b0b0b0;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: inline-block;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 45px;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: rgba(208, 82, 250, 0.2);
    border-color: #D052FA;
    transform: translateY(-3px);
}

.footer-title {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 25px;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #D052FA, #C042E0);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #D052FA;
    padding-left: 5px;
}

.footer-seo {
    background: #121212;
    border-radius: 15px;
    padding: 40px;
    margin: 40px 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.seo-content h3 {
    color: #D052FA;
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 20px;
    font-weight: 600;
}

.seo-content p {
    line-height: 1.8;
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.main-paragraph ul,
.main-paragraph ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1.6;
}

.main-paragraph ul li,
.main-paragraph ol li {
  margin-bottom: 0.6rem;
  list-style-type: disc;
}

.main-paragraph table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  background-color: #1e1e1e;
  color: #ffffff;
  border: 1px solid #333;
}

.main-paragraph table th,
.main-paragraph table td {
  border: 1px solid #333;
  padding: 10px 15px;
  text-align: left;
}

.main-paragraph table th {
  background-color: #D052FA;
  color: #fff;
}

.main-paragraph table tr:nth-child(even) {
  background-color: #2a2a2a;
}

.main-paragraph h1,
.main-paragraph h2,
.main-paragraph h3 {
  color: #D052FA;
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 20px;
  font-weight: 600;
}

.main-paragraph p {
  line-height: 1.8;
  color: #ffffff;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.footer-ads {
    background: #121212;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-ads h4 {
    color: #D052FA;
    font-size: 1.3rem;
    margin-bottom: 25px;
    text-align: center;
}

.ad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.ad-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.ad-item:hover {
    background: rgba(208, 82, 250, 0.1);
    border-color: #D052FA;
    transform: translateY(-5px);
}

.ad-placeholder span {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.ad-placeholder p {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.ad-placeholder small {
    color: #b0b0b0;
    font-size: 0.9rem;
}

.newsletter-section {
    background: linear-gradient(135deg, #D052FA 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 40px;
    margin: 40px 0;
    text-align: center;
}

.newsletter-content h3 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 10px;
    color: #ffffff;
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.newsletter-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    gap: 15px;
}

.newsletter-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-btn {
    padding: 15px 30px;
    background: #ffffff;
    color: #D052FA;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.newsletter-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright p {
    color: #b0b0b0;
    margin: 0;
    font-size: 0.9rem;
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #888;
    font-size: 0.9rem;
}

.divider {
    color: #555;
    font-size: 0.9rem;
}

.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, #D052FA, #C042E0);
    animation: float 6s ease-in-out infinite;
}

.floating-shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-shape:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 70%;
    right: 10%;
    animation-delay: 2s;
}

.floating-shape:nth-child(3) {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 70%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* cgpa */
.session {
    margin-bottom: 20px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    font-size: 0.9rem;
}

.session-name {
    color: #D052FA;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.semester {
    margin-bottom: 20px;
}

.semester-name {
    color: #e0e0e0;
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.mt-3 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Add/Remove Buttons for CGPA */
.add-course-btn, .remove-course-btn, .remove-semester-btn, .remove-session-btn {
    font-size: 0.9rem;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    margin-top: 10px;
    margin-left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.add-course-btn {
    background: linear-gradient(135deg, #D052FA, #C042E0);
    border: none;
    color: white;
    width: auto;
    padding: 10px 20px;
}

.add-course-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(208, 82, 250, 0.3);
}

.remove-course-btn {
    background: #f44336;
    color: white;
    border: none;
    padding: 8px 12px;
    font-size: 0.9rem;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    flex-shrink: 0;
    margin-top: 0;
    margin-left: 10px;
}

.remove-course-btn:hover {
    background: #d32f2f;
    transform: translateY(-2px);
}

.remove-session-btn {
    position: relative;
    top: 15px;
    right: 15px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 15px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.remove-session-btn:hover {
    background: #d32f2f;
    transform: translateY(-2px);
}

.course-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.course-row input,
.course-row select {
    flex: 1 1 calc(33.33% - 10px);
    padding: 12px 15px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
}

.course-row input:focus,
.course-row select:focus {
    border-color: #D052FA;
    background: rgba(208, 82, 250, 0.1);
    box-shadow: 0 0 10px rgba(208, 82, 250, 0.2);
    outline: none;
}

/* Responsive Design for the specific elements */
@media (max-width: 768px) {
    .course-row {
        flex-direction: column;
        align-items: stretch;
    }

    .course-row input,
    .course-row select,
    .remove-course-btn {
        flex: none;
        width: 100%;
        margin-left: 0;
    }

    .remove-course-btn {
        width: auto;
        border-radius: 8px;
    }

    body {
        padding: 0; /* Updated: Removed all body padding */
    }

    .container {
        border-radius: 0; /* Updated: Removed border-radius for full width on mobile */
        border: none; /* Updated: Removed border for a clean look */
    }

    .main-content {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0px; /* Kept internal padding for content */
    }

    .header {
        border-radius: 0;
        padding: 20px;
		        margin-top: 60px;
		
    }

    .header h1 {
        font-size: clamp(24px, 6vw, 24px);
        margin-bottom: 5px;
    }
    
    .header p {
        font-size: clamp(14px, 3.5vw, 16px);
    }

    .bet-types {
        grid-template-columns: repeat(2, 1fr);
    }

    .input-row {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 0 20px;
    }

    .footer-seo,
    .footer-ads,
    .newsletter-section {
        padding: 25px;
        margin: 25px 0;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }

    .newsletter-input, .newsletter-btn {
        width: 100%;
        font-size: 1rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-meta {
        flex-direction: column;
        gap: 10px;
    }

    .ad-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.98);
        width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        gap: 0;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 10px 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(255, 255, 255, 0.05);
        margin: 10px 20px;
        border-radius: 10px;
        max-height: none;
        display: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .nav-container {
        padding: 0 15px;
    }

    .nav-logo {
        font-size: 1.3rem;
    }

    .logo-icon {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .ad-grid {
        grid-template-columns: 1fr;
    }

    .social-links {
        justify-content: center;
    }
}

/* Custom scrollbar */
.dropdown-content::-webkit-scrollbar {
    width: 6px;
}

.dropdown-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.dropdown-content::-webkit-scrollbar-thumb {
    background: rgba(208, 82, 250, 0.5);
    border-radius: 3px;
}

.dropdown-content::-webkit-scrollbar-thumb:hover {
    background: rgba(208, 82, 250, 0.7);
}

#growth-chart-container {
    height: 300px;
    width: 100%;
}

canvas {
    max-width: 100%;
    height: 100%;
}

.api-source {
    font-size: 0.9em;
    color: #999999;
    margin-top: 15px;
    text-align: center;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-5 {
    margin-top: 3rem;
}

#principal-amount,
#annual-rate,
#time-period,
#interest-type,
#compounding-frequency {
    /* These should already be covered by .input-field */
}

.result-lg {
    font-size: clamp(2rem, 5vw, 2.2rem);
    font-weight: bold;
    color: #D052FA;
}

@media (max-width: 768px) {
    #growth-chart-container {
        height: 250px;
    }
}

@media (max-width: 480px) {
    #growth-chart-container {
        height: 200px;
    }
}

/* --- Bra Size Calculator Specific Styles --- */
.unit-selection {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    align-items: center;
    justify-content: flex-start;
}

.unit-selection input[type="radio"] {
    display: none;
}

.unit-selection label {
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
    flex-grow: 0;
    text-align: center;
}

.unit-selection input[type="radio"]:checked + label {
    background-color: #D052FA;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(208, 82, 250, 0.4);
}

.unit-selection label:hover {
    background-color: rgba(208, 82, 250, 0.2);
}

.result-lg {
    font-size: clamp(2rem, 5vw, 2.2rem);
    font-weight: bold;
    color: #D052FA;
}

#underbust-measurement,
#bust-measurement {
    /* These should already be covered by your existing .input-field styling */
}

#bra-size-pdf-btn-wrapper {
    /* These should already be covered by your existing styles */
}




/* Mobile menu styles */
@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Hidden by default on mobile */
    }
    
    .nav-menu.active {
        display: block; /* Show when active class is added */
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}