/* CSS Stylesheet for Text Files Converter WordPress Plugin */
.tfc-plugin-container * {
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.tfc-plugin-container {
    width: 100%;
    min-height: 80vh;
    background-color: #eef2f5;
    color: #1a1a1a;
    padding: 0;
    margin: 20px auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    overflow: hidden;
}

/* Header bar with name perfectly centered and text color deep dark */
.tfc-header {
    background-color: #ffffff;
    padding: 20px;
    border-bottom: 2px solid #e2e8f0;
    text-align: center;
    width: 100%;
}

.tfc-title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: #111111;
    letter-spacing: -0.5px;
}

/* Workspace Panels */
.tfc-workspace {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    width: 100%;
}

.tfc-panel {
    flex: 1 1 500px;
    padding: 25px;
    background-color: #f8fafc;
}

.tfc-control-panel {
    border-right: 1px solid #e2e8f0;
}

.tfc-preview-panel {
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
}

.tfc-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Drag & Drop Zone */
.tfc-dropzone {
    border: 2px dashed #cbd5e1;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 20px;
}

.tfc-dropzone:hover, .tfc-dropzone.dragover {
    border-color: #39FF14;
    background-color: #f4ffe6;
}

.tfc-dropzone svg {
    stroke: #64748b;
    margin-bottom: 10px;
}

.tfc-dropzone p {
    margin: 0 0 6px 0;
    font-size: 15px;
    color: #475569;
}

.tfc-dropzone p span {
    color: #111111;
    font-weight: 600;
    text-decoration: underline;
}

.tfc-formats-label {
    font-size: 11px;
    color: #94a3b8;
    display: block;
}

/* File List UI */
.tfc-file-list {
    margin-bottom: 20px;
    max-height: 120px;
    overflow-y: auto;
}

.tfc-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 13px;
}

.tfc-file-item .tfc-file-remove {
    color: #ef4444;
    cursor: pointer;
    font-weight: bold;
}

/* Form Settings Layout */
.tfc-form-group {
    margin-bottom: 18px;
}

.tfc-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.tfc-select, .tfc-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: #ffffff;
    font-size: 14px;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.2s;
}

.tfc-select:focus, .tfc-input:focus {
    border-color: #94a3b8;
}

.tfc-inline-inputs {
    display: flex;
    gap: 10px;
}

/* Case Transformation Button Option Groups */
.tfc-btn-group {
    display: flex;
    gap: 8px;
}

.tfc-opt-btn {
    flex: 1;
    padding: 8px 10px;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.tfc-opt-btn:hover {
    background-color: #f1f5f9;
}

.tfc-opt-btn.active {
    background-color: #111111;
    color: #ffffff;
    border-color: #111111;
}

/* Cleaners checkboxes */
.tfc-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tfc-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
}

/* Primary Action Buttons styled in crisp Light Neon Green */
.tfc-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.tfc-primary-btn {
    flex: 1;
    background-color: #39FF14;
    color: #111111;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform 0.1s, background-color 0.2s;
    text-align: center;
}

.tfc-primary-btn:hover {
    background-color: #32e610;
}

.tfc-primary-btn:active {
    transform: scale(0.98);
}

.tfc-primary-btn:disabled {
    background-color: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

/* Secondary Button styling */
.tfc-secondary-btn {
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    color: #475569;
}

.tfc-secondary-btn:hover {
    background-color: #e2e8f0;
}

/* Preview Tabs Layout */
.tfc-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.tfc-tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 15px;
}

.tfc-tab-link {
    padding: 10px 16px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
}

.tfc-tab-link.active {
    color: #111111;
    border-bottom-color: #39FF14;
    font-weight: 600;
}

.tfc-tab-content {
    display: none;
    flex-grow: 1;
}

.tfc-tab-content.active {
    display: flex;
}

.tfc-textarea {
    width: 100%;
    min-height: 380px;
    flex-grow: 1;
    padding: 15px;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #334155;
    resize: none;
    outline: none;
}

.tfc-textarea[readonly] {
    cursor: default;
}

/* Responsiveness auto-adjusting on every device */
@media (max-width: 992px) {
    .tfc-workspace {
        flex-direction: column;
    }
    .tfc-panel {
        border-right: none;
    }
    .tfc-control-panel {
        border-bottom: 1px solid #e2e8f0;
    }
    .tfc-textarea {
        min-height: 260px;
    }
}
