/* Base64 Encoder/Decoder - Modern Design System */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: #F8F9FA;
    color: #374151;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Tool Header */
.tool-header {
    background: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 12px !important;
    padding: 32px !important;
    margin-bottom: 32px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    text-align: center !important;
    font-family: inherit !important;
}

.back-btn {
    display: inline-flex !important;
    align-items: center !important;
    padding: 12px 20px !important;
    background: #6366F1 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    margin-bottom: 20px !important;
    transition: all 0.2s ease !important;
    border: none !important;
    min-height: 44px !important;
    font-family: inherit !important;
}

.back-btn:hover {
    background: #5B21B6 !important;
    transform: translateY(-1px) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3) !important;
}

.tool-header h1 {
    color: #111827 !important;
    font-size: 2.25rem !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
    font-family: inherit !important;
}

.tool-description {
    color: #6B7280 !important;
    font-size: 1.125rem !important;
    margin: 0 !important;
    font-family: inherit !important;
}

/* Tool Interface Layout */
.tool-interface {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

/* Generator Section */
.generator-section {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    width: 100%;
    grid-column: 1 / -1;
}

.generator-controls {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
    margin-bottom: 24px;
    align-items: start;
}

.generation-type label {
    display: block;
    color: #374151;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
    font-family: inherit;
}

#operationType {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    background: #FFFFFF;
    color: #374151;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

#operationType:focus {
    outline: none;
    border-color: #6366F1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.encoding-options {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.option-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    color: #374151;
    font-family: inherit;
}

.option-checkbox input[type="checkbox"] {
    margin: 0;
}

.input-output-section {
    display: grid;
    grid-template-columns: 2fr auto 2fr;
    gap: 20px;
    align-items: start;
}

.input-container,
.output-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-container label,
.output-container label {
    font-weight: 600;
    color: #374151;
    font-size: 1rem;
    font-family: inherit;
}

#inputText,
#outputText {
    width: 100%;
    min-height: 250px;
    padding: 20px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    resize: vertical;
    background: #FFFFFF;
    color: #374151;
    transition: all 0.2s ease;
}

#inputText:focus {
    outline: none;
    border-color: #6366F1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

#outputText {
    background: #F9FAFB;
}

.conversion-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    align-items: center;
    padding: 12px 8px;
    min-width: 140px;
}

.process-btn,
.swap-btn,
.clear-btn {
    background: #6366F1;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
    min-width: 120px;
}

.process-btn:hover,
.swap-btn:hover,
.clear-btn:hover {
    background: #5B5FE8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.swap-btn {
    background: #6B7280;
    min-width: auto;
    padding: 8px 12px;
}

.swap-btn:hover {
    background: #5B6470;
}

.clear-btn {
    background: #EF4444;
}

.clear-btn:hover {
    background: #DC2626;
}

.output-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.copy-btn,
.download-btn {
    background: #10B981;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

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

@media (max-width: 768px) {
    .generator-controls {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .input-output-section {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .conversion-controls {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 8px 0;
    }
    
    .encoding-options {
        justify-content: center;
    }
}

/* Mode Selection */
.mode-section {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mode-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.mode-btn {
    background: #F9FAFB;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 200px;
    font-family: inherit;
}

.mode-btn:hover {
    background: #F3F4F6;
    border-color: #9CA3AF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mode-btn.active {
    background: #6366F1;
    color: #ffffff;
    border-color: #6366F1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Input/Output Sections */
.input-section,
.output-section {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
    .tool-interface {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    
    .mode-section {
        grid-column: 1 / -1;
    }
    
    .file-section,
    .examples-section,
    .tips-section,
    .use-cases-section,
    .shortcuts-section {
        grid-column: 1 / -1;
    }
}

/* Section Headers */
.section-header {
    margin-bottom: 16px;
    border-bottom: 1px solid #E5E7EB;
    padding-bottom: 8px;
}

.section-header h2 {
    margin: 0;
    color: #111827;
    font-size: 1.25rem;
    font-weight: 600;
    font-family: inherit;
}

.section-header p {
    margin: 4px 0 0 0;
    color: #6B7280;
    font-size: 0.875rem;
    font-family: inherit;
}

/* Controls */
.input-controls,
.output-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.action-btn {
    background: #F9FAFB;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
    min-height: 36px;
}

.action-btn:hover {
    background: #F3F4F6;
    border-color: #9CA3AF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.action-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.action-btn.primary {
    background: #6366F1;
    color: #ffffff;
    border-color: #6366F1;
}

.action-btn.primary:hover {
    background: #5B21B6;
    border-color: #5B21B6;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.action-btn.success {
    background: #10B981;
    color: #ffffff;
    border-color: #10B981;
}

.action-btn.success:hover {
    background: #059669;
    border-color: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.file-btn {
    position: relative;
    overflow: hidden;
}

/* Encoding Options */
.encoding-options {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
    user-select: none;
    font-family: inherit;
}

.option-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    background: #FFFFFF;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.option-label input[type="checkbox"]:checked + .checkmark {
    background: #6366F1;
    border-color: #6366F1;
}

.option-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 3px;
    color: #ffffff;
    font-weight: bold;
    font-size: 14px;
}

/* Text Input/Output Areas */
.text-input-container,
.text-output-container {
    position: relative;
}

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

.textarea-header .label {
    color: #374151;
    font-weight: 500;
    font-size: 0.875rem;
    font-family: inherit;
}

.input-stats,
.output-stats {
    color: #6B7280;
    font-size: 0.75rem;
    font-family: inherit;
}

#text-input,
#text-output {
    width: 100%;
    min-height: 200px;
    padding: 16px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    line-height: 1.5;
    resize: vertical;
    transition: all 0.2s ease;
    background: #FFFFFF;
    color: #374151;
}

#text-input:focus,
#text-output:focus {
    outline: none;
    border-color: #6366F1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

#text-output {
    background: #F9FAFB;
}

/* File Section */
.file-section {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

.file-drop-zone {
    border: 2px dashed #D1D5DB;
    border-radius: 8px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
    background: #F9FAFB;
}

.file-drop-zone:hover,
.file-drop-zone.dragover {
    border-color: #6366F1;
    background: #F0F9FF;
    transform: scale(1.02);
}

.drop-zone-content {
    color: #6B7280;
}

.drop-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    color: #9CA3AF;
}

.drop-zone-content h3 {
    color: #374151;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: inherit;
}

.drop-zone-content p {
    color: #6B7280;
    margin-bottom: 16px;
    font-family: inherit;
}

.browse-btn {
    background: #6366F1;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.browse-btn:hover {
    background: #5B21B6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Additional File Section Styles */
.drop-content {
    color: #6B7280;
}

.drop-content h4 {
    color: #374151;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 16px 0 8px 0;
    font-family: inherit;
}

.drop-content p {
    color: #6B7280;
    margin-bottom: 16px;
    font-family: inherit;
}

.file-results {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.file-results label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-family: inherit;
}

#fileOutput {
    width: 100%;
    min-height: 150px;
    padding: 16px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    background: #F9FAFB;
    color: #374151;
    resize: vertical;
    word-break: break-all;
}

.file-result-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.process-file-btn,
.remove-file-btn {
    background: #6366F1;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.process-file-btn:hover {
    background: #5B5FE8;
    transform: translateY(-1px);
}

.remove-file-btn {
    background: #EF4444;
}

.remove-file-btn:hover {
    background: #DC2626;
    transform: translateY(-1px);
}

.file-section h3 {
    color: #111827;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    font-family: inherit;
}

/* Quick Actions Styles */
.quick-actions {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-top: 24px;
}

.quick-actions h3 {
    color: #111827;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    font-family: inherit;
}

.quick-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.quick-btn {
    background: #F9FAFB;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.quick-btn:hover {
    background: #F3F4F6;
    border-color: #6366F1;
    color: #6366F1;
    transform: translateY(-1px);
}

/* Additional Section Styles */
.use-cases-section h3,
.features-section h3,
.how-to-use-section h3,
.shortcuts-section h3 {
    color: #111827;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    font-family: inherit;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.use-case {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 8px;
    padding: 12px 16px;
    color: #166534;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.feature-item {
    text-align: center;
    padding: 16px;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.feature-item h4 {
    color: #111827;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: inherit;
}

.feature-item p {
    color: #6B7280;
    font-size: 0.875rem;
    line-height: 1.5;
    font-family: inherit;
}

.steps-container {
    display: grid;
    gap: 16px;
}

.step-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.step-number {
    background: #6366F1;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
    font-family: inherit;
}

.step-content h4 {
    color: #111827;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    font-family: inherit;
}

.step-content p {
    color: #6B7280;
    font-size: 0.875rem;
    line-height: 1.5;
    font-family: inherit;
}

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

.shortcut {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.875rem;
    font-family: inherit;
}

.shortcut span {
    color: #6B7280;
    font-weight: 500;
}

/* File Info and Results */
.file-info {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
    display: none;
}

.file-info.active {
    display: block;
}

.file-details {
    margin-bottom: 16px;
}

.file-details span {
    display: block;
    color: #374151;
    font-size: 0.875rem;
    margin-bottom: 4px;
    font-family: inherit;
}

.file-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.file-result {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
    display: none;
}

.file-result.active {
    display: block;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #E5E7EB;
}

.result-header h4 {
    color: #111827;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    font-family: inherit;
}

.result-stats {
    color: #6B7280;
    font-size: 0.75rem;
    display: flex;
    gap: 16px;
    font-family: inherit;
}

.result-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

#file-result-text {
    width: 100%;
    min-height: 150px;
    padding: 12px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    line-height: 1.4;
    resize: vertical;
    background: #F9FAFB;
    color: #374151;
    word-break: break-all;
}

/* Additional Sections */
.examples-section,
.tips-section,
.use-cases-section,
.shortcuts-section {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

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

.example-card {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s ease;
}

.example-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.example-card h3 {
    color: #111827;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    font-family: inherit;
}

.example-content {
    margin-bottom: 12px;
}

.example-input,
.example-output {
    background: #FFFFFF;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    padding: 8px;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.75rem;
    margin-bottom: 8px;
    word-break: break-all;
}

.example-input strong,
.example-output strong {
    color: #374151;
    font-family: inherit;
}

.example-btn {
    background: #6366F1;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.example-btn:hover {
    background: #5B21B6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Tips and Other Grids */
.tips-grid,
.use-cases-grid,
.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.tip-card,
.use-case-card {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s ease;
}

.tip-card:hover,
.use-case-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tip-card h3,
.use-case-card h3 {
    color: #111827;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: inherit;
}

.tip-card p,
.use-case-card p {
    color: #6B7280;
    font-size: 0.875rem;
    margin: 0;
    font-family: inherit;
}

.use-case-card ul {
    color: #6B7280;
    font-size: 0.875rem;
    margin: 8px 0 0 16px;
    font-family: inherit;
}

.use-case-card li {
    margin-bottom: 4px;
}

.shortcut-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.2s ease;
}

.shortcut-item:hover {
    background: #F3F4F6;
    transform: translateY(-1px);
}

kbd {
    background: #374151;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    max-width: 300px;
    font-family: inherit;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    border-left: 4px solid #10B981;
    background: #F0FDF4;
}

.notification.error {
    border-left: 4px solid #EF4444;
    background: #FEF2F2;
}

.notification.info {
    border-left: 4px solid #6366F1;
    background: #F0F9FF;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tool-interface {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .mode-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .mode-btn {
        min-width: auto;
        padding: 12px 16px;
    }

    .input-controls,
    .output-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .action-btn {
        text-align: center;
    }

    .encoding-options {
        flex-direction: column;
        gap: 12px;
    }

    .examples-grid,
    .tips-grid,
    .use-cases-grid {
        grid-template-columns: 1fr;
    }

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

    .file-info {
        padding: 12px;
    }

    .file-actions,
    .result-actions {
        flex-direction: column;
    }

    .file-actions .action-btn,
    .result-actions .action-btn {
        text-align: center;
    }

    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .result-actions {
        width: 100%;
    }

    .result-actions .action-btn {
        flex: 1;
    }
}

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

    .notification {
        right: 12px;
        left: 12px;
        max-width: none;
        transform: translateY(-100px);
    }

    .notification.show {
        transform: translateY(0);
    }
}

@media (min-width: 481px) {
    .notification {
        right: 20px;
        max-width: 300px;
    }

    .notification.show {
        transform: translateX(0);
    }
} 