/* --- Main Wrapper --- */
.uifc-wrapper-modern {
    max-width: 1000px;
    margin: 30px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* --- Header --- */
.uifc-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.uifc-header h2 {
    color: #2c3e50;
    margin: 0;
    font-size: 24px;
}

/* --- Font Selector --- */
.uifc-font-selector {
    text-align: center;
    margin-bottom: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.uifc-modern-select {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    margin-top: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* --- Editor Grid --- */
.uifc-editor-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .uifc-editor-modern {
        grid-template-columns: 1fr;
    }
}

/* --- Card & Textarea --- */
.uifc-card {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.uifc-card-header {
    background: #f1f1f1;
    padding: 12px 15px;
    font-weight: 600;
    color: #444;
    border-bottom: 1px solid #e1e1e1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.uifc-card textarea {
    width: 100%;
    height: 250px;
    padding: 15px;
    border: none;
    resize: vertical;
    font-size: 16px;
    line-height: 1.6;
}

/* --- Buttons --- */
.uifc-button-group {
    padding: 10px;
    background: #fafafa;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid #eee;
}

.uifc-button-group button, .btn-convert {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.2s;
}

.btn-convert { background: #0073aa; color: #fff; }
.btn-convert:hover { background: #005177; }

.btn-copy { background: #46b450; color: #fff; }
.btn-copy:hover { background: #348a3b; }

.btn-clear { background: #d63638; color: #fff; }
.btn-clear:hover { background: #a4292b; }

/* --- Bulk File Converter (Simple Look) --- */
.uifc-file-upload-modern {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e1e1e1;
    text-align: center;
}

.uifc-file-direction {
    margin: 15px 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 14px;
}

.file-radio {
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.file-radio input { margin-bottom: 5px; }

.file-radio small {
    color: #888;
    font-size: 11px;
}

.uifc-file-controls {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#uifc-file-input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#uifc-download-link a {
    text-decoration: none;
    background: #2271b1;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 15px;
}