<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">/* Binary to Text Converter Tool Styles */

/* Tool Container - Full Page Layout */
.binary-converter-tool {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 0;
    margin: 0;
}

.tool-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

/* Tool Header */
.tool-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
}

.tool-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: rgb(34, 33, 33);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.tool-header h1 i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.tool-description {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Converter Interface */
.converter-interface {
    margin-bottom: 3rem;
}

.converter-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    border: 1px solid #e5e7eb;
}

/* Mode Toggle */
.mode-toggle-section {
    margin-bottom: 2rem;
}

.mode-toggle {
    display: flex;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 0.25rem;
    gap: 0.25rem;
}

.mode-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.875rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.mode-btn.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mode-btn:hover:not(.active) {
    color: #374151;
    background: rgba(255, 255, 255, 0.5);
}

/* Input Section */
.input-section {
    margin-bottom: 2rem;
}

.input-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

.input-textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background-color: #f9fafb;
    transition: all 0.2s ease-in-out;
    font-family: 'Courier New', monospace;
    resize: vertical;
    min-height: 300px;
}

.input-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(50, 146, 109, 0.1);
}

.input-controls {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    justify-content: flex-end;
}

.control-btn {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    min-width: 100px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.control-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.control-btn:hover::before {
    left: 100%;
}

.control-btn:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #475569;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.control-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.control-btn i {
    font-size: 1rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.control-btn:hover i {
    opacity: 1;
    transform: scale(1.1);
}

/* Clear Button - Red Styling */
.control-btn#clearInput {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #fca5a5;
    color: #dc2626;
}

.control-btn#clearInput:hover {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: #f87171;
    color: #b91c1c;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2), 0 2px 4px rgba(220, 38, 38, 0.1);
}

.control-btn#clearInput::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}

/* Paste Button - Green Styling */
.control-btn#pasteInput {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #86efac;
    color: #16a34a;
}

.control-btn#pasteInput:hover {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-color: #4ade80;
    color: #15803d;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2), 0 2px 4px rgba(22, 163, 74, 0.1);
}

.control-btn#pasteInput::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}

.input-info {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #f0f9ff;
    border-radius: 6px;
    border: 1px solid #bae6fd;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #0369a1;
}

/* Format Options */
.format-options {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.options-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s ease-in-out;
}

.option-item:hover {
    background: rgba(59, 130, 246, 0.05);
}

.option-item input[type="radio"] {
    margin: 0;
    accent-color: var(--primary-color);
}

.option-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color);
}

/* Convert Section */
.convert-section {
    margin-bottom: 2rem;
}

.convert-btn {
    width: 100%;
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.convert-btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
}

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

.convert-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Result Section */
.result-section {
    background: linear-gradient(135deg, #bdeec5 0%, #c5ddfa 100%);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid #93c5fd;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.result-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.copy-btn {
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-btn:hover {
    background: #059669;
    transform: translateY(-1px);
}

.copy-btn.copied {
    background: #6366f1;
}

.result-display {
    margin-bottom: 1.5rem;
}

.result-content {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #d1d5db;
}

.result-text {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    line-height: 1.6;
    color: #1f2937;
    word-break: break-all;
    white-space: pre-wrap;
    min-height: 1.5rem;
}

.result-details {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(209, 213, 219, 0.5);
}

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

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.detail-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-value {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1d4ed8;
}

/* Loading Indicator */
.loading-indicator {
    text-align: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    border: 1px solid #bae6fd;
    margin-bottom: 1.5rem;
}

.spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 4px solid #e0f2fe;
    border-top: 4px solid #1d4ed8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-indicator p {
    color: #1d4ed8;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.025em;
}

/* Error Message */
.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 1rem;
    color: #dc2626;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.error-message i {
    color: #dc2626;
}

/* Examples Section */
.examples-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.examples-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.examples-title i {
    color: #f59e0b;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.example-item {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.example-item:hover {
    background: #dbeafe;
    border-color: #3b82f6;
    transform: translateY(-1px);
}

.example-label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.example-input {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: #1f2937;
    background: white;
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    word-break: break-all;
    border: 1px solid #d1d5db;
}

.example-output {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: #059669;
    font-weight: 500;
    word-break: break-all;
}

/* Related Tools Section */
.related-tools-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.related-tools-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.related-tools-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.related-tools-header h3 i {
    color: var(--primary-color);
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.related-tool-link {
    background: #f8fafc;
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    border: 1px solid #e5e7eb;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.related-tool-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.related-tool-link i {
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tool-container {
        padding: 1rem;
    }

    .converter-card {
        padding: 1.5rem;
    }

    .tool-header h1 {
        font-size: 1.75rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .mode-toggle {
        flex-direction: row;
        gap: 0.25rem;
    }

    .mode-btn {
        padding: 0.875rem 0.75rem;
        font-size: 0.875rem;
        flex-direction: column;
        gap: 0.25rem;
    }

    .mode-btn i {
        font-size: 1rem;
    }

    .mode-btn span {
        white-space: nowrap;
        line-height: 1.1;
    }

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

    .result-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

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

    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

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

    .input-controls {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .tool-container {
        padding: 0.5rem;
    }

    .converter-card {
        padding: 1rem;
        border-radius: 8px;
    }

    .tool-header h1 {
        font-size: 1.5rem;
    }

    .input-textarea {
        font-size: 0.875rem;
        min-height: 200px;
    }

    .result-text {
        font-size: 0.875rem;
    }

    .mode-toggle {
        flex-direction: row;
        gap: 0.25rem;
    }

    .mode-btn {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
        flex-direction: column;
        gap: 0.25rem;
    }

    .mode-btn i {
        font-size: 0.9rem;
    }

    .mode-btn span {
        white-space: nowrap;
        line-height: 1.1;
    }

    .examples-section {
        padding: 1rem;
    }

    .related-tools-section {
        padding: 1rem;
        margin-top: 1rem;
    }

    .related-tools-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .related-tool-link {
        padding: 0.75rem;
        font-size: 0.875rem;
        flex-direction: row;
        gap: 0.5rem;
    }
}

    .related-tools-section {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }

    .related-tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .related-tool-link {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Copy Success Animation */
.copy-success {
    animation: copySuccess 0.3s ease-in-out;
}

@keyframes copySuccess {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Focus Styles for Accessibility */
.mode-btn:focus,
.control-btn:focus,
.convert-btn:focus,
.copy-btn:focus,
.example-item:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.input-textarea:focus {
    outline: none;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .converter-card {
        border: 2px solid #000;
    }

    .input-textarea {
        border: 2px solid #000;
    }

    .mode-btn.active {
        background: #000;
        color: #fff;
    }
}
</pre></body></html>