/**
 * Base64 Decoder Styles
 */

.base64-decoder-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.base64-decoder-container h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid #9b59b6;
    padding-bottom: 10px;
}

.base64-input-section,
.base64-output-section {
    margin-bottom: 20px;
}

.base64-input-section label,
.base64-output-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
    font-size: 14px;
}

.base64-input-section textarea,
.base64-output-section textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fafafa;
}

.base64-input-section textarea:focus,
.base64-output-section textarea:focus {
    outline: none;
    border-color: #9b59b6;
    box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.1);
    background: #ffffff;
}

.base64-output-section textarea {
    background: #f8f9fa;
    color: #495057;
    cursor: pointer;
}

.base64-output-section textarea:hover {
    background: #e9ecef;
}

.base64-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.base64-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 140px;
}

#encode-base64 {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
}

#encode-base64:hover {
    background: linear-gradient(135deg, #8e44ad, #7d3c98);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.3);
}

#decode-base64 {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: white;
}

#decode-base64:hover {
    background: linear-gradient(135deg, #d35400, #ba4a00);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

#clear-base64 {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

#clear-base64:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.base64-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.base64-status {
    padding: 12px 16px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    margin-top: 15px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.base64-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.base64-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.base64-status.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .base64-decoder-container {
        margin: 10px;
        padding: 15px;
    }
    
    .base64-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .base64-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .base64-input-section textarea,
    .base64-output-section textarea {
        min-height: 120px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .base64-decoder-container h3 {
        font-size: 20px;
    }
    
    .base64-input-section textarea,
    .base64-output-section textarea {
        min-height: 100px;
        padding: 12px;
        font-size: 12px;
    }
    
    .base64-btn {
        padding: 10px 20px;
        font-size: 13px;
        min-width: 120px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .base64-decoder-container {
        background: #2c3e50;
        color: #ecf0f1;
    }
    
    .base64-decoder-container h3 {
        color: #ecf0f1;
        border-bottom-color: #9b59b6;
    }
    
    .base64-input-section label,
    .base64-output-section label {
        color: #bdc3c7;
    }
    
    .base64-input-section textarea,
    .base64-output-section textarea {
        background: #34495e;
        border-color: #7f8c8d;
        color: #ecf0f1;
    }
    
    .base64-input-section textarea:focus,
    .base64-output-section textarea:focus {
        background: #2c3e50;
        border-color: #9b59b6;
    }
    
    .base64-output-section textarea {
        background: #34495e;
        color: #bdc3c7;
    }
    
    .base64-output-section textarea:hover {
        background: #3a4a5c;
    }
} 