* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'VT323', 'Share Tech Mono', 'Courier New', monospace;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    min-height: 100vh;
    padding: 15px;
    color: #00cc88;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    touch-action: manipulation;
    text-shadow: none;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: #111111;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.15), inset 0 0 15px rgba(0, 255, 0, 0.05);
    border: 2px solid #00aa66;
    overflow: hidden;
    animation: fadeIn 0.4s ease-in;
}

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

header {
    background: #000000;
    color: #00cc88;
    padding: 20px 20px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.15);
    border-bottom: 2px solid #00aa66;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.header-content > div:first-child {
    flex: 1;
}

header h1 {
    font-family: 'VT323', 'Courier New', monospace;
    font-size: 2.2rem;
    margin-bottom: 5px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #00cc88;
    text-shadow: 0 0 2px rgba(0, 200, 130, 0.08);
}

header p {
    font-size: 1.1rem;
    color: #00cc88;
    font-weight: 400;
    text-shadow: none;
}

.calculator-btn {
    background: linear-gradient(135deg, #2a2a2a 0%, #333333 100%);
    border: 2px solid #555;
    border-radius: 10px;
    padding: 10px 14px;
    color: #00cc88;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.0rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

.calculator-btn:hover {
    background: linear-gradient(135deg, #333 0%, #3a3a3a 100%);
    border-color: #666;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

.calculator-btn:active {
    transform: translateY(-1px);
}

.calc-icon {
    width: 24px;
    height: 24px;
    display: block;
}

.tabs {
    display: flex;
    background: #282828;
    border-radius: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab-button {
    flex: 1;
    padding: 14px 8px;
    border: none;
    background: transparent;
    color: #ffffff;
    font-family: 'VT323', 'Share Tech Mono', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    min-height: 48px;
    line-height: 1.5;
    touch-action: manipulation;
    position: relative;
    will-change: background-color;
    text-shadow: none;
    overflow: visible;
}

.tab-button::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 70%;
    height: 3px;
    background: #00aa66;
    box-shadow: 0 0 2px rgba(0, 170, 100, 0.04);
    transition: transform 0.15s ease;
}

.tab-button:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.tab-button:hover {
    background: rgba(0, 204, 136, 0.1);
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.tab-button.active {
    background: rgba(0, 204, 136, 0.15) !important;
    color: #00cc88 !important;
    border-bottom-color: #00cc88 !important;
    font-weight: 900;
    transform: translateY(0);
    box-shadow: 0 0 12px rgba(0, 204, 136, 0.4);
    text-shadow: 0 0 10px rgba(0, 204, 136, 0.5);
}

.tab-button.active::before {
    transform: translateX(-50%) scaleX(1);
    background: #00cc88;
    box-shadow: 0 0 15px rgba(0, 204, 136, 0.6);
}

.category-description {
    background: linear-gradient(135deg, #001100 0%, #000800 100%);
    border: 2px solid #00aa66;
    border-radius: 6px;
    padding: 8px 15px;
    margin: 8px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.category-description p {
    margin: 0 0 4px 0;
    color: #00cc88;
    font-family: 'VT323', 'Share Tech Mono', monospace;
    font-size: 1.0rem;
    font-style: italic;
}

.category-description .category-link {
    color: #ffffff;
    text-decoration: underline;
    font-family: 'VT323', 'Share Tech Mono', monospace;
    font-weight: 500;
    font-style: italic;
    font-size: 1.0rem;
    transition: color 0.3s ease;
}

.category-description .category-link:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.converter-section {
    padding: 15px;
}

.conversion-form {
    margin-bottom: 10px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.input-group {
    display: flex;
    flex-direction: column;
    min-width: 220px;
    max-width: 250px;
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
    color: #ffffff;
    font-family: 'VT323', 'Share Tech Mono', monospace;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-shadow: none;
}

.input-group select,
.input-group input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #00aa66 !important;
    border-radius: 4px;
    font-family: 'VT323', 'Share Tech Mono', monospace;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #000000;
    color: #ffffff;
    cursor: pointer;
    min-height: 46px;
    touch-action: manipulation;
    font-weight: 700;
    box-shadow: 0 0 8px rgba(0, 170, 100, 0.15), inset 0 0 5px rgba(0, 170, 100, 0.05);
}

.input-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 45px;
    background-color: #000000 !important;
    color: #ffffff !important;
    cursor: pointer;
    position: relative;
    z-index: 2;
}



.input-group select::-ms-expand {
    display: none;
}

.unit-dropdown {
    position: relative;
}

.unit-dropdown::after {
    content: '▼';
    position: absolute;
    right: 15px;
    top: 42px;
    color: #00cc88;
    font-size: 0.9rem;
    font-weight: bold;
    pointer-events: none;
    z-index: 10;
    line-height: 1;
    text-shadow: none;
}

/* Styling for dropdown options */
.input-group select option {
    background-color: #000000;
    color: #ffffff;
    padding: 10px;
    font-size: 0.95rem;
    font-weight: 700;
}

.input-group select option:hover,
.input-group select option:focus {
    background-color: #1a1a1a;
    color: #ffffff;
}

.input-group select option:checked {
    background-color: #2a2a2a;
    color: #ffffff;
}

.input-group input {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    padding-right: 12px;
}

.input-group input::-webkit-outer-spin-button,
.input-group input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-group input[type=number] {
    -moz-appearance: textfield;
}

.input-group select:hover,
.input-group input:hover {
    border-color: #666 !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

.input-group select:focus,
.input-group input:focus {
    outline: none;
    border-color: #777 !important;
    box-shadow: 0 0 0 3px rgba(120, 120, 120, 0.3);
    transform: translateY(-1px);
}

.help-text {
    text-align: center;
    margin: 8px 0;
    color: #ffffff;
    font-size: 0.95rem;
    font-style: italic;
    font-weight: 400;
}

.help-text p {
    margin: 0;
}

.quick-conversions {
    margin: 15px 0;
    text-align: center;
}

.quick-conversions h3 {
    margin: 0 0 10px 0;
    color: #00cc88;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.quick-btn {
    background: linear-gradient(135deg, #001a00 0%, #001100 100%);
    border: 2px solid #00aa66;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
    font-family: 'VT323', 'Share Tech Mono', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 32px;
    touch-action: manipulation;
    white-space: nowrap;
    box-shadow: 0 0 8px rgba(0, 170, 100, 0.2);
    text-shadow: none;
}

.quick-btn:hover {
    background: linear-gradient(135deg, #002200 0%, #001800 100%);
    color: #ffffff;
    border-color: #00aa66;
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(0, 170, 100, 0.3);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.quick-btn.active {
    background: linear-gradient(135deg, #003300 0%, #002200 100%);
    color: #ffffff;
    border-color: #ffffff;
    font-weight: 900;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

/* Quick Conversion Result Display */
.quick-result-display {
    margin: 15px auto 12px;
    padding: 0;
    max-width: 500px;
    animation: fadeIn 0.4s ease-in;
}

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

.quick-result-content {
    background: linear-gradient(135deg, #001a00 0%, #001100 100%);
    border: 2px solid #00aa66;
    border-radius: 8px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 0 12px rgba(0, 170, 100, 0.25), inset 0 0 8px rgba(0, 170, 100, 0.08);
    flex-wrap: wrap;
}

.quick-result-from,
.quick-result-to {
    font-family: 'VT323', 'Share Tech Mono', monospace;
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid #00aa66;
}

.quick-result-arrow {
    font-size: 1.2rem;
    color: #00cc88;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(0, 204, 136, 0.4);
}

.results-container {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    margin: 5px auto 0;
    max-width: 750px;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* When empty, show just header + message */
.results-container.empty {
    height: 80px;
    overflow: hidden;
}

/* When not empty, make scrollable - 12 rows visible */
.results-container:not(.empty) {
    height: 365px;
    overflow-y: auto;
}

/* Custom scrollbar for results container */
.results-container::-webkit-scrollbar {
    width: 8px;
}

.results-container::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.results-container::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.results-container::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* Empty message in table cell */
.empty-message-cell {
    text-align: center;
    color: #00cc88;
    font-size: 0.95rem;
    font-style: italic;
    padding: 30px 20px;
    border: none;
}

.results-table tbody tr.empty-row {
    height: auto;
    background-color: transparent;
}

.results-table tbody tr.empty-row:hover {
    background-color: transparent;
}





.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    border: 2px solid #00aa66;
    table-layout: fixed;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.15), inset 0 0 5px rgba(0, 255, 0, 0.05);
}

.results-table thead {
    background: #000000;
    color: #00cc88;
    position: sticky;
    top: 0;
    z-index: 10;
}

.results-table th {
    padding: 2px 4px;
    text-align: center;
    font-weight: 700;
    font-family: 'VT323', 'Share Tech Mono', monospace;
    font-size: 0.95rem;
    border: 1px solid #00aa66;
    border-bottom: 2px solid #00aa66;
    letter-spacing: 1px;
    text-shadow: 0 0 1px rgba(0, 200, 130, 0.06);
}

.results-table th:first-child {
    width: 50%;
    color: #ffffff;
    border-right: 2px solid #00aa66;
}

.results-table th:last-child {
    width: 50%;
    color: #ffffff;
}

.results-table tbody tr {
    border-bottom: 1px solid #003300;
    transition: background-color 0.15s ease;
    height: 28px;
    will-change: background-color;
}

.results-table tbody tr:hover {
    background-color: rgba(0, 255, 0, 0.1);
    box-shadow: inset 0 0 10px rgba(0, 255, 0, 0.2);
}

.results-table tbody tr:last-child {
    border-bottom: none;
}

.results-table tbody tr:nth-child(even) {
    background-color: rgba(0, 255, 0, 0.05);
}

.results-table tbody tr:nth-child(even):hover {
    background-color: rgba(0, 255, 0, 0.15);
}

.results-table tbody tr.quick-convert-highlight {
    background: rgba(0, 255, 0, 0.25) !important;
    border: 3px solid #00ff00 !important;
    box-shadow: 0 0 3px rgba(0, 170, 100, 0.08), inset 0 0 8px rgba(0, 255, 0, 0.2);
}

.results-table tbody tr.quick-convert-highlight:hover {
    background-color: rgba(0, 255, 0, 0.3) !important;
}

.results-table tbody tr.quick-convert-highlight td {
    font-weight: 900;
    color: #00cc88;
    font-size: 0.95rem;
    text-shadow: 0 0 2px rgba(0, 200, 130, 0.08);
}

.results-table td {
    padding: 2px 8px;
    vertical-align: middle;
    border: 1px solid #003300;
    text-align: center;
    line-height: 1.2;
}

.results-table td:first-child {
    font-weight: 600;
    color: #ffffff;
    font-family: 'VT323', 'Share Tech Mono', monospace;
    font-size: 0.95rem;
    text-align: center;
    text-shadow: none;
    border-right: 2px solid #00aa66;
}

.results-table td:last-child {
    font-weight: 600;
    color: #ffffff;
    font-family: 'VT323', 'Share Tech Mono', monospace;
    font-size: 0.95rem;
    word-break: break-all;
    text-align: center;
    text-shadow: none;
}

.results-table td:last-child sup {
    font-size: 0.75em;
    vertical-align: super;
    line-height: 0;
}

.no-results {
    text-align: center;
    color: #00cc88;
    font-size: 0.95rem;
    padding: 20px;
    font-style: italic;
}

.footer {
    background: #000000;
    border-top: 2px solid #00aa66;
    padding: 15px 20px;
    margin-top: auto;
    box-shadow: 0 -2px 10px rgba(0, 255, 0, 0.15);
}

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

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-link {
    color: #00cc88;
    font-family: 'VT323', 'Share Tech Mono', monospace;
    text-decoration: none;
    font-size: 1.0rem;
    font-weight: 700;
    transition: all 0.3s ease;
    text-shadow: none;
}

.footer-link:hover {
    color: #00cc88;
    text-shadow: 0 0 2px rgba(0, 200, 130, 0.1);
    transform: translateY(-1px);
}

.footer-text {
    color: #00cc88;
    font-family: 'VT323', 'Share Tech Mono', monospace;
    font-size: 0.95rem;
    text-shadow: none;
}

.footer-text p {
    margin: 0;
}

@media (max-width: 768px) {
    body {
        padding: 5px;
    }
    
    .container {
        margin: 0;
        border-radius: 0;
    }
    
    .tabs {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        overflow-x: visible;
        gap: 0;
    }
    
    .tab-button {
        white-space: nowrap;
        min-height: 44px;
        padding: 10px 8px;
        line-height: 1.3;
        font-size: 1.0rem;
        flex: 0 1 auto;
    }
    
    .tab-button:nth-child(n+6) {
        /* Second row tabs */
    }
    
    header {
        padding: 15px 10px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    header p {
        font-size: 1.0rem;
    }
    
    .converter-section {
        padding: 10px;
    }
    
    .conversion-form {
        gap: 12px;
    }
    
    .input-group {
        min-width: 160px;
        max-width: 180px;
    }
    
    .results-table {
        font-size: 0.9rem;
    }
    
    .results-table th {
        padding: 5px 4px;
        font-size: 0.9rem;
    }
    
    .results-table td {
        padding: 4px 4px;
        font-size: 0.9rem;
    }
    
    .results-table td:first-child,
    .results-table td:last-child {
        font-size: 0.9rem;
    }
    
    .results-table tbody tr.quick-convert-highlight td {
        font-size: 0.9rem;
    }
    
    .quick-conversions {
        margin: 12px 0;
    }
    
    .quick-conversions h3 {
        font-size: 1.0rem;
    }
    
    .quick-btn {
        padding: 8px 10px;
        font-size: 1.0rem;
    }
    
    .footer {
        padding: 10px 12px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    
    .help-text {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0;
    }
    
    .container {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }
    
    header {
        padding: 12px 8px;
    }
    
    header h1 {
        font-size: 1.5rem;
        margin-bottom: 3px;
    }
    
    header p {
        font-size: 0.95rem;
    }
    
    .tabs {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0;
        gap: 0;
        overflow-x: visible;
    }
    
    .tab-button {
        padding: 9px 6px;
        font-size: 0.9rem;
        font-weight: 500;
        white-space: nowrap;
        line-height: 1.2;
        flex: 0 1 auto;
    }
    
    .converter-section {
        padding: 8px;
    }
    
    .conversion-form {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .input-group {
        min-width: 100%;
        max-width: 100%;
    }
    
    .input-group label {
        font-size: 1.0rem;
    }
    
    .input-group select,
    .input-group input {
        padding: 10px 12px;
        font-size: 1.0rem;
    }
    
    .input-group input {
        font-size: 1.0rem;
    }
    
    .help-text {
        font-size: 0.95rem;
        margin: 6px 0;
    }
    
    .quick-conversions {
        margin: 10px 0;
    }
    
    .quick-conversions h3 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .quick-links {
        gap: 6px;
    }
    
    .quick-btn {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
    
    .quick-result-display {
        margin: 10px auto 8px;
        max-width: 95%;
    }
    
    .quick-result-content {
        padding: 8px 12px;
        gap: 8px;
    }
    
    .quick-result-from,
    .quick-result-to {
        font-size: 0.95rem;
        padding: 4px 10px;
    }
    
    .quick-result-arrow {
        font-size: 1.0rem;
    }
    
    .results-container {
        margin-top: 3px;
        border-radius: 6px;
    }
    
    .results-table {
        font-size: 0.95rem;
    }
    
    .results-table th {
        padding: 6px 3px;
        font-size: 0.95rem;
    }
    
    .results-table td {
        padding: 5px 3px;
        font-size: 0.95rem;
    }
    
    .results-table td:first-child,
    .results-table td:last-child {
        font-size: 0.95rem;
    }
    
    .results-table tbody tr.quick-convert-highlight td {
        font-size: 0.95rem;
    }
    
    .footer {
        padding: 8px 10px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .footer-link {
        font-size: 1.0rem;
    }
    
    .footer-text {
        font-size: 0.9rem;
    }
    
    .footer-text p {
        line-height: 1.4;
    }
}

@media (max-width: 360px) {
    header h1 {
        font-size: 1.4rem;
    }
    
    .tabs {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .tab-button {
        padding: 8px 5px;
        font-size: 0.85rem;
        white-space: nowrap;
        line-height: 1.1;
        flex: 0 1 auto;
    }
    
    .results-table {
        font-size: 0.9rem;
    }
    
    .results-table th,
    .results-table td {
        padding: 4px 2px;
        font-size: 0.9rem;
    }
    
    .results-table td:first-child,
    .results-table td:last-child {
        font-size: 0.9rem;
    }
    
    .results-table tbody tr.quick-convert-highlight td {
        font-size: 0.9rem;
    }
    
    .quick-btn {
        padding: 5px 8px;
        font-size: 0.95rem;
    }
}

/* Calculator Section - Toggleable */
.calculator-section {
    background: #1e1e1e;
    border-bottom: 2px solid #444;
    padding: 6px;
}

.calculator-wrapper {
    max-width: 480px;
    margin: 0 auto;
    border: 1px solid #555;
    border-radius: 4px;
    padding: 6px 6px 6px 6px;
    background: #222;
    box-sizing: border-box;
}

.calculator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.calculator-title {
    color: #00cc88;
    font-size: 1.0rem;
    margin: 0;
    font-weight: 600;
}

.close-calc-btn {
    background: #383838;
    border: 1px solid #555;
    color: #00cc88;
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.close-calc-btn:hover {
    background: #444;
    border-color: #666;
    color: #00cc88;
}

.calculator-display-container {
    margin-bottom: 6px;
    width: 100%;
    box-sizing: border-box;
}

.calculator-display-container input {
    width: 100%;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 4px 6px;
    font-size: 0.85rem;
    color: #00cc88;
    text-align: right;
    font-weight: 500;
    box-sizing: border-box;
    height: 24px;
    font-family: 'VT323', 'Courier New', monospace;
}

.result-preview {
    margin-top: 4px;
    padding: 4px 6px;
    background: #252525;
    border: 1px solid #444;
    border-radius: 4px;
    text-align: right;
    font-size: 0.85rem;
    color: #00cc88;
    font-weight: 500;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    box-sizing: border-box;
    width: 100%;
    font-family: 'VT323', 'Courier New', monospace;
}

.calculator-wrapper-buttons {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    width: 100%;
    box-sizing: border-box;
}

.calculator-buttons {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 3px;
    width: 100%;
    box-sizing: border-box;
}

.calc-btn {
    background: #383838;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 4px 3px;
    font-size: 0.8rem;
    color: #00cc88;
    cursor: pointer;
    transition: all 0.15s ease;
    font-weight: 500;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radio-group {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #383838;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 4px 6px;
    height: 100%;
}

.calc-btn.number[style*="grid-column: span 2"] {
    grid-column: span 2;
}

.radio-group input[type="radio"] {
    margin: 0;
    cursor: pointer;
    width: 14px;
    height: 14px;
}

.radio-group label {
    color: #ffffff;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    cursor: pointer;
    font-weight: 500;
    line-height: 1;
}

.radio-group input[type="radio"]:checked + label {
    color: #00cc88;
    font-weight: 600;
}

.calc-btn:hover {
    background: #444;
    border-color: #555;
}

.calc-btn:active {
    background: #333;
    border-color: #444;
    transform: translateY(1px);
}

/* Number buttons - Dark gray */
.calc-btn.number {
    background: #2a2a2a;
    color: #00cc88;
    font-weight: 600;
    font-size: 0.9rem;
    border-color: #3a3a3a;
}

.calc-btn.number:hover {
    background: #333;
    border-color: #444;
}

/* Operator buttons - Medium gray */
.calc-btn.operator {
    background: #3a3a3a;
    border-color: #4a4a4a;
}

.calc-btn.operator:hover {
    border-color: #555;
}

/* Function buttons - Light gray */
.calc-btn.function {
    background: #3a3a3a;
    font-size: 0.75rem;
    border-color: #4a4a4a;
}

.calc-btn.function:hover {
    border-color: #555;
}

/* Control buttons */
.calc-btn.control {
    background: #3a3a3a;
    font-size: 0.8rem;
    border-color: #4a4a4a;
}

.calc-btn.control:hover {
    border-color: #555;
}

/* Clear button - Dark red accent */
.calc-btn.clear {
    background: #4a2a2a;
    color: #ff8888;
    border-color: #5a3a3a;
    font-size: 0.75rem;
}

.calc-btn.clear:hover {
    background: #5a2a2a;
    border-color: #6a4a4a;
}

/* Memory buttons */
.calc-btn.memory {
    background: #3a2a4a;
    color: #ffcc88;
    font-size: 0.75rem;
    border-color: #4a3a5a;
}

.calc-btn.memory:hover {
    background: #4a2a5a;
    border-color: #5a4a6a;
}

/* Equals button - Green accent */
.calc-btn.equals {
    background: #2a4a3a;
    color: #00cc88;
    font-weight: 600;
    font-size: 0.9rem;
    border-color: #3a5a4a;
}

.calc-btn.equals:hover {
    background: #2a5a3a;
    border-color: #4a6a5a;
}

/* Use button - Red accent (like reference image) */
.calc-btn.insert-result {
    background: #4a2a2a;
    color: #ff8888;
    font-weight: 600;
    border-color: #5a3a3a;
}

.calc-btn.insert-result:hover {
    background: #5a2a2a;
    border-color: #6a4a4a;
}

.calc-btn.zero {
    grid-column: span 1;
}

@media (max-width: 768px) {
    .calculator-section {
        padding: 4px;
    }
    
    .calculator-wrapper {
        padding: 4px;
    }
    
    .calculator-title {
        font-size: 0.85rem;
    }
    
    .calculator-buttons {
        grid-template-columns: repeat(10, 1fr);
        gap: 2px;
    }
    
    .calc-btn {
        padding: 4px 2px;
        font-size: 0.7rem;
        min-height: 22px;
    }
    
    .calc-btn.number {
        font-size: 0.8rem;
    }
    
    .calc-btn.equals {
        font-size: 0.8rem;
    }
    
    .calc-btn.function {
        font-size: 0.65rem;
    }
    
    .radio-group label {
        font-size: 0.65rem;
    }
    
    .calculator-display-container input,
    .result-preview {
        font-size: 0.75rem;
        height: 22px;
        padding: 3px 5px;
    }
}

@media (max-width: 480px) {
    .calculator-section {
        padding: 3px;
    }
    
    .calculator-wrapper {
        padding: 3px;
    }
    
    .calculator-title {
        font-size: 0.8rem;
    }
    
    .calculator-buttons {
        grid-template-columns: repeat(10, 1fr);
        gap: 2px;
    }
    
    .calc-btn {
        padding: 3px 1px;
        font-size: 0.6rem;
        min-height: 20px;
    }
    
    .calc-btn.number {
        font-size: 0.7rem;
    }
    
    .calc-btn.equals {
        font-size: 0.7rem;
    }
    
    .calc-btn.function {
        font-size: 0.55rem;
    }
    
    .radio-group label {
        font-size: 0.6rem;
    }
    
    .calculator-display-container input,
    .result-preview {
        font-size: 0.7rem;
        height: 20px;
        padding: 3px 4px;
    }
}

@media (max-width: 360px) {
    .calculator-section {
        padding: 2px;
    }
    
    .calculator-wrapper {
        padding: 2px;
    }
    
    .calculator-buttons {
        grid-template-columns: repeat(10, 1fr);
        gap: 1px;
    }
    
    .calc-btn {
        font-size: 0.55rem;
        padding: 2px 1px;
        min-height: 18px;
    }
    
    .calc-btn.number {
        font-size: 0.65rem;
    }
    
    .calc-btn.equals {
        font-size: 0.65rem;
    }
    
    .calc-btn.function {
        font-size: 0.5rem;
    }
    
    .radio-group label {
        font-size: 0.55rem;
    }
    
    .calculator-display-container input,
    .result-preview {
        font-size: 0.65rem;
        height: 18px;
        padding: 2px 3px;
    }
    
    .calculator-title {
        font-size: 0.75rem;
    }
}

/* Global dropdown option styling */
select option {
    background-color: #2a2a2a !important;
    color: #00cc88 !important;
}

select:focus option:checked {
    background-color: #444444 !important;
    color: #00cc88 !important;
}

.content-section {
    background: linear-gradient(135deg, #2a2a2a 0%, #252525 100%);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 30px;
    margin: 20px auto;
    max-width: 800px;
}

.content-section h2 {
    color: #ffffff;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.15rem;
}

.content-section h2:first-child {
    margin-top: 0;
}

.content-section p {
    color: #00cc88;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.content-section strong {
    color: #ffffff;
}

.content-section a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
}

.content-section a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.content-section ul,
.content-section ol {
    color: #00cc88;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 15px 0 15px 20px;
    padding-left: 20px;
}

.content-section ul li,
.content-section ol li {
    margin-bottom: 10px;
}

.content-section code {
    background: #1a1a1a;
    color: #00cc88;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 1.0rem;
}

/* Contact Form Styles */
.contact-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #f0f0f0;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 500;
}

.required {
    color: #ff6b6b;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: #1a1a1a;
    border: 1px solid #555;
    border-radius: 6px;
    color: #00cc88;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #777;
    background: #222;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: linear-gradient(135deg, #444444 0%, #383838 100%);
    border: 1px solid #555;
    border-radius: 6px;
    color: #fff;
    padding: 12px 30px;
    font-size: 1.0rem;
    font-weight: 600;
    font-family: 'VT323', 'Share Tech Mono', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #555555 0%, #484848 100%);
    border-color: #777;
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
}

.form-note {
    text-align: center;
    color: #00cc88;
    font-size: 1.0rem;
    margin-top: 15px;
}

/* Category Page Styles */
.unit-definitions {
    background: linear-gradient(135deg, #2a2a2a 0%, #252525 100%);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.unit-definitions h2 {
    color: #00cc88;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.15rem;
}

.unit-definitions h3 {
    color: #ffffff;
    font-size: 1.1rem;
}

.unit-definitions p {
    color: #00cc88;
    font-size: 1.05rem;
    line-height: 1.6;
}

.unit-item {
    margin-bottom: 20px;
}

.category-nav {
    background: linear-gradient(135deg, #2a2a2a 0%, #252525 100%);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.category-nav h2 {
    margin: 0 0 15px 0;
    color: #00cc88;
    font-size: 1.0rem;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-links a {
    padding: 10px 20px;
    background: linear-gradient(135deg, #333333 0%, #2a2a2a 100%);
    border: 1px solid #555;
    border-radius: 6px;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.0rem;
    font-family: 'VT323', 'Share Tech Mono', monospace;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: linear-gradient(135deg, #444444 0%, #383838 100%);
    border-color: #777;
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.back-link {
    margin-bottom: 10px;
    display: inline-block;
}

.back-link a {
    padding: 10px 20px;
    background: linear-gradient(135deg, #333333 0%, #2a2a2a 100%);
    border: 1px solid #555;
    border-radius: 6px;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.0rem;
    font-family: 'VT323', 'Share Tech Mono', monospace;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-link a:hover {
    background: linear-gradient(135deg, #444444 0%, #383838 100%);
    border-color: #777;
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

/* Copy Results Button */
.copy-results-container {
    text-align: center;
    margin-top: 15px;
    padding: 10px;
}

.copy-btn {
    background: linear-gradient(135deg, #003300 0%, #002200 100%);
    border: 2px solid #00aa66;
    border-radius: 8px;
    color: #00cc88;
    font-family: 'VT323', 'Share Tech Mono', monospace;
    padding: 12px 30px;
    font-size: 1.0rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 3px rgba(0, 170, 100, 0.06);
    text-shadow: 0 0 1px rgba(0, 200, 130, 0.06);
}

.copy-btn:hover {
    background: linear-gradient(135deg, #004400 0%, #003300 100%);
    border-color: #00cc88;
    transform: translateY(-2px);
    box-shadow: 0 0 4px rgba(0, 170, 100, 0.1);
    text-shadow: 0 0 2px rgba(0, 200, 130, 0.1);
}

.copy-btn:active {
    transform: translateY(0);
    box-shadow: 0 0 2px rgba(0, 170, 100, 0.05);
}

/* Scroll to Top/Bottom Buttons */
.scroll-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.scroll-btn {
    background: linear-gradient(135deg, #002200 0%, #001100 100%);
    border: 2px solid #00aa66;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    color: #00cc88;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 4px rgba(0, 170, 100, 0.08);
}

.scroll-btn:hover {
    background: linear-gradient(135deg, #003300 0%, #002200 100%);
    border-color: #00cc88;
    transform: translateY(-3px);
    box-shadow: 0 0 5px rgba(0, 170, 100, 0.15);
}

.scroll-btn:active {
    transform: translateY(-1px);
}
