:root {
    --color-primary: #222;
    --color-primary-hover: #767676;
    --color-primary-active: #767676;
    --color-secondary: #333;
    --white: #ffffff;
    --off-white: #fafafa;
    --warm-white: #fafafa;
    --warm-dark: #31302e;
    --warm-gray-500: #666;
    --warm-gray-300: #bbb;
    --text-primary: #333;
    --text-secondary: #666;
    --text-muted: #767676;
    --border-whisper: 1px solid #eee;
    --border-light: #ddd;
    --focus-ring: #222;
    --badge-bg: #f2f9ff;
    --badge-text: #222;
    --shadow-card: rgba(0,0,0,0.04) 0px 4px 18px, rgba(0,0,0,0.027) 0px 2.025px 7.84688px, rgba(0,0,0,0.02) 0px 0.8px 2.925px, rgba(0,0,0,0.01) 0px 0.175px 1.04062px;
    --shadow-deep: rgba(0,0,0,0.01) 0px 1px 3px, rgba(0,0,0,0.02) 0px 3px 7px, rgba(0,0,0,0.02) 0px 7px 15px, rgba(0,0,0,0.04) 0px 14px 28px, rgba(0,0,0,0.05) 0px 23px 52px;
    --font-family: 'Libre Franklin', -apple-system, system-ui, 'Segoe UI', Helvetica, 'Apple Color Emoji', Arial, 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
    --space-xs: 0.125rem;
    --space-sm: 0.25rem;
    --space-md: 0.5rem;
    --space-lg: 0.75rem;
    --space-xl: 1rem;
    --space-2xl: 1.5rem;
    --space-3xl: 2rem;
    --space-4xl: 3rem;
    --space-5xl: 4rem;
    --radius-micro: 2px;
    --radius-standard: 3px;
    --radius-card: 4px;
    --radius-pill: 9999px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    font-size: 100%;
}
body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--white);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}
.nav {
    position: sticky;
    top: 0;
    background: var(--white);
    border-bottom: var(--border-whisper);
    z-index: 100;
}
.nav-inner {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
}
.nav-logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}
.nav-logo:hover {
    color: var(--color-primary);
}
.nav-logo img {
    height: 40px;
}
.nav-logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}
.nav-links {
    display: flex;
    gap: var(--space-2xl);
    align-items: center;
}
.nav-link {
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}
.nav-link:hover {
    color: var(--color-primary);
}
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}
.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: 0.3s;
}
@media (max-width: 768px) {
    .nav-inner {
        position: relative;
    }
    .nav-hamburger {
        display: block;
        z-index: 101;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: var(--space-xl);
        border-bottom: var(--border-whisper);
        gap: var(--space-md);
    }
    .nav-links.open {
        display: flex;
    }
}
.hero {
    padding: var(--space-5xl) var(--space-xl);
    text-align: center;
    background-image: url('/img/keyboard.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
}
.hero > .container {
    position: relative;
}
.hero-icon {
    width: 64px;
    height: 64px;
    background: var(--off-white);
    border-radius: var(--radius-standard);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-xl);
    color: var(--text-primary);
}
.hero h1 {
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -2px;
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
}
.hero p {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.5625rem;
        letter-spacing: -0.5px;
    }
    .hero p {
        font-size: 1rem;
    }
}
.tools-section {
    padding: var(--space-4xl) var(--space-xl);
    background: var(--off-white);
}
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-xl);
    max-width: 1000px;
    margin: 0 auto;
}
.tool-card {
    background: var(--white);
    border: var(--border-whisper);
    border-left: 3px solid var(--text-muted);
    border-radius: var(--radius-standard);
    padding: var(--space-2xl);
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tool-card.tool-type-security {
    border-left-color: #45AAE6;
}

.tool-card.tool-type-color {
    border-left-color: #AA4AC3;
}

.tool-card.tool-type-text {
    border-left-color: #D2A938;
}

.tool-card.tool-type-converter {
    border-left-color: #2741B5;
}
.tool-card:hover {
    border-color: var(--border-light);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.tool-card.tool-type-security:hover {
    border-left-color: #45AAE6;
    box-shadow: 0 2px 12px rgba(69, 170, 230, 0.2);
}

.tool-card.tool-type-color:hover {
    border-left-color: #AA4AC3;
    box-shadow: 0 2px 12px rgba(170, 74, 195, 0.2);
}

.tool-card.tool-type-text:hover {
    border-left-color: #D2A938;
    box-shadow: 0 2px 12px rgba(210, 169, 56, 0.2);
}

.tool-card.tool-type-converter:hover {
    border-left-color: #2741B5;
    box-shadow: 0 2px 12px rgba(39, 65, 181, 0.2);
}
.tool-card:focus {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}
.tool-card-icon {
    width: 48px;
    height: 48px;
    background: var(--off-white);
    border-radius: var(--radius-standard);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    font-size: 1.5rem;
}

.tool-card-icon.tool-type-security {
    background: rgba(69, 170, 230, 0.15);
    color: #45AAE6;
}

.tool-card-icon.tool-type-color {
    background: rgba(170, 74, 195, 0.15);
    color: #AA4AC3;
}

.tool-card-icon.tool-type-text {
    background: rgba(210, 169, 56, 0.15);
    color: #D2A938;
}

.tool-card-icon.tool-type-converter {
    background: rgba(39, 65, 181, 0.15);
    color: #2741B5;
}
.tool-card-icon.tool-type-randomizer {
    background: rgba(210, 169, 56, 0.15);
    color: #D2A938;
}
.tool-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}
.tool-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.tool-card-link {
    display: block;
    text-decoration: none;
}
.tool-card-link .tool-card-icon {
    width: 48px;
    height: 48px;
    background: var(--off-white);
    border-radius: var(--radius-standard);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}
.tool-card-link .tool-card-icon.tool-type-security {
    background: rgba(69, 170, 230, 0.15);
    color: #45AAE6;
}
.tool-card-link .tool-card-icon.tool-type-color {
    background: rgba(170, 74, 195, 0.15);
    color: #AA4AC3;
}
.tool-card-link .tool-card-icon.tool-type-text {
    background: rgba(210, 169, 56, 0.15);
    color: #D2A938;
}
.tool-card-link .tool-card-icon.tool-type-converter {
    background: rgba(39, 65, 181, 0.15);
    color: #2741B5;
}
.tool-card-link .tool-card-icon.tool-type-randomizer {
    background: rgba(210, 169, 56, 0.15);
    color: #D2A938;
}
.tool-card-link .tool-card-icon.tool-type-generator {
    background: rgba(69, 170, 230, 0.15);
    color: #45AAE6;
}
.tool-card-link .tool-card-icon.tool-type-timer {
    background: rgba(229, 62, 62, 0.15);
    color: #e53e3e;
}
.tool-card-link h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}
.tool-card-link p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.generator-section {
    padding: var(--space-4xl) var(--space-xl);
    background: var(--white);
}
.generator-card {
    background: var(--white);
    border: var(--border-whisper);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: var(--space-2xl);
    max-width: 720px;
    margin: 0 auto;
}
.password-display,
.pin-display {
    background: var(--warm-white);
    border-radius: var(--radius-standard);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    text-align: center;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    border: var(--border-whisper);
}
.password-display {
    word-break: break-all;
    white-space: pre-wrap;
}
.pin-display {
    flex-wrap: wrap;
    gap: 0.5em;
    font-size: 1.5rem;
}
.pin-digit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 0.25em 0.5em;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-micro);
}
.password-actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}
.btn {
    padding: 8px 16px;
    border-radius: var(--radius-micro);
    font-size: 0.94rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn:hover {
    transform: scale(1.02);
}
.btn:active {
    transform: scale(0.9);
}
.btn:focus {
    outline: 2px solid var(--focus-ring);
    box-shadow: var(--shadow-card);
}
.btn-primary {
    background: var(--color-primary);
    color: var(--white);
    border-color: var(--color-primary);
}
.btn-primary:hover {
    background: var(--color-primary-hover);
}
.btn-secondary {
    background: rgba(0,0,0,0.05);
    color: var(--text-primary);
    border-color: transparent;
}
.btn-secondary:hover {
    background: rgba(0,0,0,0.08);
}
.btn-ghost {
    background: transparent;
    color: var(--color-primary);
    border-color: transparent;
}
.btn-ghost:hover {
    text-decoration: underline;
}
.options-section {
    margin-bottom: var(--space-xl);
}
.options-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    border-bottom: var(--border-whisper);
    padding-bottom: var(--space-sm);
}
.tab-btn {
    background: none;
    border: none;
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-micro);
    transition: all 0.2s ease;
}
.tab-btn.active {
    background: var(--badge-bg);
    color: var(--badge-text);
}
.options-content {
    display: none;
}
.options-content.active {
    display: block;
}
.option-group {
    margin-bottom: var(--space-lg);
}
.option-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}
.option-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-micro);
    font-size: 1rem;
    font-family: inherit;
    background: var(--white);
    transition: border-color 0.2s ease;
    color: var(--text-primary);
    min-height: 40px;
}
.option-textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
}
.option-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(34,34,34,0.1);
}
.option-input::placeholder {
    color: var(--text-muted);
}
select.option-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75em center;
    padding-right: 2.5em;
}
.checkbox-group {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
    cursor: pointer;
}
.checkbox-input {
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary);
    cursor: pointer;
}
.checkbox-label {
    font-size: 0.94rem;
    color: var(--text-primary);
}
.checkbox-hint {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-left: 28px;
    display: block;
    margin-bottom: var(--space-sm);
}
.link-section {
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: var(--border-whisper);
}
.embed-section {
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: var(--border-whisper);
}
.embed-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}
.embed-code {
    resize: vertical;
    min-height: 60px;
}
.link-output {
    display: flex;
    gap: var(--space-md);
}
.link-input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-micro);
    font-size: 0.88rem;
    background: var(--warm-white);
    color: var(--text-secondary);
    font-family: monospace;
}
.alt-section {
    background: var(--warm-white);
    padding: var(--space-4xl) var(--space-xl);
}
.alt-section h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1.5px;
    color: var(--text-primary);
    margin-bottom: var(--space-2xl);
    text-align: center;
}
.content-section {
    padding: var(--space-4xl) var(--space-xl);
    background: var(--warm-white);
}
.content-section h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1.5px;
    color: var(--text-primary);
    margin-bottom: var(--space-2xl);
    text-align: center;
}
@media (max-width: 768px) {
    .content-section h2 {
        font-size: 1.5625rem;
        letter-spacing: -0.5px;
    }
    .alt-section h2 {
        font-size: 1.5625rem;
        letter-spacing: -0.5px;
    }
}
.content-block {
    max-width: 720px;
    margin: 0 auto var(--space-xl);
    background: var(--white);
    border: var(--border-whisper);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: var(--space-xl);
}
.content-block h3 {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.27;
    letter-spacing: -0.25px;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}
.content-block p {
    color: var(--text-secondary);
    line-height: 1.6;
}
.content-block ul {
    color: var(--text-secondary);
    line-height: 1.8;
    padding-left: var(--space-xl);
}
.content-block li {
    margin-bottom: var(--space-sm);
}
.faq-section {
    padding: var(--space-4xl) var(--space-xl);
    background: var(--white);
}
.faq-section h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1.5px;
    color: var(--text-primary);
    margin-bottom: var(--space-2xl);
    text-align: center;
}
.faq-container {
    max-width: 720px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: var(--border-whisper);
    padding: var(--space-lg) 0;
}
.faq-question {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
}
.faq-question::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}
.faq-item.open .faq-question::after {
    transform: rotate(45deg);
}
.faq-answer {
    display: none;
    padding: var(--space-sm) 0;
    color: var(--text-secondary);
    line-height: 1.6;
}
.faq-item.open .faq-answer {
    display: block;
}
.footer {
    background: var(--warm-dark);
    padding: var(--space-3xl) var(--space-xl);
    text-align: center;
}
.footer p {
    color: rgba(255,255,255,0.7);
    font-size: 0.88rem;
}
.footer a {
    color: rgba(255,255,255,0.9);
    text-decoration: underline;
}
.footer a:hover {
    color: #ffffff;
}
.no-duplicate-notice {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
    margin-left: 28px;
}
.copy-feedback {
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: var(--space-md);
}
.copy-feedback.show {
    opacity: 1;
}
.hash-value {
    overflow-wrap: break-word;
}
.result-display {
    background: var(--warm-white);
    border-radius: var(--radius-standard);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    text-align: center;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-muted);
    border: var(--border-whisper);
    word-break: break-word;
}
/* Password Strength Checker specific styles */
.password-input-wrapper {
    position: relative;
    margin-bottom: var(--space-xl);
}
.password-input {
    width: 100%;
    padding: 12px 16px;
    padding-right: 80px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-standard);
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    background: var(--white);
    color: var(--text-primary);
    transition: border-color 0.2s ease;
    min-height: 48px;
}
.password-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(34,34,34,0.1);
}
.password-input::placeholder {
    color: var(--text-muted);
}
.toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 12px;
    font-size: 0.88rem;
    flex-shrink: 0;
}
.toggle-password:hover {
    transform: translateY(-50%) scale(1.02);
}
.strength-result {
    margin-bottom: var(--space-xl);
}
.strength-label {
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-standard);
    transition: all 0.3s ease;
}
.strength-label.very-unsecure {
    color: #c53030;
    background: #fff5f5;
}
.strength-label.unsecure {
    color: #dd6b20;
    background: #fffaf0;
}
.strength-label.medium {
    color: #d69e2e;
    background: #fffff0;
}
.strength-label.secure {
    color: #38a169;
    background: #f0fff4;
}
.strength-label.very-secure {
    color: #2563eb;
    background: #ebf8ff;
}
.strength-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: var(--radius-pill);
    overflow: hidden;
    margin-bottom: var(--space-md);
}
.strength-bar-fill {
    height: 100%;
    border-radius: var(--radius-pill);
    transition: width 0.3s ease, background-color 0.3s ease;
    width: 0%;
}
.strength-bar-fill.very-unsecure {
    background: #e53e3e;
}
.strength-bar-fill.unsecure {
    background: #ed8936;
}
.strength-bar-fill.medium {
    background: #ecc94b;
}
.strength-bar-fill.secure {
    background: #48bb78;
}
.strength-bar-fill.very-secure {
    background: #4299e1;
}
.strength-details {
    display: none;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: var(--warm-white);
    border-radius: var(--radius-standard);
    border: var(--border-whisper);
}
.strength-details.visible {
    display: flex;
}
.detail-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 0.94rem;
    color: var(--text-primary);
}
.detail-icon {
    font-size: 1rem;
    min-width: 20px;
    text-align: center;
}
.detail-icon.passed {
    color: #38a169;
}
.detail-icon.failed {
    color: #e53e3e;
}
.detail-text {
    color: var(--text-secondary);
}
@media (max-width: 480px) {
    .password-actions {
        flex-direction: column;
    }
    .btn {
        width: 100%;
    }
    .link-output {
        flex-direction: column;
    }
    .nav-logo-text {
        font-size: 0.85rem;
    }
    .hashes-output {
        margin-top: var(--space-xl);
        display: flex;
        flex-direction: column;
        gap: var(--space-md);
    }
    .hash-item {
        display: flex;
        align-items: flex-start;
        gap: var(--space-md);
        padding: var(--space-md);
        background: var(--off-white);
        border-radius: var(--radius-standard);
        border: var(--border-whisper);
        flex-wrap: wrap;
    }
    .hash-label {
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--text-secondary);
        min-width: 70px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        flex-shrink: 0;
        padding-top: 4px;
    }
    .hash-value {
        flex: 1 1 100%;
        min-width: 0;
        font-family: 'Courier New', monospace;
        font-size: 0.875rem;
        color: var(--text-primary);
        word-break: break-all;
        white-space: pre-wrap;
        padding: 4px 8px;
        background: var(--white);
        border: 1px solid var(--border-light);
        border-radius: var(--radius-micro);
        min-height: 24px;
        overflow-wrap: break-word;
    }
    .btn-copy-hash {
        flex-shrink: 0;
        padding: 4px 12px;
        font-size: 0.8rem;
        min-width: auto;
    }
}

/* Length Unit Converter Styles */
.conversion-input-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-md);
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.conversion-input {
    flex: 1;
    min-width: 150px;
    padding: 10px 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-micro);
    font-size: 1.1rem;
    font-family: inherit;
    background: var(--white);
    transition: border-color 0.2s ease;
    color: var(--text-primary);
}

.conversion-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(34,34,34,0.1);
}

.conversion-select {
    padding: 10px 32px 10px 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-micro);
    font-size: 1rem;
    font-family: inherit;
    background: var(--white);
    color: var(--text-primary);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75em center;
    cursor: pointer;
    min-width: 160px;
}

.conversion-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(34,34,34,0.1);
}

.swap-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    background: var(--white);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.swap-btn:hover {
    background: var(--bg-light);
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.swap-btn svg {
    width: 20px;
    height: 20px;
}

.conversion-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.conversion-result {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: var(--space-lg);
    background: var(--bg-light);
    border-radius: var(--radius-small);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 640px) {
    .conversion-input-group {
        flex-direction: column;
    }

    .conversion-input,
    .conversion-select {
        width: 100%;
        min-width: unset;
    }

    .swap-btn {
        transform: rotate(90deg);
    }
}

/* QR Code Generator Styles */
.qr-type-selector {
    margin-bottom: var(--space-xl);
}

.qr-inputs {
    margin-bottom: var(--space-xl);
}

.qr-input-group {
    display: none;
    margin-bottom: var(--space-lg);
}

.qr-input-group.active {
    display: block;
}

.qr-input-group .option-textarea {
    min-height: 120px;
    resize: vertical;
}

.vcard-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.vcard-row {
    display: flex;
    gap: var(--space-md);
}

.vcard-field {
    flex: 1;
    min-width: 0;
}

.vcard-field-full {
    flex: 1 1 100%;
}

@media (max-width: 640px) {
    .vcard-row {
        flex-direction: column;
    }
}

.qr-settings {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.qr-settings .option-group {
    flex: 1;
    min-width: 150px;
}

.qr-result {
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: var(--border-whisper);
}

.qr-display {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 260px;
    background: var(--warm-white);
    border: var(--border-whisper);
    border-radius: var(--radius-standard);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.qr-display img {
    max-width: 100%;
    height: auto;
}

.qr-display canvas {
    max-width: 100%;
    height: auto;
}

.qr-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-top: var(--space-lg);
}

@media (max-width: 480px) {
    .qr-settings {
        flex-direction: column;
    }

    .qr-actions {
        flex-direction: column;
    }

    .qr-actions .btn {
        width: 100%;
    }
}

.error-message {
    color: #c53030;
    font-size: 0.94rem;
    text-align: center;
    margin-bottom: var(--space-md);
    min-height: 1.5rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.error-message.visible {
    opacity: 1;
}

/* Related Tools Section */
.related-tools {
    padding: var(--space-4xl) var(--space-xl);
    background: var(--off-white);
}

.related-tools .section-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1.5px;
    color: var(--text-primary);
    margin-bottom: var(--space-2xl);
    text-align: center;
}

@media (max-width: 768px) {
    .related-tools .section-title {
        font-size: 1.5625rem;
        letter-spacing: -0.5px;
    }
}

.filter-container {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    position: relative;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.filter-container .filter-status {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex: 1;
    justify-content: flex-end;
    min-width: 200px;
}

.filter-container .showing-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.filter-container .show-all-btn {
    background: none;
    border: none;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    white-space: nowrap;
}

.filter-container .show-all-btn:hover {
    color: var(--color-primary-hover);
}

.filter-container .search-input {
    flex: 1;
    max-width: 600px;
    padding: 8px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-micro);
    font-size: 0.94rem;
    font-family: inherit;
    background: var(--white);
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-container .search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(34,34,34,0.1);
}

.filter-container .search-input::placeholder {
    color: var(--text-muted);
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 8px 16px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-micro);
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: var(--off-white);
    border-color: var(--color-primary);
}

.filter-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--white);
}

.filter-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: var(--space-xs);
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-standard);
    box-shadow: var(--shadow-card);
    min-width: 160px;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
}

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

.filter-option {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.filter-option:hover {
    background: var(--off-white);
}

.filter-option.active {
    background: var(--badge-bg);
    color: var(--badge-text);
    font-weight: 600;
}

.filter-option + .filter-option {
    border-top: 1px solid #eee;
}

.tool-type-badge {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid #eee;
    cursor: pointer;
    text-decoration: none;
}

.tool-type-badge:hover .tool-type-name {
    text-decoration: underline;
}

.tool-type-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.tool-type-icon.tool-type-security {
    background: rgba(69, 170, 230, 0.15);
    color: #45AAE6;
    padding: 3px;
    border-radius: 2px;
}

.tool-type-icon.tool-type-color {
    background: rgba(170, 74, 195, 0.15);
    color: #AA4AC3;
    padding: 3px;
    border-radius: 2px;
}

.tool-type-icon.tool-type-text {
    background: rgba(210, 169, 56, 0.15);
    color: #D2A938;
    padding: 3px;
    border-radius: 2px;
}

.tool-type-icon.tool-type-converter {
    background: rgba(39, 65, 181, 0.15);
    color: #2741B5;
    padding: 3px;
    border-radius: 2px;
}

.tool-type-icon.tool-type-randomizer {
    background: rgba(210, 169, 56, 0.15);
    color: #D2A938;
    padding: 3px;
    border-radius: 2px;
}

.tool-type-icon.tool-type-sorter {
    background: rgba(210, 169, 56, 0.15);
    color: #D2A938;
    padding: 3px;
    border-radius: 2px;
}

.tool-type-icon.tool-type-generator {
    background: rgba(69, 170, 230, 0.15);
    color: #45AAE6;
    padding: 3px;
    border-radius: 2px;
}

.tool-type-icon.tool-type-timer {
    background: rgba(229, 62, 62, 0.15);
    color: #e53e3e;
    padding: 3px;
    border-radius: 2px;
}

.tool-type-icon.tool-type-calculator {
    background: rgba(69, 170, 230, 0.15);
    color: #45AAE6;
    padding: 3px;
    border-radius: 2px;
}

.tool-type-icon.tool-type-checker {
    background: rgba(69, 170, 230, 0.15);
    color: #45AAE6;
    padding: 3px;
    border-radius: 2px;
}

.tool-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tool-card.hidden {
    display: none;
}

/* Color Picker Styles */
.upload-wrapper {
    margin-bottom: var(--space-xl);
}

.upload-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    color: var(--text-secondary);
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-standard);
    padding: var(--space-3xl);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.upload-prompt:hover,
.upload-prompt.dragover {
    border-color: var(--color-primary);
    background-color: var(--off-white);
}

.upload-prompt svg {
    color: var(--text-muted);
}

.upload-prompt p {
    font-size: 1rem;
    margin: 0;
}

.upload-hint {
    font-size: 0.875rem !important;
    color: var(--text-muted) !important;
}

.image-container {
    position: relative;
    display: block;
    max-width: 100%;
    text-align: center;
}

#uploadedImage {
    max-width: 100%;
    max-height: 500px;
    display: inline-block;
    border-radius: var(--radius-standard);
    cursor: crosshair;
}

.magnifier-canvas {
    position: absolute;
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10;
    box-shadow: var(--shadow-card);
    image-rendering: pixelated;
}

.palette-section {
    margin-bottom: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: var(--border-whisper);
}

.palette-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.palette-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
}

.palette-color {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-standard);
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s ease, border-color 0.2s ease;
    box-shadow: var(--shadow-card);
}

.palette-color:hover {
    transform: scale(1.1);
    border-color: var(--color-primary);
}

.history-section {
    margin-bottom: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: var(--border-whisper);
}

.history-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.history-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
}

.history-color {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-standard);
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s ease, border-color 0.2s ease;
    box-shadow: var(--shadow-card);
}

.history-color:hover {
    transform: scale(1.1);
    border-color: var(--color-primary);
}

.color-result {
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: var(--border-whisper);
}

.color-preview {
    width: 100%;
    height: 80px;
    border-radius: var(--radius-standard);
    margin-bottom: var(--space-lg);
    border: var(--border-whisper);
    transition: background-color 0.2s ease;
}

.color-values {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.color-value-item {
    flex: 1;
    min-width: 150px;
}

.color-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-xs);
}

.color-code-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--warm-white);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-standard);
    border: var(--border-whisper);
}

.color-code-row code {
    font-family: 'Courier New', monospace;
    font-size: 0.94rem;
    color: var(--text-primary);
    flex: 1;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: var(--space-xs);
    border-radius: var(--radius-micro);
    transition: color 0.2s ease, background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    color: var(--color-primary);
    background-color: rgba(0,0,0,0.05);
}

.color-css {
    background: var(--warm-white);
    padding: var(--space-lg);
    border-radius: var(--radius-standard);
    border: var(--border-whisper);
}

.color-css h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.css-code-block {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--white);
    border-radius: var(--radius-micro);
    border: var(--border-whisper);
    margin-bottom: var(--space-sm);
}

.css-code-block:last-child {
    margin-bottom: 0;
}

.css-code-block code {
    font-family: 'Courier New', monospace;
    font-size: 0.8125rem;
    color: var(--text-primary);
    flex: 1;
    word-break: break-all;
}

.copy-feedback {
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: var(--space-md);
}

.copy-feedback.visible {
    opacity: 1;
}

/* Color Contrast Checker Styles */
.color-input-group {
    display: flex;
    flex-direction: column;
    gap: 1em;
}
.color-input-row {
    display: flex;
    gap: 1em;
    align-items: center;
}

@media (max-width: 600px) {
    .color-input-row {
        flex-direction: column;
    }
    .color-picker-wrapper {
        flex-wrap: wrap;
    }
    .color-values-row {
        flex-direction: column;
    }
}
.color-input-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}
.color-preview-box {
    width: 100%;
    height: clamp(60px, 15vw, 120px);
    border-radius: 3px;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 600;
    transition: all 0.2s ease;
}
.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: clamp(0.25em, 2vw, 0.5em);
}
.color-picker-wrapper input[type="color"] {
    width: clamp(32px, 8vw, 40px);
    height: clamp(32px, 8vw, 40px);
    padding: 0;
    border: 1px solid var(--border-light);
    border-radius: 3px;
    cursor: pointer;
}
.color-hex-input {
    flex: 1;
}
.color-hex-input input {
    width: 100%;
    font-family: monospace;
    font-size: clamp(0.75rem, 2vw, 0.875rem);
}
.color-values-row {
    display: flex;
    gap: 1em;
    margin-top: 0.5em;
}
.color-values-row .color-value-item {
    flex: 1;
}
.color-values-row .color-value-item label {
    font-size: clamp(0.625rem, 1.5vw, 0.75rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.25em;
}
.color-values-row .color-value-item input {
    width: 100%;
    font-family: monospace;
    font-size: clamp(0.75rem, 2vw, 0.875rem);
}
.contrast-result {
    text-align: center;
    padding: 2em;
    background: var(--off-white);
    border-radius: 3px;
    border: 1px solid #eee;
}
.contrast-score {
    font-size: 4rem;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 0.5em;
    color: var(--color-primary);
}
.contrast-rating {
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5em 1em;
    border-radius: 2px;
    display: inline-block;
}
.rating-very-poor { background: #fee; color: #c00; }
.rating-poor { background: #fcc; color: #c60; }
.rating-good { background: #ffc; color: #970; }
.rating-very-good { background: #cfc; color: #060; }
.rating-super { background: #cef; color: #006; }
.wcag-results {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1em;
    margin-top: 1.5em;
    text-align: left;
}
.wcag-level {
    padding: 1em;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 3px;
}
.wcag-level h4 {
    font-size: 0.875rem;
    font-weight: 800;
    margin-bottom: 0.5em;
    color: var(--color-primary);
}
.wcag-level.pass { border-color: #060; background: #efe; }
.wcag-level.fail { border-color: #c00; background: #fee; }
.wcag-level .status {
    font-size: 0.875rem;
    font-weight: 600;
}
.wcag-level.pass .status { color: #060; }
.wcag-level.fail .status { color: #c00; }
.preview-section {
    margin-top: 2em;
    padding: 2em;
    border-radius: 3px;
    border: 1px solid var(--border-light);
}
.preview-text-samples {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    margin-top: 1em;
}
.preview-sample {
    padding: 1em;
    border-radius: 3px;
}
.preview-sample.large-text {
    font-size: 1.5rem;
    font-weight: 600;
}
.preview-sample.normal-text {
    font-size: 1rem;
}
.preview-sample.small-text {
    font-size: 0.75rem;
}
.action-buttons {
    display: flex;
    gap: 1em;
    justify-content: center;
    margin-top: 1.5em;
    flex-wrap: wrap;
}
.saved-colors {
    margin-top: 2em;
    padding: 1em;
    background: var(--off-white);
    border-radius: 3px;
    border: 1px solid #eee;
}
.saved-colors h3 {
    font-size: 0.875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 1em;
}
.saved-colors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
}
.saved-color-btn {
    width: 48px;
    height: 48px;
    border-radius: 3px;
    border: 2px solid var(--border-light);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}
.saved-color-btn:hover {
    transform: scale(1.1);
    border-color: var(--color-primary);
}
.saved-color-btn .saved-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 800;
    color: var(--color-primary);
    text-shadow: 0 0 2px #fff, 0 0 2px #fff;
}

/* Temperature Converter Styles */
.temp-display {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    background: var(--off-white);
    border: 2px solid var(--border-light);
    border-radius: 4px;
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    color: var(--color-primary);
}
.switch-units {
    display: flex;
    justify-content: center;
    margin: 0.5rem 0;
}
.switch-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s;
}
.switch-btn:hover {
    color: var(--color-primary);
}

/* PIN Code Generator - Reduced base font size */
.pin-generator-page {
    font-size: 92.5%;
}

/* Countdown Timer Styles */
.countdown-display {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.countdown-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    font-family: 'Courier New', monospace;
    background: var(--warm-white);
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-standard);
    border: 2px solid var(--border-light);
    min-width: 100px;
    text-align: center;
}

.countdown-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: var(--space-sm);
}

.countdown-status {
    text-align: center;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    padding: var(--space-md);
    background: var(--warm-white);
    border-radius: var(--radius-standard);
}

.countdown-status.complete {
    background: #f0fff4;
    color: #276749;
    font-weight: 600;
}

@media (max-width: 480px) {
    .countdown-display {
        gap: var(--space-md);
    }
    .countdown-item {
        min-width: 60px;
    }
    .countdown-value {
        font-size: 1.75rem;
        padding: var(--space-md) var(--space-lg);
        min-width: 70px;
    }
}

/* Interval Timer Styles */
.timer-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.timer-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    font-family: 'Courier New', monospace;
    background: var(--warm-white);
    padding: var(--space-xl) var(--space-xxl);
    border-radius: var(--radius-standard);
    border: 2px solid var(--border-light);
    min-width: 200px;
    text-align: center;
}

.timer-round {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: var(--space-md);
    font-weight: 600;
}

.timer-state-indicator {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.timer-state {
    display: inline-block;
    padding: var(--space-sm) var(--space-xl);
    border-radius: var(--radius-standard);
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.timer-state.work {
    background: rgba(229, 62, 62, 0.15);
    color: #e53e3e;
}

.timer-state.rest {
    background: rgba(72, 187, 120, 0.15);
    color: #38a169;
}

.timer-state.ready {
    background: var(--warm-white);
    color: var(--text-secondary);
    border: 2px solid var(--border-light);
}

.timer-state.complete {
    background: rgba(69, 170, 230, 0.15);
    color: var(--accent-primary);
}

.timer-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.option-group-row {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.option-group-row .option-group {
    flex: 1;
}

@media (max-width: 480px) {
    .timer-value {
        font-size: 2.5rem;
        padding: var(--space-lg) var(--space-xl);
        min-width: 150px;
    }
    .option-group-row {
        flex-direction: column;
        gap: var(--space-md);
    }
}

/* Cooking Timer Styles */
.timers-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    max-width: 720px;
    margin: 0 auto;
}

.no-timers-message {
    text-align: center;
    color: var(--text-muted);
    padding: var(--space-3xl);
    background: var(--warm-white);
    border-radius: var(--radius-standard);
    border: var(--border-whisper);
}

.cooking-timer {
    background: var(--white);
    border: var(--border-whisper);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
    transition: all 0.3s ease;
}

.cooking-timer.alarm-active {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.3);
    animation: pulse 0.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.timer-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.timer-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.timer-display {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    font-family: 'Courier New', monospace;
}

.timer-controls {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
}

.timer-complete .timer-display {
    color: #e53e3e;
}

@media (max-width: 480px) {
    .cooking-timer {
        flex-direction: column;
        text-align: center;
    }
    
    .timer-controls {
        justify-content: center;
        width: 100%;
    }
}

/* Tool type timer */
.tool-card.tool-type-timer {
    border-left-color: #e53e3e;
}
.tool-card.tool-type-timer:hover {
    border-left-color: #e53e3e;
    box-shadow: 0 2px 12px rgba(229, 62, 62, 0.2);
}
.tool-card-icon.tool-type-timer {
    background: rgba(229, 62, 62, 0.15);
    color: #e53e3e;
}
.tool-type-icon.tool-type-timer {
    background: rgba(229, 62, 62, 0.15);
    color: #e53e3e;
    padding: 3px;
    border-radius: 2px;
}

/* Calculator tool type */
.tool-card.tool-type-calculator {
    border-left-color: #45AAE6;
}
.tool-card.tool-type-calculator:hover {
    border-left-color: #45AAE6;
    box-shadow: 0 2px 12px rgba(69, 170, 230, 0.2);
}
.tool-card-icon.tool-type-calculator {
    background: rgba(69, 170, 230, 0.15);
    color: #45AAE6;
}

/* Fitness Calculator tool type */
.tool-card.tool-type-fitness {
    border-left-color: #e53e3e;
}
.tool-card.tool-type-fitness:hover {
    border-left-color: #e53e3e;
    box-shadow: 0 2px 12px rgba(229, 62, 62, 0.2);
}
.tool-card-icon.tool-type-fitness {
    background: rgba(229, 62, 62, 0.15);
    color: #e53e3e;
}
.tool-type-icon.tool-type-fitness {
    background: rgba(229, 62, 62, 0.15);
    color: #e53e3e;
    padding: 3px;
    border-radius: 2px;
}

/* Mortgage Calculator tool type */
.tool-card.tool-type-mortgage {
    border-left-color: #2741B5;
}
.tool-card.tool-type-mortgage:hover {
    border-left-color: #2741B5;
    box-shadow: 0 2px 12px rgba(39, 65, 181, 0.2);
}
.tool-card-icon.tool-type-mortgage {
    background: rgba(39, 65, 181, 0.15);
    color: #2741B5;
}
.tool-type-icon.tool-type-mortgage {
    background: rgba(39, 65, 181, 0.15);
    color: #2741B5;
    padding: 3px;
    border-radius: 2px;
}

/* Fitness Calculator Styles */
.result-box {
    background: linear-gradient(135deg, #f8f8fb 0%, #fff5f5 100%);
    border-radius: var(--radius-standard);
    padding: var(--space-2xl);
    margin-top: var(--space-xl);
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}
.result-box.show-result {
    border-color: rgba(229, 62, 62, 0.3);
    box-shadow: 0 4px 16px rgba(229, 62, 62, 0.15);
}
.result-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}
.result-value {
    font-size: 3rem;
    font-weight: 700;
    color: #e53e3e;
    line-height: 1;
    margin-bottom: var(--space-xs);
}
.result-unit {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Simple Calculator Styles */
.calculator-card {
    max-width: 320px;
    margin: 0 auto var(--space-xl);
    background: var(--color-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: var(--space-lg);
}

.calculator-display {
    background: #f8f8fb;
    border-radius: 4px;
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    text-align: right;
    height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.calculator-previous {
    font-size: 0.875rem;
    color: var(--text-secondary);
    min-height: 1.25em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calculator-current {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    word-break: break-all;
    line-height: 1.2;
    min-height: 1.2em;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calculator-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
}

.calc-btn {
    padding: var(--space-md) var(--space-sm);
    font-size: 1.25rem;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    background: #f0efff;
    color: var(--color-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.calc-btn:hover {
    background: #e8e6f0;
}

.calc-btn:active {
    transform: scale(0.98);
}

.calc-btn:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.calc-clear {
    background: #f0efff;
    color: #AA4AC3;
}

.calc-clear:hover {
    background: #e8ddf0;
}

.calc-operator {
    background: #e8e6f0;
    color: #AA4AC3;
}

.calc-operator:hover {
    background: #d4d2e0;
}

.calc-equals {
    background: #1a1a1a;
    color: white;
    grid-row: span 2;
    height: 100%;
    align-self: stretch;
}

.calc-equals:hover {
    background: #AA4AC3;
}

.calc-zero {
    grid-column: span 2;
}

.calc-backspace {
    font-size: 1rem;
}

.calculator-history {
    max-width: 320px;
    margin: 0 auto;
    padding: var(--space-lg);
    background: var(--color-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.calculator-history h3 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
}

.history-list {
    max-height: 200px;
    overflow-y: auto;
}

.history-empty {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-style: italic;
}

.history-item {
    padding: var(--space-sm);
    border-bottom: 1px solid var(--border-light);
    font-size: 0.875rem;
    color: var(--color-primary);
    cursor: pointer;
    transition: background 0.2s ease;
}

.history-item:hover {
    background: #f0efff;
}

.history-item:last-child {
    border-bottom: none;
}

/* Responsive adjustments for calculator */
@media (max-width: 480px) {
    .calculator-card {
        padding: var(--space-md);
    }

    .calc-btn {
        padding: var(--space-sm);
        font-size: 1.125rem;
    }

    .calculator-current {
        font-size: 1.5rem;
    }
}

/* BMI Calculator Styles */
.unit-toggle {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    justify-content: center;
}

.unit-btn {
    padding: var(--space-sm) var(--space-lg);
    background: var(--off-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-micro);
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.unit-btn:hover {
    background: var(--white);
    border-color: var(--text-secondary);
}

.unit-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--white);
}

.option-group {
    position: relative;
    margin-bottom: var(--space-lg);
}

.option-group .clear-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    padding: 4px 8px;
    font-size: 0.8rem;
}

.option-group .bmi-input {
    padding-right: 50px;
}

.bmi-input {
    font-size: 1.1rem;
    padding: 10px 12px;
    text-align: center;
}

.unit-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: var(--space-xs);
}

.bmi-result {
    background: var(--warm-white);
    border-radius: var(--radius-standard);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    text-align: center;
    border: var(--border-whisper);
}

.bmi-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.bmi-category {
    font-size: 1.125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bmi-category.underweight {
    color: #3182ce;
}

.bmi-category.normal {
    color: #38a169;
}

.bmi-category.overweight {
    color: #dd6b20;
}

.bmi-category.obese {
    color: #c53030;
}

.bmi-chart {
    position: relative;
    padding: var(--space-lg) 0;
}

.chart-bar {
    display: flex;
    height: 40px;
    border-radius: var(--radius-standard);
    overflow: hidden;
}

.chart-segment {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--off-white);
    border: 1px solid var(--border-light);
    font-size: 0.7rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.chart-segment + .chart-segment {
    border-left: none;
}

.chart-segment.underweight {
    background: #ebf8ff;
    border-color: #bee3f8;
}

.chart-segment.normal {
    background: #f0fff4;
    border-color: #c6f6d5;
}

.chart-segment.overweight {
    background: #fffaf0;
    border-color: #feebc8;
}

.chart-segment.obese {
    background: #fff5f5;
    border-color: #fed7d7;
}

.chart-segment.active {
    transform: scaleY(1.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chart-segment.active.underweight {
    background: #3182ce;
    border-color: #3182ce;
    color: white;
}

.chart-segment.active.normal {
    background: #38a169;
    border-color: #38a169;
    color: white;
}

.chart-segment.active.overweight {
    background: #dd6b20;
    border-color: #dd6b20;
    color: white;
}

.chart-segment.active.obese {
    background: #c53030;
    border-color: #c53030;
    color: white;
}

.chart-label {
    font-weight: 600;
    display: block;
}

.chart-range {
    font-size: 0.65rem;
    opacity: 0.8;
}

.chart-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 4px;
    height: 48px;
    background: var(--color-primary);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: left 0.3s ease;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.generator-actions {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-xl);
}

/* Responsive adjustments for BMI calculator */
@media (max-width: 480px) {
    .bmi-value {
        font-size: 2rem;
    }
    
    .bmi-category {
        font-size: 1rem;
    }
    
    .chart-segment {
        font-size: 0.6rem;
    }
    
    .chart-range {
        display: none;
    }
}

/* Pomodoro Timer Styles */
.pomodoro-settings {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.pomodoro-settings .option-group {
    flex: 1;
    min-width: 200px;
}

.pomodoro-mode {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.pomodoro-timer {
    text-align: center;
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    font-family: 'Courier New', monospace;
    margin-bottom: var(--space-xl);
}

.pomodoro-timer span {
    display: inline-block;
    min-width: 100px;
}

.progress-bar {
    height: 12px;
    background: var(--warm-white);
    border-radius: var(--radius-standard);
    overflow: hidden;
    margin-bottom: var(--space-lg);
    border: 2px solid var(--border-light);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: #ef4444;
    transition: width 1s linear;
    border-radius: var(--radius-standard);
}

.pomodoro-session {
    text-align: center;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.pomodoro-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.pomodoro-notification {
    display: flex;
    justify-content: center;
}

.pomodoro-notification .checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.pomodoro-notification input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Stopwatch Styles */
.stopwatch-display {
    text-align: center;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    font-family: 'Courier New', monospace;
    margin-bottom: var(--space-md);
}

.stopwatch-display span {
    display: inline-block;
    min-width: 80px;
}

.stopwatch-status {
    text-align: center;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stopwatch-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.stopwatch-laps {
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: var(--border-whisper);
}

.stopwatch-laps h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.lap-list {
    max-height: 200px;
    overflow-y: auto;
}

.lap-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-light);
}

.lap-item:first-child {
    border-top: 1px solid var(--border-light);
}

.lap-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.lap-time {
    font-size: 0.875rem;
    font-family: 'Courier New', monospace;
    color: var(--text-secondary);
}

@media (max-width: 480px) {
    .pomodoro-timer {
        font-size: 2.5rem;
    }
    .pomodoro-timer span {
        min-width: 60px;
    }
    .pomodoro-actions {
        flex-direction: column;
    }
    .pomodoro-actions .btn {
        width: 100%;
    }
}

/* Stopwatch Responsive */
@media (max-width: 480px) {
    .stopwatch-display {
        font-size: 2rem;
    }
    .stopwatch-display span {
        min-width: 40px;
    }
    .stopwatch-actions {
        flex-direction: column;
    }
    .stopwatch-actions .btn {
        width: 100%;
    }
}
