/**
 * Display Form Entries - Complete Styles
 */

/* ========================================
   BLOCK STYLES
   ======================================== */

/* Ensure blocks are visible */
.wp-block-displayformentries-entries,
.wp-block-displayformentries-entry,
.wp-block-displayformentries-form {
    display: block !important;
    visibility: visible !important;
}

/* Block fallback styling */
.dfe-block-fallback {
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    margin: 10px 0;
}

.dfe-block-fallback p {
    margin: 5px 0;
    color: #666;
}

/* ========================================
   CONTAINER STYLES
   ======================================== */

.dfe-container {
    margin: 20px 0;
    font-family: inherit;
}

.dfe-container-single {
    max-width: 800px;
    margin: 0 auto;
}

/* ========================================
   ERROR MESSAGES
   ======================================== */

.dfe-error {
    color: #dc3232;
    background: #fff;
    border-left: 4px solid #dc3232;
    padding: 12px;
    margin: 5px 0 15px 0;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
}

.dfe-no-entries {
    color: #666;
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* ========================================
   LIST VIEW STYLES
   ======================================== */

.dfe-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dfe-list-item {
    border: 1px solid #ddd;
    margin-bottom: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dfe-list-item:hover {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* List container and items */
.dfe-entries-list {
    margin: 20px 0;
}

.dfe-entry-item {
    border: 1px solid #ddd;
    margin-bottom: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
}

.dfe-entry-item:hover {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* ========================================
   TABLE VIEW STYLES
   ======================================== */

/* Table Container */
.dfe-table-container {
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Main Table */
.dfe-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 14px;
    line-height: 1.4;
}

.dfe-table th,
.dfe-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e1e5e9;
    vertical-align: top;
    background: #fafafa;
    color: #333;
    white-space: nowrap;
}

.dfe-table th {
    font-weight: 600;
}

.dfe-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    position: sticky;
    top: 0;
    z-index: 10;
}

.dfe-table th:first-child {
    border-top-left-radius: 8px;
}

.dfe-table th:last-child {
    border-top-right-radius: 8px;
}

/* Table Rows */
.dfe-entry-row {
    transition: background-color 0.2s ease;
}

.dfe-entry-row:hover {
    background-color: #e3f2fd;
}

/* Table Cells */
.dfe-field-cell {
    word-wrap: break-word;
    max-width: 300px;
}

/* Striped rows */
.dfe-table.dfe-striped tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.dfe-striped-row {
    background-color: #f8f9fa;
}

/* Hover effects */
.dfe-table.dfe-hover tbody tr:hover {
    background-color: #e3f2fd;
}

/* Compact table */
.dfe-table.dfe-compact th,
.dfe-table.dfe-compact td {
    padding: 8px 12px;
    font-size: 13px;
}

/* Sortable columns */
.dfe-table.dfe-sortable th.dfe-sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.dfe-table.dfe-sortable th.dfe-sortable:hover {
    background-color: #e9ecef;
}

.dfe-table th .dfe-sort-label,
.dfe-table th .dfe-sort-icon {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    vertical-align: middle;
}

.dfe-sort-icon {
    display: inline-flex;
    font-size: 12px;
    color: #6c757d;
    transition: transform 0.2s ease;
}

.dfe-sort-label {
    margin-right: 8px;
}

.dfe-table.dfe-sortable th.dfe-sortable:hover .dfe-sort-icon {
    color: #495057;
}

/* Clickable rows */
.dfe-table tbody tr.dfe-clickable {
    cursor: pointer;
}

.dfe-table tbody tr.dfe-clickable:hover {
    background-color: #e3f2fd;
}

.dfe-empty {
    opacity: 0.6;
    font-style: italic;
}

.dfe-table-pagination {
    padding: 12px 16px;
    font-size: 13px;
    color: #555;
    background: #fafafa;
    border-top: 1px solid #e6e6e6;
    border-radius: 0 0 10px 10px;
}

/* ========================================
   CARD VIEW STYLES
   ======================================== */

.dfe-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.dfe-card {
    border: 1px solid #ddd;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.dfe-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Card image */
.dfe-card-image {
    margin: -20px -20px 15px -20px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    max-height: 200px;
}

.dfe-card-image img {
    width: 100%;
    height: auto;
    display: block;
}

.dfe-card-image a {
    display: block;
}

/* Card title */
.dfe-card-title {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.3;
}

/* Card content */
.dfe-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dfe-card-content .dfe-field {
    margin-bottom: 10px;
    padding: 0;
    border: none;
}

.dfe-card-content .dfe-field-label {
    font-size: 12px;
    margin-bottom: 3px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dfe-card-content .dfe-field-value {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

/* Card edit link */
.dfe-card .dfe-edit-link {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    text-align: right;
}

/* Responsive cards */
@media (max-width: 768px) {
    .dfe-cards {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    .dfe-card {
        padding: 15px;
    }

    .dfe-card-image {
        margin: -15px -15px 10px -15px;
    }
}

@media (max-width: 600px) {

    .dfe-table th,
    .dfe-table td {
        padding: 10px 12px;
        font-size: 13px;
    }

    .dfe-edit-link-inline {
        padding: 4px 6px;
    }
}

@media (max-width: 480px) {
    .dfe-cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .dfe-card {
        padding: 12px;
    }

    .dfe-card-image {
        margin: -12px -12px 8px -12px;
    }

    .dfe-card-title {
        font-size: 1.1em;
        margin-bottom: 10px;
    }
}

/* Card grid variations */
.dfe-cards.dfe-cards-2 {
    grid-template-columns: repeat(2, 1fr);
}

.dfe-cards.dfe-cards-3 {
    grid-template-columns: repeat(3, 1fr);
}

.dfe-cards.dfe-cards-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {

    .dfe-cards.dfe-cards-2,
    .dfe-cards.dfe-cards-3,
    .dfe-cards.dfe-cards-4 {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {

    .dfe-cards.dfe-cards-2,
    .dfe-cards.dfe-cards-3,
    .dfe-cards.dfe-cards-4 {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   SINGLE ENTRY STYLES
   ======================================== */

.dfe-single {
    max-width: 800px;
    margin: 0 auto;
}

.dfe-single h2 {
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.dfe-single-item {
    margin-bottom: 20px;
}

/* -----------------------------------------------
   SINGLE ENTRY CARD – Modern Universal Layout
----------------------------------------------- */

.dfe-single-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    max-width: 800px;
    position: relative;
}

/* Header */
.dfe-single-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dfe-single-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

/* Fields */
.dfe-single-fields {
    margin-top: 10px;
}

.dfe-single-field-row {
    padding: 14px 0;
    border-bottom: 1px solid #f1f1f1;
}

.dfe-single-field-row:last-child {
    border-bottom: none;
}

/* Labels */
.dfe-single-field-row .dfe-field-label {
    color: #555;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
}

/* Values */
.dfe-single-field-row .dfe-field-value {
    color: #222;
    font-size: 16px;
    line-height: 1.5;
}

/* Edit button */
.dfe-single-edit-top,
.dfe-single-edit-bottom {
    text-align: right;
    margin-top: 15px;
}

.dfe-single-edit {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
}

.dfe-single-entry .dfe-edit-link {
    background: #f3f3f3;
    border: 1px solid #dcdcdc;
    padding: 7px 12px;
    border-radius: 6px;
    text-decoration: none !important;
    color: #333 !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.dfe-single-edit a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    border-radius: 6px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    text-decoration: none !important;
    transition: 0.2s ease;
}

.dfe-single-edit a:hover {
    background: #e9e9e9;
    border-color: #ccc;
}

.dfe-single-entry .dfe-edit-link:hover {
    background: #e9e9e9;
    border-color: #ccc;
}

.dfe-single-entry .dfe-edit-link img {
    width: 15px;
    height: 15px;
}

/* Mobile */
@media (max-width: 600px) {
    .dfe-single-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .dfe-single-title {
        font-size: 20px;
    }

    .dfe-single-card {
        padding: 18px;
    }
}

/* ========================================
   FIELD STYLES
   ======================================== */

.dfe-field {
    margin-bottom: 15px;
}

.dfe-field-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

.dfe-field-value {
    color: #666;
    line-height: 1.5;
}

.dfe-field-required {
    color: #dc3232;
}

.dfe-field-admin-only {
    color: #666;
    font-style: italic;
}

/* Field type specific styles */
.dfe-field-email a {
    color: #007cba;
    text-decoration: none;
}

.dfe-field-email a:hover {
    text-decoration: underline;
}

.dfe-field-url a,
.dfe-field-website a {
    color: #007cba;
    text-decoration: none;
    word-break: break-all;
}

.dfe-field-url a:hover,
.dfe-field-website a:hover {
    text-decoration: underline;
}

.dfe-field-fileupload a {
    display: inline-flex;
    align-items: center;
    color: #007cba;
    text-decoration: none;
    padding: 4px 8px;
    border: 1px solid #007cba;
    border-radius: 4px;
    font-size: 12px;
}

.dfe-field-fileupload a:hover {
    background-color: #007cba;
    color: #fff;
}

/* List field styles */
.dfe-list-field {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dfe-list-field li {
    padding: 2px 0;
}

.dfe-list-field li:last-child {
    border-bottom: none;
}

/* Empty field styling */
.dfe-empty {
    color: #6c757d;
    font-style: italic;
}

/* ========================================
   NAVIGATION STYLES
   ======================================== */

.dfe-back-link {
    margin-bottom: 20px;
}

.dfe-back-link a {
    display: inline-flex;
    align-items: center;
    color: #007cba;
    text-decoration: none;
    padding: 8px 12px;
    border: 1px solid #007cba;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.dfe-back-link a:hover {
    background-color: #007cba;
    color: #fff;
    text-decoration: none;
}

/* ========================================
   MAP STYLES
   ======================================== */

.dfe-map-link {
    color: #007cba;
    text-decoration: none;
}

.dfe-map-link:hover {
    text-decoration: underline;
}

/* ========================================
   PAGINATION STYLES
   ======================================== */

.dfe-pagination {
    margin: 20px 0;
    text-align: center;
}

.dfe-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.dfe-pagination .page-numbers.current {
    background: #007cba;
    color: #fff;
    border-color: #007cba;
}

.dfe-pagination .page-numbers:hover {
    background: #f8f9fa;
    border-color: #007cba;
}

.dfe-pagination .page-numbers.current:hover {
    background: #007cba;
}

/* ========================================
   SEARCH STYLES
   ======================================== */

.dfe-search {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.dfe-search input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.dfe-search input[type="submit"] {
    padding: 8px 16px;
    background: #007cba;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.dfe-search input[type="submit"]:hover {
    background: #005a87;
}

/* Table search */
.dfe-table-search {
    margin-bottom: 16px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.dfe-search-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.dfe-search-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.dfe-search-clear {
    padding: 8px 12px;
    background: #6c757d;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.dfe-search-clear:hover {
    background: #5a6268;
}

/* ========================================
   FIELD STRUCTURE STYLES
   ======================================== */

/* Field container */
.dfe-field {
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.dfe-field:last-child {
    border-bottom: none;
}

/* Field label */
.dfe-field-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Field value */
.dfe-field-value {
    color: #666;
    line-height: 1.5;
    font-size: 16px;
    word-wrap: break-word;
}

/* List view specific field styling */
.dfe-entries-list .dfe-entry-item .dfe-field {
    margin-bottom: 12px;
    padding: 8px 0;
}

.dfe-entries-list .dfe-entry-item .dfe-field-label {
    font-size: 13px;
    margin-bottom: 3px;
    color: #555;
}

.dfe-entries-list .dfe-entry-item .dfe-field-value {
    font-size: 15px;
    color: #333;
}

/* Single entry view field styling */
.dfe-single-entry .dfe-field {
    margin-bottom: 20px;
    padding: 15px 0;
}

/* Field type specific styling within the new structure */
.dfe-field-email .dfe-field-value a {
    color: #007cba;
    text-decoration: none;
}

.dfe-field-email .dfe-field-value a:hover {
    text-decoration: underline;
}

.dfe-field-url .dfe-field-value a,
.dfe-field-website .dfe-field-value a {
    color: #007cba;
    text-decoration: none;
    word-break: break-all;
}

.dfe-field-url .dfe-field-value a:hover,
.dfe-field-website .dfe-field-value a:hover {
    text-decoration: underline;
}

.dfe-field-fileupload .dfe-field-value a {
    display: inline-flex;
    align-items: center;
    color: #007cba;
    text-decoration: none;
    padding: 4px 8px;
    border: 1px solid #007cba;
    border-radius: 4px;
    font-size: 12px;
}

.dfe-field-fileupload .dfe-field-value a:hover {
    background-color: #007cba;
    color: #fff;
}

/* Required field indicator */
.dfe-field-required .dfe-field-label::after {
    content: ' *';
    color: #dc3232;
}

/* Empty field styling */
.dfe-field-value .dfe-empty {
    color: #6c757d;
    font-style: italic;
}

/* Featured / Starred entry ribbon */
/* ========================================
   FEATURED/STARRED ENTRY STYLES
   ======================================== */

/* Starred table row styling */
.dfe-entry-starred {
    position: relative;
    background-color: #fff9e6 !important;
    border-left: 4px solid #ffd700 !important;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.15);
}

/* Starred row hover effect */
.dfe-entry-starred:hover {
    background-color: #fff5d6 !important;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.2);
}

/* Featured badge for table rows - positioned in first cell */
.dfe-entry-starred .dfe-field-cell:first-child {
    position: relative;
}

.dfe-entry-starred .dfe-field-cell:first-child::before {
    content: '★ Featured';
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #333;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    z-index: 1;
    white-space: nowrap;
}

/* Featured badge for card view */
.dfe-card.dfe-entry-starred {
    position: relative;
    border: 2px solid #ffd700;
    background: linear-gradient(to bottom, #fff9e6, #fff);
}

/* Card featured ribbon */
.dfe-card.dfe-entry-starred::after {
    content: 'FEATURED';
    position: absolute;
    top: 15px;
    right: -25px;
    background: linear-gradient(45deg, #ffd700, #ffb300);
    color: #333;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 25px;
    transform: rotate(45deg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 1;
    white-space: nowrap;
}

/* Hide ribbon on mobile to prevent overflow */
@media (max-width: 768px) {
    .dfe-card.dfe-entry-starred::after {
        font-size: 9px;
        padding: 4px 15px;
        right: -20px;
        top: 10px;
    }
}

@media (max-width: 480px) {
    .dfe-card.dfe-entry-starred::after {
        display: none;
    }

    /* Simple star indicator for mobile cards */
    .dfe-card.dfe-entry-starred::before {
        content: '★';
        position: absolute;
        top: 10px;
        right: 10px;
        color: #ffd700;
        font-size: 18px;
        font-weight: bold;
        z-index: 1;
    }
}

/* Featured list item styling */
.dfe-entry-item.dfe-entry-starred {
    border: 2px solid #ffd700;
    background: #fff9e6;
    position: relative;
}

.dfe-entry-item.dfe-entry-starred::before {
    content: '★ Featured';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffd700;
    color: #333;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 1;
}

/* Featured single entry styling */
.dfe-single-entry.dfe-entry-starred {
    border-left: 4px solid #ffd700;
    background: linear-gradient(to right, #fff9e6, #fff);
    position: relative;
}

.dfe-single-entry.dfe-entry-starred::before {
    content: '★ Featured Entry';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffd700;
    color: #333;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 1;
}

/* Featured icon for table headers (optional column) */
.dfe-table th.dfe-featured-column {
    width: 40px;
    text-align: center;
}

.dfe-table .dfe-featured-cell {
    text-align: center;
    width: 40px;
    vertical-align: middle;
}

.dfe-featured-icon {
    color: #ffd700;
    font-size: 16px;
    font-weight: bold;
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
}

/* Featured filter toggle */
.dfe-featured-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
}

.dfe-featured-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.dfe-featured-toggle input[type="checkbox"] {
    margin: 0;
}

.dfe-featured-toggle label {
    cursor: pointer;
    font-weight: 500;
    color: #333;
}

/* Featured count badge */
.dfe-featured-count {
    display: inline-block;
    padding: 2px 6px;
    background: #ffd700;
    color: #333;
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
    margin-left: 5px;
}

/* Featured entries only view */
.dfe-container.dfe-featured-only .dfe-entry-row:not(.dfe-entry-starred) {
    display: none;
}

/* Featured priority - always show featured first */
.dfe-sort-featured-first .dfe-entry-starred {
    order: -1;
}

/* Featured toggle button styling */
.dfe-toggle-featured-btn {
    background: none;
    border: 1px solid #ffd700;
    color: #ffd700;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.dfe-toggle-featured-btn:hover {
    background: #ffd700;
    color: #333;
}

.dfe-toggle-featured-btn.active {
    background: #ffd700;
    color: #333;
    font-weight: 600;
}

/* Featured promotion message */
.dfe-featured-promo {
    background: linear-gradient(135deg, #fff9e6, #fff5d6);
    border: 1px solid #ffd700;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
}

.dfe-featured-promo h4 {
    color: #333;
    margin: 0 0 10px 0;
    font-size: 16px;
}

.dfe-featured-promo p {
    color: #666;
    margin: 0 0 15px 0;
    font-size: 14px;
}

.dfe-featured-promo-button {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #333;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.dfe-featured-promo-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 179, 0, 0.3);
    color: #333;
    text-decoration: none;
}

/* Featured table header */
.dfe-featured-header {
    background: linear-gradient(to right, #fff9e6, #fff5d6) !important;
    border-bottom: 2px solid #ffd700 !important;
}

/* Responsive adjustments for featured badges */
@media (max-width: 768px) {
    .dfe-entry-starred .dfe-field-cell:first-child::before {
        font-size: 9px;
        padding: 1px 4px;
        top: -5px;
        right: -5px;
    }

    .dfe-entry-item.dfe-entry-starred::before {
        font-size: 10px;
        padding: 2px 6px;
    }

    .dfe-single-entry.dfe-entry-starred::before {
        font-size: 11px;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .dfe-entry-starred .dfe-field-cell:first-child::before {
        content: '★';
        font-size: 12px;
        padding: 0;
        background: none;
        color: #ffd700;
        box-shadow: none;
        top: 5px;
        right: 5px;
    }

    .dfe-entry-item.dfe-entry-starred::before {
        content: '★';
        font-size: 16px;
        padding: 0;
        background: none;
        color: #ffd700;
        box-shadow: none;
    }

    .dfe-single-entry.dfe-entry-starred::before {
        content: '★';
        font-size: 18px;
        padding: 0;
        background: none;
        color: #ffd700;
        box-shadow: none;
    }
}

/* Featured entry animation */
@keyframes featured-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

.dfe-entry-starred.new-featured {
    animation: featured-pulse 1.5s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dfe-field {
        margin-bottom: 12px;
        padding: 8px 0;
    }

    .dfe-field-label {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .dfe-field-value {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .dfe-field {
        margin-bottom: 10px;
        padding: 6px 0;
    }

    .dfe-field-label {
        font-size: 12px;
        margin-bottom: 3px;
    }

    .dfe-field-value {
        font-size: 13px;
    }
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media (max-width: 768px) {
    .dfe-cards {
        grid-template-columns: 1fr;
    }

    .dfe-table-container {
        overflow-x: auto;
    }

    .dfe-table th,
    .dfe-table td {
        padding: 8px 10px;
        font-size: 13px;
    }

    .dfe-field-label {
        font-size: 14px;
    }

    .dfe-single {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {

    .dfe-table th,
    .dfe-table td {
        padding: 6px 8px;
        font-size: 12px;
    }

    .dfe-card {
        padding: 15px;
    }

    .dfe-list-item,
    .dfe-entry-item {
        padding: 10px;
    }

    .dfe-table-search {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ========================================
   LOADING STATES
   ======================================== */

.dfe-loading {
    position: relative;
    min-height: 100px;
}

.dfe-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: dfe-spin 1s linear infinite;
}

@keyframes dfe-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.dfe-container:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.dfe-table th:focus,
.dfe-table td:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {

    .dfe-back-link,
    .dfe-search,
    .dfe-pagination {
        display: none !important;
    }

    .dfe-container {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }

    .dfe-card,
    .dfe-list-item,
    .dfe-entry-item {
        break-inside: avoid;
        border: 1px solid #000 !important;
    }

    .dfe-table {
        border: 1px solid #000 !important;
    }

    .dfe-table th,
    .dfe-table td {
        border: 1px solid #000 !important;
    }
}

/* ========================================
   EDIT LINK STYLES
   ======================================== */

/* Edit link container */
.dfe-edit-link {
    margin-top: 10px;
    text-align: right;
}

.dfe-edit-link-inline {
    display: inline-flex;
    padding: 5px 8px;
    background: #f1f1f1;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.dfe-edit-link-inline:hover {
    background: #e9e9e9;
    border-color: #cfcfcf;
}

.dfe-edit-link-inline img {
    width: 14px;
    height: 14px;
}

/* Edit button */
/* .dfe-edit-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: #007cba;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #007cba;
} */

/* .dfe-edit-button:hover {
    background: #005a87;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dfe-edit-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
} */

/* Edit icon */
.dfe-edit-icon {
    font-size: 12px;
}

/* Table edit column */
.dfe-edit-column {
    width: 80px;
    text-align: center;
    font-weight: 600;
    color: #495057;
}

.dfe-edit-cell {
    text-align: center;
    vertical-align: middle;
    width: 60px;
}

/* Edit links section */
.dfe-edit-links-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e1e5e9;
    text-align: right;
}

/* List view edit links */
.dfe-entries-list .dfe-entry-item .dfe-edit-link {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
    font-size: 0.8rem;
}

/* Single entry edit links */
.dfe-single-entry .dfe-edit-link {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #e1e5e9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dfe-edit-button {
        padding: 5px 10px;
        font-size: 12px;
    }

    .dfe-edit-icon {
        font-size: 11px;
    }

    .dfe-edit-column {
        width: 60px;
    }
}

@media (max-width: 480px) {
    .dfe-edit-button {
        padding: 4px 8px;
        font-size: 11px;
    }

    .dfe-edit-icon {
        font-size: 10px;
    }

    .dfe-edit-column {
        width: 50px;
    }

    .dfe-edit-column {
        font-size: 11px;
    }
}

/* Print styles */
@media print {

    .dfe-edit-link,
    .dfe-edit-column,
    .dfe-edit-cell {
        display: none !important;
    }
}

/* ========================================
   LINKED LIST STYLES
   ======================================== */

/* Linked list container */
.dfe-linked-list-container {
    margin: 20px 0;
}

/* Linked table */
.dfe-linked-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.dfe-linked-table th,
.dfe-linked-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e1e5e9;
    vertical-align: top;
}

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

.dfe-linked-table tr:hover {
    background-color: #f5f5f5;
}

/* Link column */
.dfe-link-column {
    width: 120px;
    text-align: center;
}

.dfe-link-cell {
    text-align: center;
    vertical-align: middle;
}

/* Entry links */
.dfe-entry-link {
    display: inline-block;
    padding: 6px 12px;
    background: #007cba;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dfe-entry-link:hover {
    background: #005a87;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Clickable field links */
.dfe-field-cell .dfe-entry-link {
    background: transparent;
    color: #007cba;
    padding: 0;
    border-radius: 0;
    text-decoration: underline;
}

.dfe-field-cell .dfe-entry-link:hover {
    background: transparent;
    color: #005a87;
    text-decoration: none;
    transform: none;
    box-shadow: none;
}

/* Entry detail view */
.dfe-entry-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.dfe-back-link {
    margin-bottom: 20px;
}

.dfe-back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #6c757d;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dfe-back-button:hover {
    background: #5a6268;
    color: #fff;
    text-decoration: none;
    transform: translateX(-2px);
}

.dfe-entry-title {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .dfe-linked-table th,
    .dfe-linked-table td {
        padding: 8px 10px;
        font-size: 13px;
    }

    .dfe-link-column {
        width: 80px;
    }

    .dfe-entry-link {
        padding: 4px 8px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .dfe-linked-table {
        font-size: 12px;
    }

    .dfe-linked-table th,
    .dfe-linked-table td {
        padding: 6px 8px;
    }

    .dfe-link-column {
        width: 60px;
    }

    .dfe-entry-link {
        padding: 3px 6px;
        font-size: 11px;
    }

    .dfe-entry-detail {
        padding: 15px;
    }

    .dfe-entry-title {
        font-size: 20px;
    }
}

/* Edit column styling */
.dfe-edit-cell {
    text-align: center;
    width: 60px;
}

.dfe-edit-link {
    display: inline-block;
    font-size: 16px;
    text-decoration: none;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.dfe-edit-link:hover {
    opacity: 1;
    text-decoration: none;
}

/* Remove any button styling */
.dfe-edit-link {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    color: inherit !important;
    border-radius: 0 !important;
}

/* Entry detail link styling */
.dfe-entry-detail-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.dfe-entry-detail-link:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Empty field styling */
.dfe-empty-field {
    background-color: #f9f9f9;
    color: #999;
    font-style: italic;
}

/* Entry Detail View */
.dfe-entry-detail-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.dfe-back-link-container {
    margin-bottom: 20px;
}

.dfe-back-link {
    display: inline-block;
    padding: 8px 16px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.dfe-back-link:hover {
    background: #e0e0e0;
    color: #333;
    text-decoration: none;
}

.dfe-entry-title {
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
    color: #333;
}

.dfe-entry-detail-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dfe-entry-detail-content .dfe-field {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.dfe-entry-detail-content .dfe-field:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.dfe-entry-detail-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.dfe-entry-detail-actions .dfe-edit-link {
    font-size: 18px;
    padding: 10px 20px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
}

.dfe-entry-detail-actions .dfe-edit-link:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}