/* NetExplore KEYFORGE - IPWHOIS Style Theme */
/* Dark theme matching IPWHOIS */

:root {
    --bg-color: #000000;
    --card-bg: #0a1628;
    --accent-color: #004682;
    --accent-dark: #003366;
    --accent-light: #0066b3;
    --text-color: #ffffff;
    --text-secondary: #b0b0b0;
    --error-color: #ff5252;
    --warning-color: #FF9800;
    --success-color: #4CAF50;
    --border-color: #004682;
    --hover-color: #0d2240;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Header - Simple centered like IPWHOIS */
header {
    margin-bottom: 1.5rem;
    text-align: center;
    padding-top: 1rem;
}

h1 {
    font-weight: 500;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

h2 {
    font-weight: 400;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

h2 i {
    margin-right: 0.8rem;
    color: var(--accent-light);
    font-size: 1.3rem;
}

h3 {
    font-weight: 500;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.accent {
    color: var(--accent-light);
}

/* Card */
.card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.subtitle {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-btn {
    padding: 0.8rem 1.6rem;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn i {
    font-size: 1.2rem;
}

.nav-btn:hover {
    background-color: var(--hover-color);
    color: var(--text-color);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 70, 130, 0.35);
}

.nav-btn.active {
    background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
    color: #ffffff;
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 70, 130, 0.4);
}

/* Section */
.section {
    display: none;
}

.section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Output Container */
.output-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.password-output {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: 'Roboto Mono', 'Consolas', monospace;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    transition: all 0.2s ease;
    min-height: 44px;
}

.password-output:focus {
    outline: none;
    border-color: var(--accent-color);
}

.copy-btn, .regenerate-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.copy-btn:hover, .regenerate-btn:hover {
    background-color: var(--hover-color);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 70, 130, 0.35);
}

.copy-btn:active, .regenerate-btn:active {
    transform: scale(0.95);
}

/* Strength Meter */
.strength-meter {
    height: 10px;
    background: var(--card-bg);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-color);
}

.strength-bar {
    height: 100%;
    width: 0%;
    border-radius: 5px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Options Grid */
.options-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.option-group label:not(.checkbox-label) {
    display: block;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.option-group input[type="range"] {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border-color);
    border-radius: 3px;
    cursor: pointer;
}

.option-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(110, 223, 246, 0.2);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Checkboxes */
.checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.checkbox-label:hover {
    color: var(--text-color);
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
}

.checkbox-label input:checked + .checkmark {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.checkbox-label input:checked + .checkmark::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.checkbox-label:hover .checkmark {
    border-color: var(--accent-color);
}

/* Select */
select {
    width: 100%;
    padding: 0.9rem 2.8rem 0.9rem 1rem;
    font-size: 0.95rem;
    font-family: 'Roboto', Arial, sans-serif;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 50px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 24px;
}

select:hover {
    border-color: var(--accent-light);
    background-color: rgba(255, 255, 255, 0.1);
}

select:focus {
    outline: none;
    border-color: var(--accent-light);
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(0, 70, 130, 0.25), 0 4px 20px rgba(0, 70, 130, 0.15);
}

select option {
    background-color: var(--card-bg);
    color: var(--text-color);
    padding: 0.5rem;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: 8px;
    background-color: var(--card-bg);
    color: var(--text-color);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn i {
    margin-right: 0.6rem;
    font-size: 1.2rem;
}

.btn:hover:not(:disabled) {
    background-color: var(--hover-color);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 70, 130, 0.35);
}

.btn.primary {
    background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
    color: #ffffff;
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 70, 130, 0.4);
}

.btn.primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 70, 130, 0.5);
}

.btn.secondary {
    border: 1px solid var(--accent-light);
    color: var(--accent-light);
    background-color: rgba(0, 70, 130, 0.1);
}

.btn.secondary:hover {
    background-color: var(--accent-color);
    color: #ffffff;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.primary-btn {
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 50px;
    box-shadow: 0 4px 15px rgba(0, 70, 130, 0.4);
}

.primary-btn:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 70, 130, 0.5);
}

.primary-btn:active {
    transform: scale(0.98);
}

.primary-btn i {
    font-size: 1.2rem;
}

/* Info Box */
.info-box {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    border-left: 4px solid var(--accent-color);
}

.info-box h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-box ul {
    list-style: none;
}

.info-box li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-left: 1rem;
    position: relative;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.info-box li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
}

.info-box.warning {
    border-left-color: var(--warning-color);
    background: rgba(255, 152, 0, 0.1);
}

.info-box.warning h3 {
    color: var(--warning-color);
}

.info-box p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.info-box a {
    color: var(--accent-color);
    text-decoration: none;
}

.info-box a:hover {
    text-decoration: underline;
}

/* Analysis Results */
.analysis-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.analysis-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.analysis-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.analysis-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
}

/* Feedback Box */
.feedback-box {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.feedback-box h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feedback-box ul {
    list-style: none;
}

.feedback-box li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feedback-box li:last-child {
    border-bottom: none;
}

.feedback-box li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-secondary);
}

.feedback-box li.good::before {
    background: var(--success-color);
}

.feedback-box li.warning::before {
    background: var(--warning-color);
}

.feedback-box li.bad::before {
    background: var(--error-color);
}

/* Crypto Tools Grid */
.crypto-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.crypto-tool-card {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.2s ease;
}

.crypto-tool-card.coming-soon {
    opacity: 0.6;
}

.crypto-tool-card:not(.coming-soon):hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.tool-icon {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.tool-icon i {
    font-size: 2.5rem;
}

.crypto-tool-card h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.crypto-tool-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    background: var(--border-color);
    border-radius: 9999px;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 3rem;
    padding: 1rem 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--card-bg);
    color: var(--text-color);
    padding: 0.875rem 1.5rem;
    border-radius: 4px;
    border: 1px solid var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Status Messages */
.status {
    margin: 1rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Hidden class */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    .card {
        padding: 1rem;
    }

    .nav-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-btn {
        white-space: nowrap;
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }

    .checkboxes {
        grid-template-columns: 1fr;
    }

    .analysis-results {
        grid-template-columns: 1fr 1fr;
    }

    .crypto-tools-grid {
        grid-template-columns: 1fr;
    }

    /* Touch-friendly sizes */
    input[type="text"],
    textarea,
    select {
        font-size: 16px;
    }

    .btn {
        width: 100%;
        min-height: 44px;
    }

    .button-group {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .card {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }

    .output-container {
        flex-wrap: wrap;
    }

    .password-output {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .copy-btn, .regenerate-btn {
        flex: 1;
    }

    .analysis-results {
        grid-template-columns: 1fr;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states */
*:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ============================================
   AES Encryption Tool Styles
   ============================================ */

/* Mode Toggle */
.aes-mode-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.mode-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.mode-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
}

.mode-btn.active {
    background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 70, 130, 0.4);
}

.mode-btn i {
    font-size: 1.2rem;
}

/* AES Form */
.aes-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
}

/* AES Textarea */
.aes-textarea {
    width: 100%;
    padding: 1rem;
    font-size: 0.95rem;
    font-family: 'Roboto Mono', 'Consolas', monospace;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    resize: vertical;
    min-height: 100px;
    transition: all 0.2s ease;
    line-height: 1.5;
}

.aes-textarea:focus {
    outline: none;
    border-color: var(--accent-light);
    box-shadow: 0 0 0 3px rgba(0, 70, 130, 0.2);
}

.aes-textarea.output {
    background-color: rgba(0, 70, 130, 0.1);
    border-color: var(--accent-color);
}

.aes-textarea::placeholder {
    color: var(--text-secondary);
}

/* AES Input */
.aes-input {
    width: 100%;
    padding: 0.875rem 3rem 0.875rem 1rem;
    font-size: 0.95rem;
    font-family: 'Roboto', Arial, sans-serif;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    transition: all 0.2s ease;
}

.aes-input:focus {
    outline: none;
    border-color: var(--accent-light);
    box-shadow: 0 0 0 3px rgba(0, 70, 130, 0.2);
}

.aes-input::placeholder {
    color: var(--text-secondary);
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .aes-input {
    padding-right: 3rem;
}

.toggle-password-btn {
    position: absolute;
    right: 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-password-btn:hover {
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.1);
}

/* Mini Password Strength Indicator */
.password-strength-mini {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.25rem;
}

.password-strength-mini .strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

/* Output Actions */
.output-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.btn.small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn.small i {
    font-size: 1rem;
    margin-right: 0.4rem;
}

/* AES Error Message */
.aes-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #ef4444;
    font-size: 0.9rem;
}

.aes-error i {
    font-size: 1.2rem;
}

/* AES Success styling for output */
.aes-success {
    animation: successPulse 0.5s ease;
}

@keyframes successPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Responsive adjustments for AES tool */
@media (max-width: 768px) {
    .aes-mode-toggle {
        flex-direction: column;
    }

    .mode-btn {
        width: 100%;
    }

    .output-actions {
        flex-direction: column;
    }

    .output-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .aes-textarea {
        min-height: 80px;
        font-size: 14px;
    }

    .aes-input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* ============================================
   Hash Generator Tool Styles
   ============================================ */

/* Hash Input Tabs */
.hash-input-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.hash-tab-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.hash-tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
}

.hash-tab-btn.active {
    background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 70, 130, 0.4);
}

.hash-tab-btn i {
    font-size: 1.2rem;
}

/* Hash Tab Content */
.hash-tab-content {
    display: none;
}

.hash-tab-content.active {
    display: block;
}

/* Hash Dropzone */
.hash-dropzone {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
}

.hash-dropzone:hover,
.hash-dropzone.dragover {
    border-color: var(--accent-light);
    background: rgba(0, 70, 130, 0.1);
}

.hash-dropzone i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.hash-dropzone p {
    color: var(--text-secondary);
    margin: 0;
}

.hash-file-info {
    display: block;
    margin-top: 0.75rem;
    color: var(--accent-light);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Hash Algorithms Grid */
.hash-algorithms {
    margin-bottom: 1rem;
}

.hash-algorithms .form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.hash-algo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hash-algo-grid .checkbox-label {
    min-width: 100px;
}

/* Hash Results */
.hash-results {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.hash-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.hash-results-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 1rem;
    color: var(--text-color);
}

.hash-results-header h3 i {
    color: var(--success-color);
}

.hash-results-table {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hash-result-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.hash-result-row:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-color);
}

.hash-result-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hash-result-label span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hash-result-label button {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.hash-result-label button:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

.hash-result-label button i {
    font-size: 0.9rem;
}

.hash-result-value {
    font-family: 'Roboto Mono', 'Consolas', monospace;
    font-size: 0.85rem;
    color: var(--text-color);
    word-break: break-all;
    line-height: 1.5;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

/* Hash Verification Section */
.hash-verify-section {
    margin-top: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.hash-verify-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-color);
    font-weight: 500;
}

.hash-verify-header:hover {
    background: rgba(0, 0, 0, 0.3);
}

.hash-verify-header i:first-child {
    color: var(--accent-light);
}

.hash-verify-header .expand-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.hash-verify-header.expanded .expand-icon {
    transform: rotate(180deg);
}

.hash-verify-content {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.1);
}

.hash-verify-result {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-top: 0.75rem;
    font-weight: 500;
}

.hash-verify-result.match {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.hash-verify-result.no-match {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.hash-verify-result i {
    font-size: 1.3rem;
}

/* Hash Error */
.hash-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #ef4444;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.hash-error i {
    font-size: 1.2rem;
}

/* Hash Loading State */
.hash-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    color: var(--text-secondary);
}

.hash-loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive adjustments for Hash tool */
@media (max-width: 768px) {
    .hash-input-tabs {
        flex-direction: column;
    }

    .hash-tab-btn {
        width: 100%;
    }

    .hash-algo-grid {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hash-results-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .hash-results-header button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hash-dropzone {
        padding: 1.5rem 1rem;
    }

    .hash-dropzone i {
        font-size: 2.5rem;
    }

    .hash-result-value {
        font-size: 0.75rem;
    }
}

/* ============================================
   RSA Key Generator Tool Styles
   ============================================ */

/* RSA Options */
.rsa-options {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.rsa-option-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rsa-option-group .form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
}

/* RSA Size Buttons */
.rsa-size-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.rsa-size-btn {
    flex: 1;
    min-width: 100px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rsa-size-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    border-color: var(--accent-light);
}

.rsa-size-btn.active {
    background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 70, 130, 0.4);
}

.rsa-size-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* RSA Usage Toggle */
.rsa-usage-toggle,
.rsa-format-toggle {
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.rsa-usage-btn,
.rsa-format-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.rsa-usage-btn:hover,
.rsa-format-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
}

.rsa-usage-btn.active,
.rsa-format-btn.active {
    background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 70, 130, 0.4);
}

.rsa-usage-btn i,
.rsa-format-btn i {
    font-size: 1.2rem;
}

/* RSA Results */
.rsa-results {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* RSA Key Section */
.rsa-key-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.rsa-key-section.private {
    border-color: rgba(239, 68, 68, 0.3);
}

.rsa-key-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 0.75rem;
}

.rsa-key-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.rsa-key-title i {
    color: var(--accent-light);
}

.rsa-key-badge {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.rsa-key-badge.public {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.rsa-key-badge.private {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.rsa-key-actions {
    display: flex;
    gap: 0.5rem;
}

/* RSA Private Warning */
.rsa-private-warning {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    font-size: 0.85rem;
    font-weight: 500;
}

.rsa-private-warning i {
    font-size: 1.2rem;
}

/* RSA Key Output */
.rsa-key-output {
    width: 100%;
    padding: 1rem;
    font-size: 0.8rem;
    font-family: 'Roboto Mono', 'Consolas', monospace;
    border: none;
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--text-color);
    resize: vertical;
    line-height: 1.4;
    word-break: break-all;
}

.rsa-key-output:focus {
    outline: none;
}

.rsa-key-output.private {
    background-color: rgba(239, 68, 68, 0.05);
}

/* RSA Key Info */
.rsa-key-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.rsa-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.rsa-info-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rsa-info-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
}

/* RSA Error */
.rsa-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #ef4444;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.rsa-error i {
    font-size: 1.2rem;
}

/* RSA Loading Animation */
.rsa-generating {
    position: relative;
}

.rsa-generating::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Responsive adjustments for RSA tool */
@media (max-width: 768px) {
    .rsa-size-buttons {
        flex-direction: column;
    }

    .rsa-size-btn {
        width: 100%;
    }

    .rsa-usage-toggle,
    .rsa-format-toggle {
        flex-direction: column;
    }

    .rsa-key-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .rsa-key-actions {
        width: 100%;
    }

    .rsa-key-actions .btn {
        flex: 1;
    }

    .rsa-key-info {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .rsa-key-output {
        font-size: 0.7rem;
    }

    .rsa-key-info {
        grid-template-columns: 1fr;
    }

    .rsa-key-actions {
        flex-direction: column;
    }
}

/* RSA Usage Guide */
.rsa-usage-guide {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 0.5rem;
}

.rsa-usage-guide .usage-section {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rsa-usage-guide .usage-section:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.rsa-usage-guide h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 0.5rem;
}

.rsa-usage-guide p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.rsa-usage-guide ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rsa-usage-guide li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.4rem;
    line-height: 1.5;
}

.rsa-usage-guide li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
}

.rsa-usage-guide li strong {
    color: var(--text-color);
}

/* ============================================
   Base64 Encoder Tool Styles
   ============================================ */

/* Base64 Mode Toggle - reuse existing styles */
.base64-mode-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* Base64 Options */
.base64-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* Base64 Form */
.base64-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Base64 Label Row */
.base64-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.base64-label-row label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
}

.base64-stats {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: 'Roboto Mono', monospace;
}

/* Base64 File Section */
.base64-file-section {
    margin: 0.5rem 0;
}

.base64-file-divider {
    display: flex;
    align-items: center;
    margin: 1rem 0;
}

.base64-file-divider::before,
.base64-file-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.base64-file-divider span {
    padding: 0 1rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Base64 Dropzone */
.base64-dropzone {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
}

.base64-dropzone:hover,
.base64-dropzone.dragover {
    border-color: var(--accent-light);
    background: rgba(0, 70, 130, 0.1);
}

.base64-dropzone i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.base64-dropzone p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

.base64-file-info {
    display: block;
    margin-top: 0.5rem;
    color: var(--accent-light);
    font-weight: 500;
    font-size: 0.85rem;
}

/* Base64 Ratio Stats */
.base64-ratio {
    display: flex;
    justify-content: space-around;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-top: 0.5rem;
}

.ratio-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.ratio-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ratio-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    font-family: 'Roboto Mono', monospace;
}

/* Base64 Error */
.base64-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #ef4444;
    font-size: 0.9rem;
}

.base64-error i {
    font-size: 1.2rem;
}

/* Responsive adjustments for Base64 tool */
@media (max-width: 768px) {
    .base64-mode-toggle {
        flex-direction: column;
    }

    .base64-options {
        flex-direction: column;
        gap: 0.75rem;
    }

    .base64-ratio {
        flex-direction: column;
        gap: 0.75rem;
    }

    .ratio-item {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .base64-dropzone {
        padding: 1rem;
    }

    .base64-dropzone i {
        font-size: 2rem;
    }
}

/* ============================================
   JWT Decoder Tool Styles
   ============================================ */

/* JWT Form */
.jwt-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.jwt-input {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    word-break: break-all;
}

/* JWT Results */
.jwt-results {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* JWT Section */
.jwt-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.jwt-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-color);
}

.jwt-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
}

/* JWT Colored Dots */
.jwt-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.jwt-dot.header {
    background: #ef4444;
}

.jwt-dot.payload {
    background: #a855f7;
}

.jwt-dot.signature {
    background: #3b82f6;
}

/* JWT Copy Button */
.jwt-copy-btn {
    padding: 0.35rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jwt-copy-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

.jwt-copy-btn i {
    font-size: 1rem;
}

/* JWT Code Block */
.jwt-code {
    margin: 0;
    padding: 1rem;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text-color);
    background: rgba(0, 0, 0, 0.3);
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

/* JWT Claims */
.jwt-claims {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.jwt-claims h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
    color: var(--text-color);
}

.jwt-claims h4 i {
    font-size: 1.1rem;
    color: var(--accent-light);
}

.jwt-claims-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.jwt-claim-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.jwt-claim-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.jwt-claim-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    word-break: break-word;
}

.jwt-claim-value.expired {
    color: #ef4444;
}

.jwt-claim-value.valid {
    color: #10b981;
}

/* JWT Signature */
.jwt-section.signature {
    border-color: rgba(59, 130, 246, 0.3);
}

.jwt-signature-content {
    padding: 1rem;
}

.jwt-signature-content code {
    display: block;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    word-break: break-all;
    line-height: 1.5;
}

.jwt-signature-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 4px;
    font-size: 0.8rem;
    color: #fbbf24;
}

.jwt-signature-note i {
    font-size: 1rem;
}

/* JWT Status */
.jwt-status {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.jwt-status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.jwt-status-item i {
    font-size: 1.2rem;
}

.jwt-status-item.expired {
    color: #ef4444;
}

.jwt-status-item.valid {
    color: #10b981;
}

.jwt-status-item.unknown {
    color: var(--text-secondary);
}

/* JWT Error */
.jwt-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #ef4444;
    font-size: 0.9rem;
}

.jwt-error i {
    font-size: 1.2rem;
}

/* Responsive adjustments for JWT tool */
@media (max-width: 768px) {
    .jwt-claims-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .jwt-code {
        font-size: 0.7rem;
        padding: 0.75rem;
    }

    .jwt-signature-content code {
        font-size: 0.65rem;
    }
}

/* ============================================
   Caesar Cipher Tool Styles
   ============================================ */

/* Main Layout - Side by side */
.caesar-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Caesar Wheel Container */
.caesar-wheel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.caesar-wheel {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 1;
    cursor: grab;
    user-select: none;
}

.caesar-wheel:active {
    cursor: grabbing;
}

.wheel-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 12px rgba(0, 70, 130, 0.3));
}

/* Wheel Rings */
.wheel-ring {
    fill: none;
    stroke-width: 2;
}

.outer-ring {
    fill: var(--card-bg);
    stroke: var(--accent-color);
}

.inner-ring {
    fill: rgba(0, 70, 130, 0.3);
    stroke: var(--accent-light);
    transition: transform 0.3s ease;
}

.inner-ring-group {
    transform-origin: 150px 150px;
    transition: transform 0.3s ease;
}

/* Wheel Letters */
.wheel-letter {
    font-family: 'Roboto Mono', monospace;
    font-weight: 600;
    text-anchor: middle;
    dominant-baseline: middle;
}

.outer-letter {
    font-size: 14px;
    fill: var(--text-color);
}

.inner-letter {
    font-size: 12px;
    fill: var(--accent-light);
}

.wheel-letter.highlighted {
    fill: #4CAF50;
    font-weight: 700;
}

/* Wheel Center */
.wheel-center {
    fill: var(--accent-color);
    stroke: var(--accent-light);
    stroke-width: 2;
}

.wheel-center-text {
    fill: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    text-anchor: middle;
}

.wheel-center-number {
    fill: var(--text-color);
    font-size: 24px;
    font-weight: 700;
    text-anchor: middle;
}

/* Wheel Controls */
.wheel-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.wheel-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.wheel-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-light);
    transform: scale(1.1);
}

.wheel-btn i {
    font-size: 1.1rem;
}

.wheel-shift-input {
    width: 60px;
    height: 40px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    color: var(--accent-light);
    outline: none;
}

.wheel-shift-input:focus {
    border-color: var(--accent-light);
}

.wheel-shift-input::-webkit-outer-spin-button,
.wheel-shift-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.wheel-shift-input[type=number] {
    -moz-appearance: textfield;
}

/* Wheel Presets */
.wheel-presets {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
}

.preset-btn {
    padding: 0.35rem 0.6rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.preset-btn:hover {
    background: rgba(0, 70, 130, 0.3);
    color: var(--text-color);
}

.preset-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-light);
    color: var(--text-color);
}

/* Caesar Form */
.caesar-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Mode Toggle */
.caesar-mode-toggle {
    display: flex;
    background: rgba(0, 70, 130, 0.1);
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
}

.caesar-mode-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.caesar-mode-btn:hover {
    color: var(--text-color);
}

.caesar-mode-btn.active {
    background: var(--accent-color);
    color: var(--text-color);
}

.caesar-mode-btn i {
    font-size: 1.1rem;
}

/* Input Group */
.caesar-input-group {
    position: relative;
}

.caesar-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.caesar-textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 80px;
    outline: none;
    transition: border-color 0.2s ease;
}

.caesar-textarea:focus {
    border-color: var(--accent-light);
}

.caesar-textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.caesar-char-count {
    position: absolute;
    bottom: 8px;
    right: 10px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    pointer-events: none;
}

/* Output Actions */
.caesar-output-actions {
    position: absolute;
    top: 32px;
    right: 8px;
    display: flex;
    gap: 4px;
}

.caesar-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background: rgba(0, 70, 130, 0.3);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.caesar-icon-btn:hover {
    background: var(--accent-color);
    color: var(--text-color);
}

.caesar-icon-btn i {
    font-size: 1rem;
}

/* Action Buttons */
.caesar-actions {
    display: flex;
    gap: 0.5rem;
}

.caesar-primary-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    background: var(--accent-color);
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.caesar-primary-btn:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

.caesar-primary-btn i {
    font-size: 1.2rem;
}

.caesar-secondary-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.caesar-secondary-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

/* Brute Force Section */
.caesar-bruteforce-section {
    margin-top: 1.5rem;
}

.caesar-bruteforce-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.caesar-bruteforce-btn:hover {
    border-color: var(--accent-color);
    color: var(--text-color);
    background: rgba(0, 70, 130, 0.1);
}

.caesar-bruteforce-btn i {
    font-size: 1.1rem;
}

.caesar-bruteforce {
    margin-top: 1rem;
    background: rgba(0, 70, 130, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.bruteforce-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.bruteforce-header h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    color: var(--accent-light);
}

.bruteforce-header h4 i {
    font-size: 1.1rem;
}

.bruteforce-header p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.bruteforce-results {
    display: flex;
    flex-direction: column;
    max-height: 350px;
    overflow-y: auto;
}

.bruteforce-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid rgba(0, 70, 130, 0.1);
    cursor: pointer;
    transition: all 0.15s ease;
}

.bruteforce-item:last-child {
    border-bottom: none;
}

.bruteforce-item:hover {
    background: rgba(0, 70, 130, 0.15);
}

.bruteforce-item.highlighted {
    background: rgba(0, 102, 179, 0.25);
}

.bruteforce-shift {
    min-width: 50px;
    padding: 0.2rem 0.4rem;
    background: var(--accent-color);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-color);
}

.bruteforce-text {
    flex: 1;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bruteforce-copy {
    padding: 0.3rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0;
}

.bruteforce-item:hover .bruteforce-copy {
    opacity: 1;
}

.bruteforce-copy:hover {
    color: var(--accent-light);
    background: rgba(0, 70, 130, 0.3);
}

.bruteforce-copy i {
    font-size: 0.9rem;
}

/* Caesar Error */
.caesar-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #ef4444;
    font-size: 0.85rem;
}

.caesar-error i {
    font-size: 1.1rem;
}

/* Responsive - Tablet */
@media (max-width: 900px) {
    .caesar-layout {
        grid-template-columns: 220px 1fr;
        gap: 1.5rem;
    }

    .caesar-wheel {
        max-width: 220px;
    }

    .outer-letter {
        font-size: 12px;
    }

    .inner-letter {
        font-size: 10px;
    }
}

/* Responsive - Mobile */
@media (max-width: 700px) {
    .caesar-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .caesar-wheel-container {
        order: -1;
    }

    .caesar-wheel {
        max-width: 250px;
    }

    .wheel-presets {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .caesar-wheel {
        max-width: 220px;
    }

    .caesar-mode-btn span {
        display: none;
    }

    .caesar-mode-btn {
        padding: 0.6rem;
    }

    .caesar-primary-btn {
        padding: 0.7rem 1rem;
    }

    .bruteforce-item {
        padding: 0.5rem 0.75rem;
    }

    .bruteforce-shift {
        min-width: 42px;
        font-size: 0.65rem;
    }

    .bruteforce-text {
        font-size: 0.75rem;
    }
}

/* ============================================
   Morse Code Tool Styles
   ============================================ */

/* Main Layout */
.morse-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
    align-items: start;
}

/* Morse Form */
.morse-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Mode Toggle */
.morse-mode-toggle {
    display: flex;
    background: rgba(0, 70, 130, 0.1);
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
}

.morse-mode-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.morse-mode-btn:hover {
    color: var(--text-color);
}

.morse-mode-btn.active {
    background: var(--accent-color);
    color: var(--text-color);
}

.morse-mode-btn i {
    font-size: 1.1rem;
}

/* Input Group */
.morse-input-group {
    position: relative;
}

.morse-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.morse-textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 80px;
    outline: none;
    transition: border-color 0.2s ease;
}

.morse-textarea:focus {
    border-color: var(--accent-light);
}

.morse-textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.morse-textarea.morse-output {
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.morse-char-count {
    position: absolute;
    bottom: 8px;
    right: 10px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    pointer-events: none;
}

/* Output Actions */
.morse-output-actions {
    position: absolute;
    top: 32px;
    right: 8px;
    display: flex;
    gap: 4px;
}

.morse-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background: rgba(0, 70, 130, 0.3);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.morse-icon-btn:hover {
    background: var(--accent-color);
    color: var(--text-color);
}

.morse-icon-btn i {
    font-size: 1rem;
}

.morse-icon-btn.playing {
    background: var(--success-color);
    color: white;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Action Buttons */
.morse-actions {
    display: flex;
    gap: 0.5rem;
}

.morse-primary-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    background: var(--accent-color);
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.morse-primary-btn:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

.morse-primary-btn i {
    font-size: 1.2rem;
}

.morse-secondary-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.morse-secondary-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

/* Audio Controls */
.morse-audio-controls {
    background: rgba(0, 70, 130, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
}

.audio-control-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.audio-control-row:last-child {
    margin-bottom: 0;
}

.audio-control-row label {
    min-width: 120px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.morse-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--card-bg);
    outline: none;
    -webkit-appearance: none;
}

.morse-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-light);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.morse-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.morse-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-light);
    cursor: pointer;
    border: none;
}

.audio-control-row span {
    min-width: 35px;
    text-align: right;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-light);
}

.morse-stop-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem;
    margin-top: 0.75rem;
    border: none;
    border-radius: 6px;
    background: #ef4444;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.morse-stop-btn:hover {
    background: #dc2626;
}

/* Morse Reference Chart */
.morse-reference {
    background: rgba(0, 70, 130, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
}

.morse-reference h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
    color: var(--accent-light);
}

.morse-reference h4 i {
    font-size: 1.1rem;
}

.morse-chart {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
    max-height: 400px;
    overflow-y: auto;
}

.morse-chart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.3rem 0.5rem;
    background: var(--card-bg);
    border-radius: 4px;
    font-size: 0.8rem;
}

.morse-chart-char {
    font-weight: 700;
    color: var(--text-color);
    min-width: 20px;
}

.morse-chart-code {
    font-family: 'Roboto Mono', monospace;
    color: var(--accent-light);
    letter-spacing: 1px;
}

.morse-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.morse-legend strong {
    color: var(--accent-light);
    font-size: 1rem;
}

/* Morse Error */
.morse-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #ef4444;
    font-size: 0.85rem;
}

.morse-error i {
    font-size: 1.1rem;
}

/* Responsive - Tablet */
@media (max-width: 900px) {
    .morse-layout {
        grid-template-columns: 1fr 220px;
        gap: 1.5rem;
    }

    .morse-chart {
        grid-template-columns: 1fr;
    }
}

/* Responsive - Mobile */
@media (max-width: 700px) {
    .morse-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .morse-reference {
        order: 1;
    }

    .morse-chart {
        grid-template-columns: repeat(2, 1fr);
        max-height: 200px;
    }
}

@media (max-width: 480px) {
    .morse-mode-btn span {
        display: none;
    }

    .morse-mode-btn {
        padding: 0.6rem;
    }

    .morse-primary-btn {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }

    .audio-control-row {
        flex-wrap: wrap;
    }

    .audio-control-row label {
        min-width: 100%;
        margin-bottom: 0.25rem;
    }

    .morse-chart {
        grid-template-columns: repeat(2, 1fr);
    }
}

