/* css/style.css */

/* Base Styles */
body {
    font-family: 'Inter', sans-serif; /* Using Inter font as per instructions */
    background: #f8fafb;
    margin: 0;
    color: #222; /* Changed to #222 for better consistency with original files */
    line-height: 1.6;
}

a {
    color: #7b9b72;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}
@media (max-width: 767px) {
  .main-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    white-space: nowrap;
    padding: 0.2rem 0.5rem; /* Better click area */
    border-radius: 5px; /* Slightly rounded corners */
    transition: background-color 0.2s ease; /* Smooth transition */
  }
}
@media (max-width: 768px) {
    .main-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #92B874;
        flex-direction: column;
        padding: 0.2rem 0.5rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 1000;
        max-height: 50vh; /* This is the new line */
        overflow-y: auto; /* This is the new line */
    }

    .main-menu.active {
        display: flex;
    }
    .main-menu a {
        margin: 0.2rem 0;
        padding: 0.3rem 0.5rem;
        text-align: center;
    }
    .hamburger {
        display: block;
    }
}
.logo img {
    max-width: 100%;
    height: auto;
    width: 180px; /* Default size, can be adjusted */
    display: block;
}

@media (max-width: 768px) {
    .logo img {
        width: 180px; /* Smaller size for tablets */
    }
}

@media (max-width: 480px) {
    .logo img {
        width: 180px; /* Even smaller for mobile */
    }
}
@media (max-width: 768px) {
    .logo {
        font-size: 1.2rem;
        font-weight: bold;
    }
}

.color-dropdown {
    position: absolute; /* Changed from fixed to absolute for correct positioning */
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1001; /* Increased z-index to ensure it's on top */
    max-height: 200px;
    overflow-y: auto;
}
/* Header Styles */
header {
    background-color: #92B874;
    padding: 1rem 0;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    position: relative;
}

.logo {
    font-size: 18px;
    font-weight: bold;
}

.main-menu {
    display: flex;
    gap: 3px; /* Using gap for spacing instead of margin-left */
}

.main-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    white-space: nowrap;
    padding: 0.3rem 0.5rem;
    border-radius: 5px; /* Slightly rounded corners */
    transition: background-color 0.2s ease; /* Smooth transition */
}

.main-menu a:hover {
    opacity: 0.8;
    background-color: rgba(255, 255, 255, 0.1); /* Subtle hover background */
}

.main-menu a.active {
    background-color: #7b9b72; /* Active link styling */
    font-weight: bold;
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    user-select: none;
    padding: 0 0.5rem;
}

/* Responsive Header */
@media (max-width: 768px) {
    .main-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #92B874;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    .main-menu.active {
        display: flex;
    }
    .main-menu a {
        margin: 0.2rem 0;
        text-align: center;
    }
    .hamburger {
        display: block;
    }
}

/* Page Container Styles (Common for all content pages) */
.page-container {
    max-width: 1000px; /* Max-width adjusted for wider content if needed */
    margin: 2rem auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08); /* Adjusted shadow for softer look */
    padding: 2rem;
}

h2.page-title {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 2rem;
    color: #333;
}

.separator {
    border-bottom: 2px solid #92B874;
    width: 120px;
    margin: 0 auto 2rem auto;
}

/* Footer Styles */
footer {
    background-color: #92B874;
    color: #fff;
    padding: 1.5rem 0;
    margin-top: 2rem;
    text-align: center;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1em;
    flex-wrap: wrap;
    flex-direction: row;
}

.footer-links {
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1em;
    white-space: nowrap;
    padding: 0 0.3em;
}

.footer-links a:hover {
    text-decoration: underline;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 0.5em;
        align-items: center;
        text-align: center;
    }
    .footer-links {
        flex-direction: row;
        gap: 1em;
        width: 100%;
        justify-content: center;
    }
    .footer-links a {
        padding: 0 0.3em;
    }
}

/* --- Page Specific Styles --- */

/* Index Page (Resistor Color Code Calculator) */
@media (max-width: 480px) {
    .band-selector {
        flex-wrap: nowrap;
        gap: 0.2rem;
        margin-bottom: 1.2rem;
        padding-bottom: 1.2rem;
    }
    .band-btn {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
        height: 48px;
        box-sizing: border-box;
        white-space: nowrap;
        line-height: 1.1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}

.band-selector {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 2rem;
    display: flex; /* Added flex for desktop too */
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}
.band-btn {
    padding: 0.75rem 1.5rem;
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s ease-in-out;
}
.band-btn:hover {
    background: #e0e0e0;
}
.band-btn.active {
    background: #7b9b72;
    color: #fff;
    border-color: #7b9b72;
}
.resistor-box {
    display: inline-block;
    background-color: black;
    color: white;
    font-family: monospace;
    font-size: 17px;
    padding: 5px 10px;
    border-left: 1px solid white;
    border-right: 1px solid white;
    border-radius: 3px;
    margin-top: 1px;
}
.resistor-box a {
    color: white;
    text-decoration: none;
}
.resistor-box a:hover {
    text-decoration: underline;
}
.info-text {
    margin-top: 3rem;
}
.info-text h3 {
    color: #497d29;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
    margin-top: 2rem;
}
.info-text p, .info-text li {
    font-size: 16px;
    line-height: 1.7;
}
.info-text ul {
    list-style-type: disc;
    padding-left: 20px;
}

/* Calculator Styles */
/* Note: The .container class here might conflict if you're also using a global .container.
   If so, consider renaming this to something more specific like .calculator-container. */
/* Removed the .container style that was overriding page-container styles */


/* New Resistor Diagram Styles */
.resistor-color-tool {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px 0;
}

#resistor-color-diagram {
    margin: 20px auto;
    position: relative;
    max-width: 350px;
    width: 100%;
    height: auto;
    overflow: hidden; /* Clip bands that extend beyond the image */
}
#resistor-color-diagram img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain; /* Ensure image maintains aspect ratio */
}

/* Improved responsive design for small screens */
@media screen and (max-width: 700px) {
    #resistor-color-diagram {
        max-width: 320px; /* Set a specific max-width instead of none */
        min-width: 280px; /* Ensure minimum width for proper display */
        margin: 20px auto;
    }
}

/* Additional breakpoint for very small screens */
@media screen and (max-width: 480px) {
    #resistor-color-diagram {
        max-width: 280px;
        min-width: 250px;
    }
}

/* Ensure proper scaling on medium screens */
@media screen and (min-width: 701px) and (max-width: 900px) {
    #resistor-color-diagram {
        max-width: 355px;
    }
}

/* Common Band Styles */
#resistor-color-diagram .first-band,
#resistor-color-diagram .second-band,
#resistor-color-diagram .third-band,
#resistor-color-diagram .multiplier,
#resistor-color-diagram .tolerance,
#resistor-color-diagram .ppm {
    position: absolute;
    width: 4%; /* Relative to container width */
}

/* 4 Bands Positioning */
@media screen and (min-width: 701px) {
    #resistor-color-diagram.four-bands .first-band { left: 28%; top: 14.5%; height: 79%; max-height: 79px; }
    #resistor-color-diagram.four-bands .second-band { left: 42%; top: 20%; height: 66%; max-height: 66px; }
    #resistor-color-diagram.four-bands .multiplier { right: 42%; top: 20%; height: 66%; max-height: 66px; }
    #resistor-color-diagram.four-bands .tolerance { right: 29%; top: 14.5%; height: 79%; max-height: 79px; }
}
@media screen and (max-width: 700px) {
    #resistor-color-diagram.four-bands .first-band { left: 28%; top: 14.5%; height: 73%; max-height: 73px; }
    #resistor-color-diagram.four-bands .second-band { left: 42%; top: 20%; height: 62%; max-height: 62px; }
    #resistor-color-diagram.four-bands .multiplier { right: 42%; top: 20%; height: 62%; max-height: 62px; }
    #resistor-color-diagram.four-bands .tolerance { right: 28.5%; top: 14.5%; height: 73%; max-height: 73px; }
}
/* Additional responsive adjustments for very small screens */
@media screen and (max-width: 480px) {
    #resistor-color-diagram.four-bands .first-band { left: 28%; top: 14.5%; height: 70%; max-height: 70px; }
    #resistor-color-diagram.four-bands .second-band { left: 42%; top: 20%; height: 60%; max-height: 60px; }
    #resistor-color-diagram.four-bands .multiplier { right: 42%; top: 20%; height: 60%; max-height: 60px; }
    #resistor-color-diagram.four-bands .tolerance { right: 28.5%; top: 14.5%; height: 70%; max-height: 70px; }
}

/* 5 Bands Positioning */
@media screen and (min-width: 701px) {
    #resistor-color-diagram.five-bands .first-band { left: 25%; top: 10%; height: 84%; max-height: 84px; }
    #resistor-color-diagram.five-bands .second-band { left: 40%; top: 15%; height: 73%; max-height: 73px; }
    #resistor-color-diagram.five-bands .third-band { left: 49%; top: 15%; height: 73%; max-height: 73px; }
    #resistor-color-diagram.five-bands .multiplier { right: 37%; top: 15%; height: 73%; max-height: 73px; }
    #resistor-color-diagram.five-bands .tolerance { right: 27%; top: 10%; height: 83%; max-height: 83px; }
}
@media screen and (max-width: 700px) {
    #resistor-color-diagram.five-bands .first-band { left: 26%; top: 10%; height: 84.5%; max-height: 85px; }
    #resistor-color-diagram.five-bands .second-band { left: 39%; top: 15.5%; height: 73%; max-height: 73px; }
    #resistor-color-diagram.five-bands .third-band { left: 48%; top: 15.5%; height: 73%; max-height: 73px; }
    #resistor-color-diagram.five-bands .multiplier { right: 38%; top: 15.5%; height: 73%; max-height: 73px; }
    #resistor-color-diagram.five-bands .tolerance { right: 26%; top: 10%; height: 83.5%; max-height: 83px; }
}
/* Additional responsive adjustments for very small screens */
@media screen and (max-width: 480px) {
    #resistor-color-diagram.five-bands .first-band { left: 26%; top: 10%; height: 82%; max-height: 82px; }
    #resistor-color-diagram.five-bands .second-band { left: 39%; top: 15.5%; height: 70%; max-height: 70px; }
    #resistor-color-diagram.five-bands .third-band { left: 48%; top: 15.5%; height: 70%; max-height: 70px; }
    #resistor-color-diagram.five-bands .multiplier { right: 38%; top: 15.5%; height: 70%; max-height: 70px; }
    #resistor-color-diagram.five-bands .tolerance { right: 26%; top: 10%; height: 82%; max-height: 82px; }
}

/* 6 Bands Positioning */
@media screen and (min-width: 701px) {
    #resistor-color-diagram.six-bands .first-band { left: 22%; top: 11%; height: 82%; max-height: 82px; }
    #resistor-color-diagram.six-bands .second-band { left: 35%; top: 17%; height: 71%; max-height: 71px; }
    #resistor-color-diagram.six-bands .third-band { left: 43%; top: 17%; height: 71%; max-height: 71px; }
    #resistor-color-diagram.six-bands .multiplier { right: 43%; top: 17%; height: 71%; max-height: 71px; }
    #resistor-color-diagram.six-bands .tolerance { right: 35%; top: 17%; height: 71%; max-height: 71px; }
    #resistor-color-diagram.six-bands .ppm { right: 23%; top: 11%; height: 81%; max-height: 81px; }
}
@media screen and (max-width: 700px) {
    #resistor-color-diagram.six-bands .first-band { left: 21.43%; top: 12%; height: 80%; max-height: 80px; }
    #resistor-color-diagram.six-bands .second-band { left: 33.43%; top: 17%; height: 71%; max-height: 71px; }
    #resistor-color-diagram.six-bands .third-band { left: 40.57%; top: 17%; height: 71%; max-height: 71px; }
    #resistor-color-diagram.six-bands .multiplier { right: 45.71%; top: 17%; height: 71%; max-height: 71px; }
    #resistor-color-diagram.six-bands .tolerance { right: 38.57%; top: 17%; height: 71%; max-height: 71px; }
    #resistor-color-diagram.six-bands .ppm { right: 21.43%; top: 12%; height: 80%; max-height: 80px; }
}
/* Additional responsive adjustments for very small screens */
@media screen and (max-width: 480px) {
    #resistor-color-diagram.six-bands .first-band { left: 21.43%; top: 12%; height: 78%; max-height: 78px; }
    #resistor-color-diagram.six-bands .second-band { left: 33.43%; top: 17%; height: 68%; max-height: 68px; }
    #resistor-color-diagram.six-bands .third-band { left: 40.57%; top: 17%; height: 68%; max-height: 68px; }
    #resistor-color-diagram.six-bands .multiplier { right: 45.71%; top: 17%; height: 68%; max-height: 68px; }
    #resistor-color-diagram.six-bands .tolerance { right: 38.57%; top: 17%; height: 68%; max-height: 68px; }
    #resistor-color-diagram.six-bands .ppm { right: 21.43%; top: 12%; height: 78%; max-height: 78px; }
}
@media only screen and (device-width: 1220px) and (device-height: 2712px) and (-webkit-device-pixel-ratio: 2) {
    #resistor-color-diagram.five-bands .first-band { left: 25%; top: 10%; height: 90%; max-height: 90px; }
    #resistor-color-diagram.five-bands .second-band { left: 40%; top: 15%; height: 80%; max-height: 80px; }
    #resistor-color-diagram.five-bands .third-band { left: 49%; top: 15%; height: 80%; max-height: 80px; }
    #resistor-color-diagram.five-bands .multiplier { right: 37%; top: 15%; height: 80%; max-height: 80px; }
    #resistor-color-diagram.five-bands .tolerance { right: 27%; top: 10%; height: 90%; max-height: 90px; }
    #resistor-color-diagram { max-width: 400px; }
}

/* Color Definitions */
.resistor-color-tool .white { background-color: #fff; color: #000; }
.resistor-color-tool .black { background-color: #222; color: #fff; }
.resistor-color-tool .brown { background-color: #A05229; color: #fff; }
.resistor-color-diagram .red { background-color: #FF4A1A; color: #fff; }
.resistor-color-tool .orange { background-color: #FFA500; color: #000; }
.resistor-color-tool .yellow { background-color: #FFD700; color: #000; }
.resistor-color-tool .green { background-color: #4CAF50; color: #fff; }
.resistor-color-tool .blue { background-color: #2196F3; color: #fff; }
.resistor-color-tool .violet { background-color: #9457EB; color: #fff; }
.resistor-color-tool .grey { background-color: #AAB2B2; color: #000; }
.resistor-color-tool .silver { background-color: #c0c0c0; color: #000; }
.resistor-color-tool .gold { background-color: #d4af37; color: #000; }
.resistor-color-tool .dark-green { background-color: #008000; color: #fff; }

/* ----- Band Cards and Dropdown Styles ----- */
.result {
    font-size: 1.4rem;
    font-weight: bold;
    color: #497d29;
    margin-bottom: 1rem;
    text-align: center;
    margin-top: 20px;
}
.band-card-list {
    max-width: 400px;
    margin: 2rem auto 0 auto;
    padding: 0;
}
.band-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: #fff;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06); /* Adjusted shadow */
    border-radius: 9px;
    margin-bottom: 1rem;
    padding: 1rem 1.3rem;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease;
}
.band-card:hover {
    transform: translateY(-3px); /* Subtle lift on hover */
}
.band-swatch {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    flex-shrink: 0;
    border: 1.5px solid #eee;
}
.band-info-title {
    font-size: 1.16rem;
    font-weight: bold;
    margin-bottom: 0.18em;
    color: #444;
}
.band-info-desc {
    color: #888;
    font-size: 0.97rem;
}
.color-dropdown {
    position: fixed; /* Changed to fixed for global positioning */
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1001; /* Increased z-index to ensure it's on top */
    max-height: 200px;
    overflow-y: auto;
}
.color-option {
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    background: #f9f9f9;
    margin: 2px 0;
    border-radius: 4px;
}
.color-option:hover {
    background: #e0e0e0;
}
.swatch {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    margin-right: 0.5em;
}
.clearfix::after {
    display: block;
    clear: both;
    content: "";
}

/* SMD Calculator Styles */
.resistor-display {
    width: 300px;
    height: 90px;
    background: #000;
    color: #fff;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.0rem;
    font-weight: bold;
    border-radius: 8px;
}
.keypad {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.key {
    padding: 1rem;
    background: #7b9b72;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.2s ease;
}
.key:hover {
    background: #6a8a61;
}
.key.special {
    background: #a0a0a0;
}
.key.special:hover {
    background: #8f8f8f;
}
.smd-buttons {
    text-align: center;
    margin-top: 1rem;
}
.smd-buttons button {
    padding: 0.75rem 1.5rem;
    background: #a0a0a0;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    margin: 0 0.5rem;
    transition: background-color 0.2s ease;
}
.smd-buttons button:hover {
    background: #8f8f8f;
}
.result-value {
    font-size: 1.6rem;
    font-weight: bold;
    color: #497d29;
    margin: 1rem 0;
    text-align: center;
    min-height: 2rem;
}

/* Search Resistor Styles */
.resistor-color-tool {
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.resistor-color-box {
    position: relative;
    margin: 20px auto;
}
.resistor-color-layout {
    background-color: #d6d6d6;
    width: 320px;
    height: 70px;
    border-radius: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    margin: 0 auto;
}
.resistor-color-layout:before, .resistor-color-layout:after {
    content: '';
    height: 15px;
    width: 25px;
    background: #bcbcbc;
    display: block;
    position: absolute;
    top: calc(50% - 7.5px);
}
.resistor-color-layout:before { left: -25px; }
.resistor-color-layout:after { right: -25px; }
.left-side, .right-side {
    background-color: #d6d6d6;
    width: 40px;
    height: 90px;
    border-radius: 10px;
    position: relative;
    z-index: 1;
}
.color-strip-box {
    display: flex;
    gap: 12px;
    position: absolute;
    left: 60px;
    right: 60px;
    justify-content: space-evenly;
    z-index: 2;
}
.resistor-strip {
    width: 15px;
    height: 68px;
    border: 1px solid #000;
    border-radius: 0;
}
.search-form-container {
    max-width: 480px;
    margin: 0 auto;
}
.form-group {
    margin-bottom: 1.2rem;
}
.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
    color: #555;
}
.form-group input, .form-group select {
    width: 100%;
    font-size: 1.06em;
    padding: .5em;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
.resistance-input {
    display: flex;
    gap: 0.5em;
}
.resistance-input input {
    flex: 2;
}
.resistance-input select {
    flex: 1;
}

#get-color-code {
    display: block;
    width: 100%;
    font-size: 1.12em;
    padding: .75em 1.65em;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    background: #7b9b72;
    color: #fff;
    transition: background-color 0.2s ease;
}
#get-color-code:hover {
    background: #6a8a61;
}

/* Privacy Policy and About Us Styles */
.privacy-content, .about-content {
    line-height: 1.7;
    color: #444;
}
.privacy-content h3, .about-content h3 {
    color: #497d29;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
    margin-top: 2rem;
    font-size: 1.4rem;
}
.privacy-content p, .privacy-content li,
.about-content p, .about-content li {
    font-size: 1rem;
}
.privacy-content ul, .about-content ul {
    list-style-type: disc;
    padding-left: 25px;
}
.privacy-content strong {
    color: #444;
}

/* --- TABLE SPECIFIC STYLES --- */
.color-code-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* Added subtle shadow for the table */
    border-radius: 8px; /* Rounded corners for the table */
    overflow: hidden; /* Ensures rounded corners clip content */
}

.color-code-table th, .color-code-table td {
    border: 1px solid #ddd;
    padding: 0.8em;
    text-align: center;
}

.color-code-table th {
    background-color: #f7f7f7;
    font-weight: bold;
    color: #444;
    padding: 1em 0.8em; /* Slightly more padding for headers */
}

.swatch {
    display: inline-block;
    width: 25px;
    height: 25px;
    border-radius: 5px;
    margin-right: 0.5em;
    vertical-align: middle;
    border: 1px solid #ccc;
    box-shadow: inset 0 0 3px rgba(0,0,0,0.1); /* Inner shadow for swatch */
}

.color-name-cell {
    text-align: left;
    font-weight: 500; /* Slightly bolder text for color names */
}

/* Mobile-friendly table styles */
@media (max-width: 768px) {
    .color-code-table {
        font-size: 0.9rem; /* Smaller font size for mobile */
        display: block; /* Allow table to scroll */
        overflow-x: auto; /* Enable horizontal scrolling */
        white-space: nowrap; /* Prevent text wrapping */
    }
    .color-code-table th, .color-code-table td {
        padding: 0.5em; /* Reduce padding */
        min-width: 60px; /* Ensure columns have minimum width */
    }
    .swatch {
        width: 20px; /* Smaller swatch size */
        height: 20px;
    }
    .color-name-cell {
        min-width: 100px; /* Ensure color name column is readable */
    }
    /* Page container adjustments for mobile are already in main style.css */
}
