/* Base64 Encoder/Decoder Specific Styles */

/* Gradient Text for Tool Title */
.gradient-text-base64 {
    background: linear-gradient(135deg, #8b5cf6, #a855f7, #d946ef);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 2.5rem;
    font-weight: 700;
}

/* Tab styling */
.tab-btn {
    transition: all 0.3s ease;
}

.tab-btn.active {
    background-color: #8b5cf6;
    color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tab-btn:not(.active):hover {
    background-color: rgba(139, 92, 246, 0.1);
}

/* Input and output text areas */
textarea {
    resize: none;
    transition: all 0.2s ease;
    line-height: 1.5;
}

textarea:focus {
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

textarea::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

textarea::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

textarea::-webkit-scrollbar-thumb {
    background: #c4b5fd;
    border-radius: 4px;
}

textarea::-webkit-scrollbar-thumb:hover {
    background: #a78bfa;
}

/* Button hover effects */
button:not([disabled]):hover,
.button:not([disabled]):hover {
    transform: translateY(-1px);
}

button:not([disabled]):active,
.button:not([disabled]):active {
    transform: translateY(0);
}

#encode-btn, #decode-btn, #process-file-btn, #download-file-link {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Copy button animation */
.copy-btn-success {
    color: #047857;
}

/* File upload area */
#file-upload-container label:hover {
    border-color: #8b5cf6;
}

#file-upload-container label:active {
    background-color: rgba(139, 92, 246, 0.05);
}

/* File drag and drop effects */
.file-drag-over {
    background-color: rgba(139, 92, 246, 0.05);
    border-color: #8b5cf6 !important;
}

/* Copy success animation */
@keyframes fadeOutUp {
    from {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
    to {
        opacity: 0;
        transform: translate3d(0, -20px, 0);
    }
}

.copy-message {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #059669;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    animation: fadeOutUp 1.5s forwards;
    white-space: nowrap;
    z-index: 10;
}

/* Loading animation */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-icon {
    animation: rotate 1s linear infinite;
}

/* Custom checkbox styling for URL-safe option */
.form-checkbox {
    cursor: pointer;
}

.form-checkbox:checked {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
}

/* Transition effects for tab switching */
.mode-container {
    transition: opacity 0.3s ease;
}

.mode-container.hidden {
    display: none;
}

/* Error message styling */
.error-shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

/* File result container transitions */
#file-result-container {
    transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gradient-text-base64 {
        font-size: 2rem;
    }
    
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    #encode-btn, #decode-btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .tab-btn {
        font-size: 0.75rem;
    }
    
    textarea {
        font-size: 0.875rem;
    }
} 