.df-admin-console {
    max-width: 1400px;
    margin: 20px auto;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.df-header {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.df-header h2 {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 300;
}

.df-navigation {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.df-nav-button {
    padding: 10px 20px;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 14px;
}

.df-nav-button:hover {
    background: linear-gradient(135deg, #5a6268 0%, #343a40 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.df-nav-button.active {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.df-nav-button.active:hover {
    background: linear-gradient(135deg, #0069d9 0%, #004085 100%);
}

.df-controls {
    display: flex;
    gap: 15px;
    align-items: end;
    flex-wrap: wrap;
}

.df-dropdown-wrapper {
    flex: 1;
    min-width: 200px;
}

.df-dropdown-wrapper label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: white;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.df-dropdown-wrapper select {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    font-size: 14px;
    background: rgba(255,255,255,0.1);
    color: white;
    backdrop-filter: blur(10px);
}

.df-dropdown-wrapper select option {
    background: #343a40;
    color: white;
}

.df-button-group {
    display: flex;
    gap: 10px;
}

.df-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.df-refresh-btn {
    background: linear-gradient(135deg, #0073aa 0%, #005177 100%);
    color: white;
}

.df-export-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.df-copy-prompt-btn {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    padding: 12px 16px;
    min-width: auto;
}

.df-copy-prompt-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #5a6268 0%, #343a40 100%);
}

.df-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.df-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.df-analytics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.df-analytics-section {
    padding: 15px;
    border-radius: 6px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.df-analytics-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #495057;
}

.df-analytics-item {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
    font-size: 14px;
}

.df-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.df-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
}

.df-legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.df-search-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    padding: 15px;
    background: rgba(0,0,0,0.02);
    border-radius: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.df-search-input, .df-filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 150px;
}

.df-search-input {
    min-width: 200px;
}

.df-filter-label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.df-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.df-field-card {
    border: 2px solid;
    border-radius: 10px;
    padding: 18px;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.df-field-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* Updated Color Scheme */
.df-field-card.status-unverified {
    border-color: #6c757d;
    background: rgba(108, 117, 125, 0.05);
}

.df-field-card.status-verified {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}

.df-field-card.status-locked {
    border-color: #ffc107;
    background: rgba(255, 193, 7, 0.05);
}

.df-field-card.status-rejected, .df-field-card.status-empty {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.df-field-header {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
    position: relative;
    padding-right: 150px; /* Space for floating bubbles */
}

.df-field-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
    box-sizing: border-box;
}

.df-field-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: 'Courier New', monospace;
    line-height: 1.4;
}


.df-field-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.df-field-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    flex: 1;
    min-width: 70px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.df-btn-update {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.df-btn-verify {
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
    color: white;
}

.df-btn-lock {
    background: linear-gradient(135deg, #343a40 0%, #495057 100%);
    color: white;
}

.df-btn-reject {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.df-field-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.df-field-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.df-field-metadata {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

.df-metadata-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

.df-bubble {
    padding: 2px 6px;
    border-radius: 8px;
    line-height: 1.4;
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-block;
    white-space: nowrap;
    max-width: 120px;
    text-align: center;
}

.df-last-modified {
    background:#6c757d80;
    color: white;
}

.df-current-status.status-unverified {
    background: #6c757d80;
    color: white;
}

.df-current-status.status-verified {
    background: #28a74580;
    color: white;
}

.df-current-status.status-locked {
    background: #ff8c0080;
    color: white;
}

.df-current-status.status-rejected {
    background: #dc354580;
    color: white;
}

.df-source {
    background: #17a2b880;
    color: white;
}

.df-source a {
    color: #fff !important;
    text-decoration: underline;
}

.df-source a:hover {
    color: #f0f0f0 !important;
    text-decoration: underline;
}

.df-loading {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #666;
}

.df-error {
    background: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

.df-success {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

@media (max-width: 768px) {
    .df-dropdown-container {
        flex-direction: column;
    }

    .df-data-grid {
        grid-template-columns: 1fr;
    }

    .df-field-buttons {
        flex-direction: column;
    }

    .df-field-btn {
        flex: none;
    }
}

/* AdminFields Specific Styles */
.df-admin-fields {
    max-width: 1400px;
    margin: 20px auto;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.df-fields-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin: 20px 0;
}

.df-fields-table th {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.df-fields-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.df-fields-table tr:hover {
    background-color: #f8f9fa;
}

.df-field-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.df-delete-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.df-delete-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
}

.df-category-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.df-category-hierarchy-container {
    margin: 15px 0;
}

.df-category-hierarchy-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.df-category-hierarchy-table th {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
}

.df-category-hierarchy-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #e9ecef;
}

.df-category-hierarchy-table tr:hover {
    background-color: #f8f9fa;
}

.df-category-parent-select {
    width: 100%;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.df-delete-category-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.df-delete-category-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
}

.df-category-add-section {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-top: 10px;
}

.df-category-add-section input,
.df-category-add-section select {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.df-category-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-family: monospace;
    min-height: 60px;
}

.df-done-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.df-done-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

.df-submit-section {
    text-align: center;
    margin: 30px 0;
}

.df-submit-btn {
    background: linear-gradient(135deg, #0073aa 0%, #005177 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.df-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 115, 170, 0.3);
}

.df-add-field-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-top: 4px solid #17a2b8;
}

.df-add-field-title {
    font-size: 18px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.df-add-field-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    gap: 15px;
    align-items: end;
}

.df-form-group {
    display: flex;
    flex-direction: column;
}

.df-form-label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #495057;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.df-form-input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.df-add-btn {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.df-add-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(23, 162, 184, 0.3);
}

.df-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.df-popup.hidden {
    display: none;
}

.df-popup-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    text-align: center;
}

.df-popup-title {
    font-size: 20px;
    font-weight: 700;
    color: #dc3545;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.df-popup-message {
    margin: 20px 0;
    line-height: 1.6;
    color: #495057;
}

.df-popup-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    margin: 15px 0;
    text-align: center;
}

.df-popup-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.df-popup-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.df-popup-btn.cancel {
    background: #6c757d;
    color: white;
}

.df-popup-btn.confirm {
    background: #dc3545;
    color: white;
}

.df-popup-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .df-add-field-form {
        grid-template-columns: 1fr;
    }
}

/* AdminContent Specific Styles */
.df-admin-content {
    max-width: 1600px;
    margin: 20px auto;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.df-content-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.df-content-header {
    background: linear-gradient(135deg, #6610f2 0%, #5a0ed9 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(102,16,242,0.2);
}

.df-content-header h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 300;
}

.df-content-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #dee2e6;
}

.df-tab-button {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
}

.df-tab-button:hover {
    color: #495057;
    background: rgba(0,0,0,0.02);
}

.df-tab-button.active {
    color: #6610f2;
    border-bottom-color: #6610f2;
    background: rgba(102,16,242,0.05);
}

.df-tab-content {
    display: none;
}

.df-tab-content.active {
    display: block;
}

.df-generation-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.df-datakey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.df-datakey-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #dee2e6;
}

.df-datakey-card h4 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 16px;
}

.df-field-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
}

.df-field-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
}

.df-field-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.df-field-checkbox label {
    cursor: pointer;
    font-size: 13px;
    color: #495057;
}

/* Modify Content Comparison Grid */
.df-modify-comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.df-comparison-card {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    position: relative;
}

.df-comparison-card.approved {
    border-color: #28a745;
    background: #f0fff4;
}

.df-comparison-card.rejected {
    border-color: #dc3545;
    background: #fff5f5;
}

.df-comparison-card h5 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.df-comparison-content {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    max-height: 300px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
}

.df-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dee2e6;
}

.df-section-header h4 {
    margin: 0;
    color: #495057;
}

.df-section-actions {
    display: flex;
    gap: 10px;
}

.df-section-approve-btn,
.df-section-reject-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.df-section-approve-btn {
    background: #28a745;
    color: white;
}

.df-section-approve-btn:hover {
    background: #218838;
}

.df-section-approve-btn.active {
    background: #155724;
}

.df-section-reject-btn {
    background: #dc3545;
    color: white;
}

.df-section-reject-btn:hover {
    background: #c82333;
}

.df-section-reject-btn.active {
    background: #bd2130;
}

/* Field Selection Table Styles */
.df-field-selection-controls {
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.df-advanced-filters {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.df-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 150px;
}

.df-filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: #495057;
}

.df-filter-group select {
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 13px;
}

.df-filter-btn {
    padding: 6px 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}

.df-filter-btn:hover {
    background: #0056b3;
}

.df-bulk-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.df-bulk-btn {
    padding: 8px 16px;
    border: 1px solid #ced4da;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.df-bulk-btn:hover {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

.df-expand-btn {
    background: #28a745;
    color: white;
    border: none;
}

.df-expand-btn:hover {
    background: #218838;
}

.df-fields-table-container {
    overflow-x: auto;
    margin-top: 10px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

.df-fields-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.df-fields-table thead th {
    background: #6610f2;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.df-fields-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #dee2e6;
    font-size: 13px;
    color: #495057;
}

.df-fields-table tbody tr:hover {
    background: #f8f9fa;
}

.df-fields-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.df-fields-table .df-field-name {
    font-weight: 600;
    color: #212529;
}

.df-fields-table .column-hidden {
    display: none;
}

.df-fields-table.expanded .column-hidden {
    display: table-cell;
}

.df-prompt-display {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    max-height: 300px;
    overflow-y: auto;
}

.df-generate-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(40,167,69,0.3);
    transition: all 0.3s ease;
    display: block;
    margin: 20px auto;
}

.df-generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40,167,69,0.4);
}

.df-generate-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.df-preview-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    border: 2px solid #6610f2;
    margin-top: 20px;
}

.df-preview-title {
    font-size: 32px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 15px;
    line-height: 1.3;
}

.df-preview-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.df-preview-tags,
.df-preview-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.df-tag, .df-category {
    background: #6610f2;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.df-category {
    background: #20c997;
}

.df-preview-excerpt {
    background: #f8f9fa;
    padding: 15px;
    border-left: 4px solid #6610f2;
    margin-bottom: 20px;
    font-style: italic;
    color: #495057;
}

.df-preview-content {
    line-height: 1.8;
    color: #212529;
}

.df-preview-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.df-action-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.df-action-btn.publish {
    background: #28a745;
    color: white;
}

.df-action-btn.comment {
    background: #ffc107;
    color: #212529;
}

.df-action-btn.discard {
    background: #dc3545;
    color: white;
}

.df-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.df-template-manager,
.df-cron-manager {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 3px solid #dee2e6;
}

.df-template-form,
.df-cron-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.df-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.df-form-group.full-width {
    grid-column: 1 / -1;
}

.df-form-group label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.df-form-group input,
.df-form-group select,
.df-form-group textarea {
    padding: 10px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
}

.df-form-group textarea {
    min-height: 100px;
    font-family: 'Courier New', monospace;
}

.df-cron-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.df-cron-table th,
.df-cron-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.df-cron-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.df-cron-table tr:hover {
    background: #f8f9fa;
}

.df-status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.df-status-badge.active {
    background: #28a745;
    color: white;
}

.df-status-badge.disabled {
    background: #6c757d;
    color: white;
}

.df-status-badge.error {
    background: #dc3545;
    color: white;
}

.df-comment-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.df-comment-popup.hidden {
    display: none;
}

.df-comment-popup-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.df-comment-popup textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    margin: 15px 0;
}

.df-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
}

.df-loading-overlay.hidden {
    display: none;
}

.df-loading-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
}

.df-spinner, .df-loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #6610f2;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.df-revision-count {
    background: #ffc107;
    color: #212529;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}
/* REST API Specific Styles */
.df-rest-api-container {
    max-width: 1600px;
    margin: 20px auto;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.df-rest-api-title {
    font-size: 32px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 25px;
    text-align: center;
}

.df-rest-api-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.df-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dee2e6;
}

.df-section-description {
    color: #6c757d;
    margin-bottom: 15px;
    font-size: 14px;
}

.df-api-key-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #dee2e6;
}

.df-api-key-row {
    margin-bottom: 15px;
}

.df-api-key-row label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 14px;
}

.df-api-key-display {
    display: flex;
    gap: 10px;
    align-items: center;
}

.df-api-key-display input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ced4da;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    background: white;
}

.df-btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.df-btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #343a40 100%);
}

.df-btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.df-btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
}

.df-btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.df-btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
}

.df-btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.df-btn-primary:hover {
    background: linear-gradient(135deg, #0069d9 0%, #004085 100%);
}

.df-api-key-info {
    margin-top: 15px;
    padding: 12px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
}

.df-api-key-info p {
    margin: 5px 0;
    font-size: 13px;
    color: #856404;
}

.df-api-key-info code {
    background: #495057;
    color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.df-permissions-controls,
.df-logs-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.df-select {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.df-permissions-table-container,
.df-logs-table-container {
    overflow-x: auto;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

.df-permissions-table,
.df-logs-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.df-permissions-table th,
.df-logs-table th {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.df-permissions-table td,
.df-logs-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
    font-size: 14px;
    color: #495057;
}

.df-permissions-table tr:hover,
.df-logs-table tr:hover {
    background: #f8f9fa;
}

.df-permissions-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.df-log-status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.df-log-status-badge.success {
    background: #28a745;
    color: white;
}

.df-log-status-badge.error {
    background: #dc3545;
    color: white;
}

.df-log-details-btn {
    padding: 4px 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.df-log-details-btn:hover {
    background: #0056b3;
}

.df-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.df-modal.hidden {
    display: none;
}

.df-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.df-modal-small {
    max-width: 500px;
}

.df-modal-header {
    padding: 20px 25px;
    border-bottom: 2px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.df-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #495057;
}

.df-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #6c757d;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.df-modal-close:hover {
    color: #dc3545;
}

.df-modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

.df-modal-footer {
    padding: 15px 25px;
    border-top: 2px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.df-log-detail-item {
    margin-bottom: 15px;
}

.df-log-detail-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    font-size: 13px;
    text-transform: uppercase;
}

.df-log-detail-value {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 200px;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .df-permissions-controls,
    .df-logs-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .df-select {
        width: 100%;
    }
}
