/* Estilo Premium e Moderno */
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --success: #10b981;
    --danger: #ef4444;
    --bg-card: #ffffff;
    --bg-body: #f3f4f6;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Dashboard Container */
.df-dashboard {
    background: var(--bg-body);
    padding: 2rem;
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    max-width: 1200px;
    margin: 0 auto;
}

.df-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.df-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}
.status-badge.open { background: #dbeafe; color: #1e40af; }
.status-badge.locked { background: #fee2e2; color: #991b1b; }

/* Panels */
.df-config-panel, .df-share-panel, .df-entries-panel {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.df-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.df-checkbox-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.df-checkbox-card:hover {
    border-color: var(--primary);
    background: #eff6ff;
}

.df-checkbox-card input {
    margin-right: 0.75rem;
    transform: scale(1.2);
}

/* Buttons */
.df-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.df-btn.primary { background: var(--primary); color: white; }
.df-btn.primary:hover { background: var(--primary-dark); }
.df-btn.danger { background: var(--danger); color: white; width: 100%; font-size: 1.1rem; }
.df-btn.success { background: var(--success); color: white; width: 100%; }

/* Share Box */
.df-copy-box {
    display: flex;
    gap: 0.5rem;
}

.df-copy-box input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f9fafb;
}

/* Table */
.table-responsive {
    overflow-x: auto;
}

.df-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.df-table th, .df-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.df-table th {
    background: #f9fafb;
    font-weight: 600;
    color: var(--text-muted);
}

.df-thumb {
    width: 40px;
    height: 53px; /* 3x4 ratio approx */
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border);
}

/* External Form Styles */
.df-external-form-container {
    max-width: 600px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.df-photo-section {
    text-align: center;
    margin-bottom: 2rem;
    border: 2px dashed var(--border);
    padding: 2rem;
    border-radius: var(--radius);
}

.crop-container {
    max-width: 100%;
    height: 400px;
    margin: 1rem 0;
}

.df-input-group {
    margin-bottom: 1rem;
}

.df-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.df-input-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
}

#cropped-result img {
    max-width: 150px;
    border-radius: 8px;
    margin-top: 1rem;
    box-shadow: var(--shadow);
}
