/* Base64 Tool Specific CSS */
.tab-btn.active {
    background: linear-gradient(135deg, #7209b7, #f72585);
    box-shadow: 0 5px 15px rgba(247, 37, 133, 0.3);
}

.codec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 10px;
}

.input-col, .output-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.panel-label {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.output-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.compact-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
}

.compact-btn.copied {
    background: #27c93f;
    color: white;
}

.text-input {
    height: 250px !important;
}

/* File Mode Specifics */
.file-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--surface-border);
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 15px;
}

#file-details {
    font-weight: 500;
    word-break: break-all;
}

.file-options-bar {
    margin-bottom: 20px;
}

/* Checkbox Styling */
.checkbox-container {
    display: block;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-secondary);
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid var(--surface-border);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--accent-color);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #f72585;
    border-color: #f72585;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

@media (max-width: 768px) {
    .codec-grid {
        grid-template-columns: 1fr;
    }
    
    .text-input {
        height: 180px !important;
    }
}
