/**
 * Photo Award Plugin - Frontend Styles
 * 
 * Consolidated frontend styles including:
 * - Profile pages and dashboard
 * - Entry forms and management
 * - Event listings and registration
 * - Gallery and media display
 * - Authentication forms
 * - Responsive design
 */

/* ===== PROFILE PAGE LAYOUT ===== */

.single-event .entry-header ,
.single-event .post-navigation {
    display: none;
}


/* Profile Container */
.photo-award-profile-container {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    min-height: 60vh;
    width: 100%;
}

.photo-award-profile-page.ast-narrow-container .site-content > .ast-container {
    max-width: 1240px;
}

/* ===== PROFILE SIDEBAR ===== */
.profile-sidebar {
    width: 250px;
    background: #fff;
    padding: 0 0 10px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.profile-user-info {
    padding: 19px;
    border-bottom: 1px solid #e1e1e1;
    margin-bottom: 16px;
}

.profile-user-info h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.profile-user-info p {
    margin: 0;
    color: #8a8a8a;
    font-size: 13px;
}

/* Profile Navigation */
.profile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.profile-nav li {
    margin-bottom: 5px;
}

.profile-nav a {
    display: flex;
    align-items: center;
    padding: 11px 15px;
    color: #555;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.profile-nav a:hover {
    background: #f8f9fa;
    color: #df9400;
}

.profile-nav li.active a {
    background: #df9400;
    color: #fff;
}

.profile-nav .nav-icon {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ===== PROFILE CONTENT ===== */
.profile-content {
    flex: 1;
    background: #fff;
    padding: 24px 30px;
}

.profile-page h1 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 21px;
    font-weight: 600;
    border-bottom: 2px solid #dbdbdb;
    padding-bottom: 10px;
}

.profile-page p {
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.5;
}

/* ===== DASHBOARD STATS ===== */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat-card {
    border: 1px solid #e1e1e1;
    padding: 25px;
    text-align: center;
}



.stat-card h3 {
    margin: 0 0 10px 0;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #df9400;
    margin: 0;
}

/* ===== FORM PLACEHOLDERS ===== */
.entry-form-placeholder,
.entries-list-placeholder,
.profile-form-placeholder,
.password-form-placeholder {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* ===== LOGOUT PAGE ===== */
.logout-page {
    text-align: center;
    padding: 60px 20px;
}

.logout-page h1 {
    color: #dc3545;
    border-bottom: none;
}

/* ===== RESPONSIVE DESIGN - PROFILE ===== */
@media (max-width: 768px) {
    .photo-award-profile-container {
        flex-direction: column;
        padding: 15px 0;
        gap: 20px;
    }
    
    .profile-sidebar {
        width: 100%;
        position: static;
        order: 2;
    }
    
    .profile-content {
        order: 1;
        padding: 20px;
    }
    
    .profile-nav a {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .photo-award-profile-container {
        padding: 10px;
    }
    
    .profile-sidebar,
    .profile-content {
        padding: 15px;
    }
    
    .profile-page h1 {
        font-size: 24px;
    }
    
    .profile-nav a {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .nav-icon {
        width: 14px;
        height: 14px;
    }
}



/* ===== FORM STYLES ===== */
.profile-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #df9400;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.form-help {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.btn {
    padding: 10px 20px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #df9400;
    color: #fff;
}

.btn-primary:hover {
    background: #005a87;
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    background: #f8f9fa;
    color: #555;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e9ecef;
}

.form-group input.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1);
}

.form-group input.valid {
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.1);
}

.form-error {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #dc3545;
    font-weight: 500;
}

/* Form Row Layout */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Required Field Indicator */
.required {
    color: #dc3545;
    font-weight: bold;
}

/* Select Dropdown */
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
    transition: border-color 0.2s ease;
}

.form-group select:focus {
    outline: none;
    border-color: #df9400;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.form-group select.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1);
}

/* Textarea */
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.2s ease;
}

.form-group textarea:focus {
    outline: none;
    border-color: #df9400;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.form-group textarea.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1);
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
    margin: 0;
}

.radio-label input[type="radio"] {
    margin: 0;
    width: auto;
}

.radio-label span {
    font-size: 14px;
    color: #555;
}

/* Readonly Input */
.form-group input[readonly] {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

/* Responsive Form Layout */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group {
        margin-bottom: 20px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
}

/* ===== SELECT2 STYLING ===== */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: 42px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 40px;
    padding-left: 12px;
    padding-right: 20px;
    color: #555;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #999;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px;
    right: 8px;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #df9400;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #df9400;
}

.select2-dropdown {
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive Select2 */
@media (max-width: 768px) {
    .select2-container--default .select2-selection--single {
        height: 44px;
    }
    
    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 42px;
    }
    
    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 42px;
    }
}

/* ===== MY ENTRIES PAGE ===== */
.my-entries-page {
    padding: 20px 0;
}

.no-entries {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.entries-summary {
    margin-bottom: 20px;
    padding: 15px;
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
}

.entries-table-container {
    overflow-x: auto;
    margin: 20px 0;
}

.user-entries-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.user-entries-table th {
    background: #f8f9fa;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
}

.user-entries-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: top;
}

.user-entries-table tr:hover {
    background: #f8f9fa;
}

.user-entries-table tr:last-child td {
    border-bottom: none;
}

/* Entry Images */
.entry-images {
    /* width: 80px; */
    text-align: center;
    background: #fff;
    padding: 24px;
}

.imageinlist {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.imageinlist:hover {
    transform: scale(1.05);
}

.no-image {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 6px;
    text-align: center;
    line-height: 56px;
    font-size: 12px;
    color: #6c757d;
}

/* Entry Title */
.entry-title {
    min-width: 200px;
}

.entry-title strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.entry-title small {
    color: #6c757d;
    font-size: 12px;
}

.certificate-links {
    margin-top: 8px;
}

.certificate-link {
    display: inline-block;
    padding: 2px 8px;
    background: #28a745;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 11px;
    margin-right: 5px;
    margin-bottom: 3px;
}

.certificate-link:hover {
    background: #218838;
    color: #fff;
}

/* Payment Status */
.payment-label {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.payment-label.wpi-pending {
    background: #fff3cd;
    color: #856404;
}

.payment-label.wpi-paid,
.payment-label.publish {
    background: #d4edda;
    color: #155724;
}

.payment-label.wpi-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.pay-link {
    display: inline-block;
    margin-top: 5px;
    padding: 4px 12px;
    background: #df9400;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
}

.pay-link:hover {
    background: #005a87;
    color: #fff;
}

/* Actions */
.entry-actions {
    white-space: nowrap;
}

.action-link {
    display: inline-block;
    margin-right: 10px;
    padding: 4px 8px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.2s ease;
}

.view-link {
    background: #6c757d;
    color: #fff;
}

.view-link:hover {
    background: #5a6268;
    color: #fff;
}

.edit-link {
    background: #17a2b8;
    color: #fff;
}

.edit-link:hover {
    background: #138496;
    color: #fff;
}

.delete-link {
    background: #dc3545;
    color: #fff;
    cursor: pointer;
}

.delete-link:hover {
    background: #c82333;
    color: #fff;
}

/* Status */
.status-label {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-label.unpaid {
    background: #fff3cd;
    color: #856404;
}

.status-label.paid {
    background: #d4edda;
    color: #155724;
}

/* Delete Confirmation Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-content h3 {
    margin: 0 0 15px 0;
    color: #333;
}

.modal-content p {
    margin: 0 0 20px 0;
    color: #666;
}

.modal-message {
    margin: 10px 0;
    padding: 10px;
    border-radius: 4px;
    font-weight: 500;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}


.btn-danger:hover {
    background: #c82333;
}

/* Entry View Modal (My Entries) */
.photo-award-modal {
    display: flex;
    align-items: center;
    justify-content: center;
}
.photo-award-modal-inner {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    max-width: 700px;
    max-height: 90vh;
    overflow: auto;
    position: relative;
    margin: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.photo-award-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 0 8px;
    line-height: 1;
}
.photo-award-modal-close:hover {
    color: #000;
}
.photo-award-modal-content h3 {
    margin: 0 0 15px 0;
    padding-right: 30px;
}
.photo-award-modal-images {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}
.photo-award-modal-images img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    max-height: 400px;
    object-fit: contain;
}

/* ===== NEW ENTRY PAGE ===== */
.new-entry-page {
    padding: 20px 0;
}

/* Contest switcher (Dashboard) */
.pa-contest-switcher {
    margin-bottom: 32px;
}
.pa-contest-switcher-title {
    font-size: 22px;
    margin: 0 0 8px 0;
    color: #333;
}
.pa-contest-switcher-desc {
    color: #666;
    margin: 0 0 24px 0;
    font-size: 15px;
}
.pa-contest-cards {
    margin-bottom: 24px;
}
.pa-contest-cards h3 {
    font-size: 14px;
    color: #666;
    margin: 0 0 12px 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pa-contest-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.pa-contest-card {
    display: block;
    padding: 16px 20px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    min-width: 200px;
}
.pa-contest-card:hover {
    border-color: #df9400;
    background: #fffbf0;
}
.pa-contest-card-archive {
    border-color: #e8e8e8;
    background: #fafafa;
}
.pa-contest-card-archive .pa-contest-meta {
    color: #888;
    font-size: 13px;
}
.pa-contest-name {
    display: block;
    margin-bottom: 4px;
}
.pa-contest-meta {
    font-size: 12px;
    color: #df9400;
}
.pa-contest-current {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}
.pa-contest-label {
    font-size: 14px;
    color: #666;
}
.pa-contest-dropdown {
    position: relative;
    display: inline-block;
    padding: 8px 14px;
    background: #eef0f2;
    border-radius: 8px;
    cursor: pointer;
}
.pa-contest-dropdown-trigger {
    display: inline-block;
    cursor: pointer;
}
.pa-contest-current-name {
    font-weight: 600;
    margin-right: 6px;
}
.pa-contest-chevron {
    font-size: 10px;
    color: #666;
}
.pa-contest-dropdown:hover .pa-contest-dropdown-menu,
.pa-contest-dropdown.pa-contest-dropdown-open .pa-contest-dropdown-menu {
    display: block;
}
.pa-contest-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    padding-top: 8px;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 10;
    padding: 8px 0 8px 0;
}
.pa-contest-dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}
.pa-contest-dropdown-menu a:hover {
    background: #fff8e6;
    color: #a67800;
}
.pa-contest-dropdown-menu .pa-archive-link {
    color: #888;
    font-size: 13px;
}
.pa-contest-dropdown-menu .pa-archive-link small {
    color: #aaa;
}
.pa-contest-context {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
}
.pa-contest-context a {
    color: #df9400;
    margin-left: 8px;
}

/* Event switcher in sidebar - compact */
.pa-event-switcher-sidebar {
    margin-bottom: 16px;
    padding: 0 15px 12px;
    border-bottom: 1px solid #e1e1e1;
}
.pa-event-switcher-dropdown {
    position: relative;
    display: block;
}
.pa-event-switcher-trigger {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 12px;
    background: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}
.pa-event-switcher-trigger:hover {
    background: #eee;
}
.pa-event-switcher-label {
    color: #666;
    font-weight: 500;
}
.pa-event-switcher-name {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pa-event-switcher-chevron {
    font-size: 9px;
    color: #888;
}
.pa-event-switcher-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    z-index: 100;
    padding: 6px 0;
    max-height: 280px;
    overflow-y: auto;
}
.pa-event-switcher-sidebar .pa-event-switcher-open .pa-event-switcher-menu {
    display: block;
}
.pa-event-switcher-menu a {
    display: block;
    padding: 10px 14px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    border: none;
}
.pa-event-switcher-menu a:hover {
    background: #fff8e6;
    color: #a67800;
}
.pa-event-switcher-menu .pa-event-archive {
    color: #888;
    font-size: 12px;
}

/* Contest cards with images */
.pa-contest-grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.pa-contest-card-with-img {
    padding: 0 !important;
    min-width: 0 !important;
    overflow: hidden;
}
.pa-contest-card-img {
    height: 140px;
    background-size: cover;
    background-position: center;
    background-color: #e8e8e8;
}
.pa-contest-card-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
}
.pa-contest-card-with-img .pa-contest-card-body {
    padding: 14px 18px;
}
.pa-contest-card-with-img .pa-contest-name {
    font-size: 15px;
    font-weight: 600;
}

.no-events {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 20px 0;
}

.no-events-icon {
    margin-bottom: 20px;
    color: #6c757d;
}

.no-events h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 24px;
}

.no-events p {
    margin: 0;
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

.events-summary {
    margin-bottom: 30px;
    padding: 20px;
    background: #eeeeee47;
    border-left: 4px solid #2196f3;
}

.events-summary p {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.events-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 30px 0;
}

.event-card-wide {
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.event-card-wide:hover {
    border-color: #df9400;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.1);
}

.event-card-content {
    display: flex;
    align-items: stretch;
    padding: 16px 20px;
    gap: 16px;
    justify-content: space-between;
}

.event-icon {
    color: #df9400;
    flex-shrink: 0;
}

.event-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
}

.event-title {
    font-size: 22px;
    font-weight: 600;
}

.event-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.event-title a:hover {
    color: #df9400;
}

.type-badge {
    display: inline-block;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.type-badge.series {
    background: #e8f5e8;
    color: #2e7d32;
}

.type-badge.single {
    background: #e3f2fd;
    color: #1976d2;
}

.type-badge.both {
    background: #fff3e0;
    color: #f57c00;
}

.event-details {
    padding: 20px 25px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #666;
    font-size: 13px;
}

.event-badges {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.countdown-timer {
    flex-shrink: 0;
    text-align: center;
    min-width: 120px;
}

.countdown-text {
    display: block;
}

.countdown-text span {
    font-weight: 600;
    color: inherit;
}

.event-action {
    flex-shrink: 0;
}

.event-action .btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.event-action .btn-primary {
    background: #df9400;
    color: #fff;
}

.event-action .btn-primary:hover {
    background: #005a87;
    color: #fff;
    transform: translateY(-1px);
}

.series-info {
    margin-bottom: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #28a745;
}

.series-info strong {
    color: #333;
    margin-right: 5px;
}

.event-description {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

.event-footer {
    padding: 20px 25px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.countdown-timer {
    margin-bottom: 20px;
    text-align: center;
}

.countdown-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.countdown-display {
    font-size: 13px;
    font-weight: 200;
    color: #dc3545;
    font-family: 'Courier New', monospace;
}

.event-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.event-actions .btn {
    flex: 1;
    max-width: 140px;
    text-align: center;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.event-actions .btn-primary {
    background: #df9400;
    color: #fff;
}

.event-actions .btn-primary:hover {
    background: #005a87;
    color: #fff;
    transform: translateY(-1px);
}

.event-actions .btn-secondary {
    background: #6c757d;
    color: #fff;
}

.event-actions .btn-secondary:hover {
    background: #5a6268;
    color: #fff;
    transform: translateY(-1px);
}

/* ===== RESPONSIVE DESIGN - EVENTS ===== */
@media (max-width: 768px) {
    .event-card-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }
    
    .event-info {
        width: 100%;
    }
    
    .event-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .event-badges {
        order: -1;
    }
    
    .countdown-timer {
        min-width: auto;
        width: 100%;
    }
    
    .event-action {
        width: 100%;
    }
    
    .event-action .btn {
        width: 100%;
        justify-content: center;
    }
    
    .events-summary {
        margin: 20px 10px 30px 10px;
        padding: 15px;
    }
    
    .no-events {
        margin: 20px 10px;
        padding: 40px 15px;
    }
}

/* ===== SUCCESS/ERROR MESSAGES ===== */
.profile-message {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 500;
}

.profile-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.profile-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.profile-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.event-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
}


/**
 * Minimal Authentication Modal Styles
 * 
 * Essential styles only for modal and input functionality
 */

/* Modal Overlay */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.auth-modal-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 20px;
    z-index: 10000;
}

.auth-modal-content {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

/* Close Button */
.auth-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    z-index: 10001;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: unset;
    padding: 0;
    /* display: flex; */
}

.auth-modal-close:hover {
    color: #ff0000;
    background: unset;
}

/* Form Styles */
.auth-form {
    display: none;
    padding: 30px;
}

.auth-form.active {
    display: block;
}

.auth-form .btn-outline {
    width: 100%;
}

.auth-form-header {
    text-align: center;
    margin-bottom: 25px;
}

.auth-form-header h2 {
    margin: 0 0 4px 0 !important;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}


.event-card-content span.countdown-text {
    font-size: 12px;
}

.auth-form-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Form Groups */
.form-group {
    /* margin-bottom: 20px; */
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-group label {
    display: flex;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
    justify-content: space-between;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    background: #fff;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #df9400;
}

.form-group input.error,
.form-group select.error {
    border-color: #e74c3c;
}

/* OTP Input */
.otp-input-container {
    display: flex;
    justify-content: center;
}

.otp-input {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 4px;
    max-width: 180px;
    font-family: monospace;
}

/* Checkbox */
.checkbox-group {
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    justify-content: flex-start !important;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 3px;
    margin-right: 8px;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #df9400;
    border-color: #df9400;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}



.btn-primary {
    background: #df9400;
    color: white;
}

.btn-primary:hover {
    background: #005a87;
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-outline {
    background: transparent;
    color: #df9400;
    border: 1px solid #df9400;
}

.btn-outline:hover {
    background: #df9400;
    color: white;
}

.btn-link {
    background: none;
    color: #5d5d5d;
    padding: 5px 0;
    font-size: 13px;
}

.btn-link:hover {
    color: #005a87;
    background: unset;
}

.btn-full {
    width: 100%;
    margin-bottom: 15px;
}

/* Form Footer */
.auth-form-footer {
    text-align: center;
    margin-top: 20px;
}

.auth-form-footer .btn-link {
    display: block;
    /* margin-bottom: 8px; */
    box-shadow: unset;
}

/* Messages */
.auth-message {
    margin-top: 15px;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    display: none;
}

.auth-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.auth-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.auth-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    display: block;
}

/* Form Errors */
.form-error {
    margin-top: 4px;
    font-size: 12px;
    color: #e74c3c;
    display: none;
}

.form-error.show {
    display: block;
}

/* Auth Links Widget */
.auth-links-widget {
    display: inline-block;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-greeting {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.user-actions {
    display: flex;
    gap: 8px;
}

.guest-menu .btn {
    padding: 8px 16px;
    font-size: 13px;
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .auth-modal-container {
        margin: 10px;
        max-width: none;
    }
    
    .auth-form {
        padding: 20px 15px;
    }
    
    .auth-form-header h2 {
        font-size: 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .user-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .user-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .otp-input {
        font-size: 18px;
        letter-spacing: 2px;
    }
}

@media (max-width: 480px) {
    .auth-form {
        padding: 15px 10px;
    }
    
    .auth-form-header h2 {
        font-size: 18px;
    }
    
    .form-group input,
    .form-group select {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* ===== EVENT REGISTRATION FORM STYLES ===== */
.event-registration-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

.event-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    text-align: center;
}

.event-subtitle {
    font-size: 18px;
    color: #666;
    margin: 0 0 30px 0;
    text-align: center;
    font-weight: 400;
}

.ui.form {
    background: #fff;
    padding: 30px;
}

.ui.form .field {
    margin-bottom: 25px;
}

.ui.form .field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.ui.form .field input[type="text"],
.ui.form .field input[type="email"],
.ui.form .field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: border-color 0.2s ease;
    background: #fff;
    box-sizing: border-box;
}

.ui.form .field input:focus,
.ui.form .field textarea:focus {
    outline: none;
    border-color: #df9400;
}

.ui.form .field input.error,
.ui.form .field textarea.error {
    border-color: #dc3545;
}

.field-entry-type {
    margin-bottom: 30px;
}

.entry-type-info {
    padding: 15px;
    background: #f8f9fa;
    border-left: 3px solid #df9400;
    margin-top: 10px;
}

.entry-type-info p {
    margin: 0;
    color: #333;
    font-size: 14px;
}

.ui.radio.checkbox {
    margin-bottom: 15px;
}

.ui.radio.checkbox input[type="radio"] {
    margin-right: 8px;
}

.ui.radio.checkbox label {
    cursor: pointer;
    font-weight: normal;
    margin: 0;
}

.topic-checkbox-group {
    margin-bottom: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 9px;
}

.ui.checkbox.topic-checkbox {
    display: flex;
}

.ui.checkbox.topic-checkbox input[type="checkbox"] {
    margin-right: 8px;
}

.ui.checkbox.topic-checkbox label {
    cursor: pointer;
    font-weight: normal;
    margin: 0;
}

.topic-selection-info {
}

.topic-selection-info small {
    color: #666;
    font-size: 13px;
}

.price-value {
    font-weight: 600;
    color: #df9400;
    font-size: 16px;
}

.field-upload {
    margin-bottom: 30px;
}

.upload-section {
    margin-top: 15px;
}

.image-upload-area {
    border: 2px dashed #ddd;
    padding: 30px;
    text-align: center;
    background: #f8f9fa;
}

.upload-input-div {
    display: block;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.upload-preview {
    margin-top: 15px;
}

.photo-preview {
    position: relative;
    display: inline-block;
    margin: 10px;
}

.photo-preview img {
    max-width: 150px;
    max-height: 150px;
    border: 1px solid #ddd;
}

.remove-photo {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: #fff;
    border: none;
    width: 34px;
    height: 34px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
}

.series-upload-container {
    margin-top: 15px;
}

.upload-instructions {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-left: 3px solid #df9400;
}

.series-inputs-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.series-upload-item {
    text-align: center;
    padding: 15px;
    border: 1px solid #ddd;
    background: #fff;
}

.series-upload-item small {
    display: block;
    margin-top: 8px;
    color: #666;
    font-size: 12px;
}

.ui.checkbox {display: flex;align-items: center;}

.ui.checkbox input[type="checkbox"] {
    margin-right: 8px;
}

.ui.checkbox label {
    cursor: pointer;
    font-weight: normal;
    margin: 0 !important;
}

.ui.button.primary {
    background: #df9400;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.ui.button.primary:hover {
    background: #005a87;
}

.ui.button.primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.ui.message {
    padding: 15px;
    margin: 20px 0;
    font-weight: 500;
}

.ui.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ui.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.ui.message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.field-error {
    margin-top: 5px;
    font-size: 12px;
    color: #dc3545;
    font-weight: 500;
    display: none;
}

.field-error.show {
    display: block;
}

.field.has-error input,
.field.has-error textarea {
    border-color: #dc3545;
}


.field.field-topics.has-error {
    border: 1px solid #eee;
    padding: 16px;
}

span.upload-input-div input {
    position: relative;
    opacity: 0;
    cursor: pointer;
    height: 40px;
    width: 100%;
    z-index: 2;
}

.field-topics-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    align-items: flex-start;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.field.field-topics {
    padding: 16px;
    border: solid #eee 2px;
}

.field-topics-price-container {
    margin-top: -4px;
}

.delete-btn {
    /* width: 40px; */
    padding: 0;
}

.upload-input-div:before {
    content: 'Select Photo';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #df9400;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s all;
    cursor: pointer;
}

.upload-input-div:hover:before {
    background: #000000;
}


.remove-photo:hover {
    background: #000000;
}

.char-counter {
    font-size: 12px;
    color: #666;
    text-align: right;
    margin-top: 5px;
}

/* Responsive Design for Event Registration */
@media (max-width: 768px) {
    .event-registration-container {
        padding: 15px;
    }
    
    .ui.form {
        padding: 20px;
    }
    
    .event-title {
        font-size: 24px;
    }
    
    .event-subtitle {
        font-size: 16px;
    }
    
    .series-inputs-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .ui.button.primary {
        width: 100%;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .event-registration-container {
        padding: 10px;
    }
    
    .ui.form {
        padding: 15px;
    }
    
    .event-title {
        font-size: 20px;
    }
    
    .image-upload-area {
        padding: 20px;
    }
    
    .series-upload-item {
        padding: 10px;
    }
}


.single-entry-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    width: 100%;
}

.entry-header {
    background: #ffffff;
    padding: 24px;
    margin-bottom: 24px;
}

.entry-title {
    margin: 0 0 16px 0;
    font-size: 28px;
    font-weight: 700;
    color: #111827;
}

.entry-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.entry-meta span {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
}

.entry-type {
    background: #f3f4f6;
    color: #6b7280;
}

.entry-cost {
    background: #dbeafe;
    color: #1e40af;
}

.payment-status {
    font-weight: 600;
}

.status-wpi-pending {
    background: #fef3c7;
    color: #d97706;
}

.status-wpi-paid, .status-publish {
}

.status-wpi-cancelled {
    background: #fee2e2;
    color: #dc2626;
}

.status-wpi-refunded {
    background: #e0f2fe;
    color: #0284c7;
}

.entry-content {
    /* display: grid; */
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.detail-section {
    background: #ffffff;
    padding: 20px;
    margin-bottom: 16px;
}

.detail-section h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-section h3 svg {
    color: #6b7280;
    flex-shrink: 0;
}

.entry-images h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.entry-images h3 svg {
    color: #6b7280;
    flex-shrink: 0;
}

.detail-section p {
    margin: 0 0 8px 0;
    color: #374151;
    line-height: 1.5;
}

.certificate-link {
    display: inline-block;
    background: #3b82f6;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    margin-right: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.certificate-link:hover {
    background: #aa7102;
    color: white;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.image-item {
    position: relative;
    overflow: hidden;
}

.image-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-item:hover img {
    transform: scale(1.05);
}

.entry-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 24px;
    background: #f9fafb;
    border-radius: 8px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: unset;
    border-radius: 0;
}

.action-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.pay-btn {
    background: #10b981;
    color: white;
    border-color: #10b981;
    order: 2;
}

.pay-btn:hover {
    background: #059669;
    color: white;
}

.edit-btn {order: 1;}

.edit-btn:hover {
    /* background: #d97706; */
    /* color: white; */
}

.delete-btn {
    /* background: #ef4444; */
    color: #ef4444;
    /* border-color: #ef4444; */
}

.delete-btn:hover {
    background: #dc2626;
    color: white;
}

.back-btn {
    background: #6b7280;
    color: white;
    border-color: #6b7280;
    order: -1;
    margin-right: auto;
}

.back-btn:hover {
    background: #4b5563;
    color: white;
}

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

body .modal-content {
    background: white;
    padding: 24px;
    border-radius: 0;
    max-width: 400px;
    width: 90%;
}

.modal-actions .btn {width: 100%;}


.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}


.entry-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(390px, 1fr));
    gap: 1rem;
    margin: 0;
}

.detail-section p:last-child {
    margin-bottom: 0;
}


@media (max-width: 768px) {
    .entry-content {
        grid-template-columns: 1fr;
    }
    
    .entry-actions {
        flex-direction: column;
    }
    
    .action-btn {
        justify-content: center;
    }
}


/* Entries List Container */
.entries-list-container {
    margin-top: 20px;
}

/* Entry Row */
.entry-row {
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.entry-row:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

/* Row Image */
.entry-row-image {
    width: 80px;
    height: 80px;
    margin-right: 16px;
    position: relative;
    flex-shrink: 0;
}

.entry-row-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.entry-row-image:hover img {
    transform: scale(1.05);
}

.entry-row-image.no-image {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-image-placeholder {
    color: #9ca3af;
}

.image-count-indicator {
    position: absolute;
    bottom: -4px;
    left: -4px;
    background: #999999;
    color: white;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

/* Row Content */
.entry-row-content {
    flex: 1;
    margin-right: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.entry-row-title {
    margin-bottom: 8px;
    display: flex;
    gap: 12px;
}

.entry-row-title h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
}

.entry-type-badge {
    display: inline-block;
    background: #f3f4f6;
    color: #6b7280;
    padding: 4px 6px 0;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.entry-row-details {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 8px;
}

.entry-detail-item {
    display: flex;
    align-items: center;
    color: #6b7280;
    font-size: 13px;
}

.entry-detail-item svg {
    margin-right: 6px;
    flex-shrink: 0;
}

.status-item {
    font-weight: 500;
}

.entry-row-certificates {
    margin-top: 4px;
}

.certificate-link {
    display: inline-flex;
    align-items: center;
    color: #3b82f6;
    text-decoration: none;
    font-size: 12px;
    margin-right: 12px;
    margin-bottom: 2px;
    transition: color 0.2s ease;
}

.certificate-link:hover {
    color: #1d4ed8;
}

.certificate-link svg {
    margin-right: 4px;
}

/* Certificate Awards Section */
.entry-row-certificates-awards {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.certificate-award-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.certificate-award-item:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* Award level specific styling */
.certificate-award-item.certificate-award-gold {
    border-left: 4px solid #FFD700;
    background: linear-gradient(to right, #fffbf0 0%, #fff 10%);
}

.certificate-award-item.certificate-award-silver {
    border-left: 4px solid #C0C0C0;
    background: linear-gradient(to right, #f8f8f8 0%, #fff 10%);
}

.certificate-award-item.certificate-award-bronze {
    border-left: 4px solid #CD7F32;
    background: linear-gradient(to right, #faf7f3 0%, #fff 10%);
}

.certificate-award-item.certificate-award-mention {
    border-left: 4px solid #6c757d;
    background: linear-gradient(to right, #f5f5f5 0%, #fff 10%);
}

.certificate-award-item .award-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
    flex: 1;
}

.award-label .award-level-text {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
}

.award-label-gold .award-level-text {
    color: #B8860B;
}

.award-label-silver .award-level-text {
    color: #808080;
}

.award-label-bronze .award-level-text {
    color: #CD7F32;
}

.award-label-mention .award-level-text {
    color: #6c757d;
}

.award-label .award-separator {
    color: #999;
    font-weight: 400;
    font-size: 13px;
    text-transform: lowercase;
}

.award-label .award-topic-text {
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

.certificate-download-btn,
.certificate-generate-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.certificate-download-btn {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
}

.certificate-download-btn:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
    transform: translateY(-1px);
}

.certificate-generate-btn {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
}

.certificate-generate-btn:hover {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3);
    transform: translateY(-1px);
}

.certificate-generate-btn:active,
.certificate-download-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.certificate-generate-btn:disabled {
    background: #9e9e9e;
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
    transform: none;
}

.certificate-generate-btn:disabled:hover {
    background: #9e9e9e;
    box-shadow: none;
    transform: none;
}

.certificate-download-btn svg,
.certificate-generate-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    stroke-width: 2.5;
}

.certificate-generate-btn .btn-text,
.certificate-generate-btn .btn-loading {
    display: inline-block;
}

.certificate-generate-btn.loading .btn-text {
    display: none;
}

.certificate-generate-btn.loading .btn-loading {
    display: inline-block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .certificate-award-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .certificate-award-item .award-label {
        width: 100%;
    }
    
    .certificate-download-btn,
    .certificate-generate-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Row Actions */
.entry-row-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
    /* height: 100%; */
    justify-content: space-between;
}

.pay-button {
    display: inline-flex;
    align-items: center;
    background: #10b981;
    color: white;
    padding: 6px 12px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.pay-button:hover {
    background: #059669;
    color: white;
}

.pay-button svg {
    margin-right: 4px;
}

.action-buttons {
    display: flex;
    gap: 6px;
}

.action-btn {
}

.action-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
}

.view-btn:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #3b82f6;
}

.edit-btn:hover {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #f59e0b;
}

.delete-btn:hover {
    background: #fef2f2;
    border-color: #ef4444;
    color: #ef4444;
}

/* Responsive Design */
@media (max-width: 768px) {
    .entry-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
    }
    
    .entry-row-image {
        width: 60px;
        height: 60px;
        margin-right: 0;
        margin-bottom: 12px;
    }
    
    .entry-row-content {
        margin-right: 0;
        margin-bottom: 12px;
        width: 100%;
    }
    
    .entry-row-details {
        flex-direction: column;
        gap: 8px;
    }
    
    .entry-row-actions {
        flex-direction: row;
        align-items: center;
        width: 100%;
        justify-content: space-between;
    }
}

/* Summary and No Entries */
.entries-summary p {margin: 0;}

.no-entries {
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin: 20px 0;
}

.no-entries p {
    color: #6b7280;
    font-size: 16px;
    margin-bottom: 20px;
}


.btn:hover {
    background: #aa7102;
    color: white;
}

.btn-link:hover {
    background:unset;
    color:#aa7102;
    
}

.btn-primary {
    background: #3b82f6;
}

.btn-primary:hover {
    background: #aa7102;
}

/* Pagination Styles */
.entries-pagination {
    display: flex;
    justify-content: center;
    align-items: stretch;
    margin: 30px 0;
    gap: 12px;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    padding: 4px 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    gap: 6px;
}

.pagination-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #111827;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination-number:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
}

.pagination-number.current {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.pagination-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #9ca3af;
    font-size: 14px;
}

/* Responsive pagination */
@media (max-width: 768px) {
    .entries-pagination {
        gap: 8px;
    }
    
    .pagination-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .pagination-number {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .pagination-dots {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

.bsui .row {
    margin: 0;
}

.event-info .event-title {
    text-align: left;
}

.photo-award-profile-container .button {
    border-radius: unset !important;
    
}

/* Countdown Shortcode Styles */
.photo-award-countdown-wrapper {
    margin: 20px 0;
    text-align: center;
}

.countdown-active {
    display: block;
}

.countdown-expired {
    display: block;
    padding: 16px 16px 19px;
    border: 1px solid #eee;
}

.countdown-message {
    margin: 0 !important;
    font-size: 36px;
}

.countdown-timer {
    margin: 20px 0;
}

.countdown-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 32px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: #333;
    margin-bottom: 10px;
}

.countdown-days,
.countdown-hours,
.countdown-minutes,
.countdown-seconds {
    padding: 10px 15px 4px;
    min-width: 60px;
    border: 1px solid #eee;
}

.countdown-separator {
    font-size: 24px;
    color: #999;
    font-weight: normal;
}

.countdown-labels {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.countdown-labels span {
    min-width: 96px;
    text-align: center;
    text-transform: uppercase;
    font-weight: 500;
}

.countdown-link {
    margin-top: 20px;
}

.countdown-register-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.countdown-register-btn:hover {
    background-color: #333;
    color: #fff;
}

.countdown-error {
    color: #d63638;
    padding: 10px;
    background-color: #fef0f0;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

/* Responsive countdown styles */
@media (max-width: 768px) {
    .countdown-display {
        font-size: 24px;
        gap: 5px;
    }
    
    .countdown-days,
    .countdown-hours,
    .countdown-minutes,
    .countdown-seconds {
        padding: 8px 10px;
        min-width: 45px;
        font-size: 20px;
    }
    
    .countdown-separator {
        font-size: 18px;
    }
    
    .countdown-labels {
        font-size: 10px;
        gap: 5px;
    }
    
    .countdown-labels span {
        min-width: 45px;
    }
}

/* Contact Form Styles */
.photo-award-contact-form-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.photo-award-contact-form {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
}

.photo-award-contact-form .form-left {
    flex: 1;
    min-width: 300px;
}

.photo-award-contact-form .form-right {
    flex: 1;
    min-width: 300px;
}

.photo-award-contact-form .form-field {
    margin-bottom: 20px;
}

.photo-award-contact-form input[type="text"],
.photo-award-contact-form input[type="email"],
.photo-award-contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.photo-award-contact-form input[type="text"]:focus,
.photo-award-contact-form input[type="email"]:focus,
.photo-award-contact-form textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.photo-award-contact-form input.error,
.photo-award-contact-form textarea.error {
    border-color: #dc3232;
}

.photo-award-contact-form .error-message {
    color: #dc3232;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.photo-award-contact-form .form-messages {
    margin: 15px 0;
    padding: 12px 15px;
    border-radius: 4px;
    display: none;
}

.photo-award-contact-form .form-messages.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    display: block;
}

.photo-award-contact-form .form-messages.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    display: block;
}

.photo-award-contact-form .form-messages .success-message,
.photo-award-contact-form .form-messages .error-message {
    margin: 0;
}

.photo-award-contact-form .contact-submit-btn {
    background-color: #0073aa;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.photo-award-contact-form .contact-submit-btn:hover:not(:disabled) {
    background-color: #005a87;
}

.photo-award-contact-form .contact-submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.photo-award-contact-form .btn-loader {
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .photo-award-contact-form {
        flex-direction: column;
    }
    
    .photo-award-contact-form .form-left,
    .photo-award-contact-form .form-right {
        flex: 1;
        width: 100%;
    }
}

/* ===== UPLOAD PROGRESS (Entry Submission) ===== */
.upload-progress-container {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.upload-progress-container .upload-progress-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.upload-progress-container .upload-progress-fill {
    height: 100%;
    width: 0%;
    background: #df9400;
    transition: width 0.3s;
}

.upload-progress-container .upload-progress-text {
    margin: 8px 0 0;
    font-size: 14px;
    color: #555;
}

.upload-progress-per-file .upload-progress-row:last-child {
    margin-bottom: 0;
}

/* ===== AUTH PAGE (Full Page Login/Register) ===== */
/* Break out of theme content so auth fills viewport */
body:has(.pa-auth-fullpage) .entry-content,
body:has(.pa-auth-fullpage) .post-content,
body:has(.pa-auth-fullpage) .content-area,
body:has(.pa-auth-fullpage) .site-content,
body:has(.pa-auth-fullpage) main,
body:has(.pa-auth-fullpage) .post-inner,
body:has(.pa-auth-fullpage) article {
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body:has(.pa-auth-fullpage) .site,
body:has(.pa-auth-fullpage) #page,
body:has(.pa-auth-fullpage) .site-main {
    max-width: none !important;
}

body:has(.pa-auth-fullpage) {
    overflow-x: hidden !important;
}

.pa-auth-fullpage {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    min-height: 100vh !important;
    box-sizing: border-box !important;
}

.photo-award-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
}

.photo-award-auth-page .auth-page-back-home {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.photo-award-auth-page .auth-page-back-home:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.photo-award-auth-page .auth-page-back-icon {
    font-size: 16px;
}

.photo-award-auth-page .auth-page-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.photo-award-auth-page .auth-page-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.photo-award-auth-page .auth-page-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
}

.photo-award-auth-page .auth-page-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.photo-award-auth-page .auth-page-header {
    padding: 36px 32px 24px;
    text-align: center;
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
}

.photo-award-auth-page .auth-page-title {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: -0.5px;
}

.photo-award-auth-page .auth-page-subtitle {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

.photo-award-auth-page .auth-page-tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
}

.photo-award-auth-page .auth-tab {
    flex: 1;
    padding: 16px 20px;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.photo-award-auth-page .auth-tab:hover {
    color: #df9400;
}

.photo-award-auth-page .auth-tab.active {
    color: #df9400;
    border-bottom: 3px solid #df9400;
    margin-bottom: -1px;
}

.photo-award-auth-page .auth-form-panel {
    display: none;
    padding: 28px 32px 36px;
}

.photo-award-auth-page .auth-form-panel.active {
    display: block;
}

/* Override global .auth-form { display: none } - auth page forms must be visible */
.photo-award-auth-page .auth-form-panel .auth-form {
    display: block !important;
}

.photo-award-auth-page .auth-form .form-group {
    margin-bottom: 18px;
}

.photo-award-auth-page .auth-form .form-row {
    display: flex;
    gap: 16px;
}

.photo-award-auth-page .auth-form .form-row .form-group.half {
    flex: 1;
}

.photo-award-auth-page .auth-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
    color: #334155;
}

.photo-award-auth-page .auth-form label .required {
    color: #dc2626;
}

.photo-award-auth-page .auth-form .form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.photo-award-auth-page .auth-form .form-control:focus {
    outline: none;
    border-color: #df9400;
    box-shadow: 0 0 0 3px rgba(223, 148, 0, 0.15);
}

.photo-award-auth-page .auth-form .form-text {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #94a3b8;
}

.photo-award-auth-page .auth-form .form-group-actions {
    margin-top: 24px;
    margin-bottom: 0;
}

.photo-award-auth-page .auth-form .btn-auth-submit {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    background: #df9400;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}

.photo-award-auth-page .auth-form .btn-auth-submit:hover:not(:disabled) {
    background: #c58200;
}

.photo-award-auth-page .auth-form .btn-auth-submit:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.photo-award-auth-page .auth-form .form-footer {
    margin-top: 16px;
    text-align: center;
}

.photo-award-auth-page .auth-form .form-footer a {
    font-size: 14px;
    color: #df9400;
    text-decoration: none;
}

.photo-award-auth-page .auth-form .form-footer a:hover {
    text-decoration: underline;
}

.photo-award-auth-page .auth-message {
    margin: 0 32px 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.photo-award-auth-page .auth-form .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 400;
}

.photo-award-auth-page .auth-form .checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.photo-award-auth-page .auth-form .checkbox-label a {
    color: #df9400;
}

@media (max-width: 540px) {
    .photo-award-auth-page .auth-page-card {
        margin: 0 -10px;
    }
    .photo-award-auth-page .auth-form-panel {
        padding: 24px 20px 32px;
    }
    .photo-award-auth-page .auth-form .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Admin Contact Submissions Page */
.contact-submissions-table .message-preview {
    max-width: 300px;
    word-wrap: break-word;
}

.contact-submissions-table .message-full {
    max-width: 500px;
    word-wrap: break-word;
    margin-top: 10px;
}

.contact-submissions-table .toggle-message {
    margin-top: 5px;
    font-size: 12px;
}

/* ===== BUNDLES BLOCK ===== */
#photo-award-bundles-section {
    scroll-margin-top: 20px;
}
.photo-award-bundles-block {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}
.photo-award-bundles-block .bundles-empty {
    margin: 0;
    color: #777;
}
.pa-bundles-hint {
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.pa-bundles-hint:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}
.photo-award-bundles-block .bundles-title {
    margin: 0 0 8px 0;
    font-size: 18px;
}
.photo-award-bundles-block .bundles-desc {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 14px;
}
.photo-award-bundles-block .bundles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.photo-award-bundles-block .bundle-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e1e1e1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.photo-award-bundles-block .bundle-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.photo-award-bundles-block .bundle-type-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    font-weight: 600;
}
.photo-award-bundles-block .bundle-submission-info {
    font-size: 14px;
    color: #5c4a1a;
}
.photo-award-bundles-block .bundle-card .btn {
    margin-top: 4px;
}
.photo-award-bundles-block .bundle-card .btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}
.photo-award-bundles-block .bundle-card .btn-secondary:hover {
    background: #e5e5e5;
}
.pa-bundle-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.pa-bundle-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}
.pa-bundle-modal-content {
    position: relative;
    background: #fff;
    max-width: 440px;
    width: 100%;
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.pa-bundle-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
}
.pa-bundle-modal-close:hover {
    color: #333;
}
.pa-bundle-modal-title {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
}
.pa-bundle-modal-desc {
    margin: 0 0 12px 0;
    font-size: 15px;
    line-height: 1.5;
    color: #555;
}
.pa-bundle-modal-price {
    margin: 0 0 20px 0;
    font-size: 22px;
    font-weight: 700;
    color: #df9400;
}
.pa-bundle-modal-actions {
    display: flex;
    gap: 10px;
}
.pa-bundle-modal-actions .btn {
    flex: 1;
}
.photo-award-bundles-block .bundle-card-featured {
    border: 2px solid #df9400;
    box-shadow: 0 4px 16px rgba(223,148,0,0.15);
}
.photo-award-bundles-block .bundle-badge {
    position: absolute;
    top: 12px;
    right: -30px;
    background: linear-gradient(135deg, #df9400, #c9a84c);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 36px;
    transform: rotate(35deg);
}
.photo-award-bundles-block .bundle-name {
    font-weight: 700;
    font-size: 17px;
    color: #1a1a2e;
}
.photo-award-bundles-block .bundle-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
}
.photo-award-bundles-block .bundle-price {
    color: #df9400;
    font-weight: 800;
    font-size: 24px;
}
.photo-award-bundles-block .bundle-regular-price {
    font-size: 14px;
    color: #999;
}
.photo-award-bundles-block .bundle-credit-amount {
    font-size: 15px;
    color: #5c4a1a;
    font-weight: 600;
    white-space: nowrap;
}
.photo-award-bundles-block .bundle-credit-highlight {
    background: linear-gradient(135deg, #fff8e7, #fef3cd);
    border: 1px solid #f0d78c;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    color: #5c4a1a;
    line-height: 1.4;
}
.photo-award-bundles-block .bundle-credit-highlight .credit-icon {
    color: #df9400;
    margin-right: 4px;
}
.photo-award-bundles-block .bundle-savings {
    font-size: 13px;
    font-weight: 600;
    color: #28a745;
}
.photo-award-bundles-block .bundle-entries {
    font-size: 13px;
    color: #666;
}
.photo-award-bundles-block .bundle-desc-text {
    font-size: 13px;
    color: #777;
    line-height: 1.4;
}
.photo-award-bundles-block .buy-bundle-btn {
    margin-top: auto;
    padding: 10px 16px;
    font-weight: 600;
}
.photo-award-bundles-block .bundle-fine-print {
    font-size: 11px;
    color: #aaa;
    text-align: center;
    margin-top: 2px;
}

/* Photo Award notice toast - centered on screen for better visibility */
#photoAwardNotice {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 999999 !important;
    max-width: 90% !important;
    padding: 14px 24px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
}
#photoAwardNotice.notice-success {
    background: #d4edda !important;
    color: #155724 !important;
    border: 1px solid #c3e6cb !important;
}
#photoAwardNotice.notice-error {
    background: #f8d7da !important;
    color: #721c24 !important;
    border: 1px solid #f5c6cb !important;
}
#photoAwardNotice.notice-info {
    background: #d1ecf1 !important;
    color: #0c5460 !important;
    border: 1px solid #bee5eb !important;
}

/* Dimension recommendation - small notice near thumbnail when image is below minimum */
.preview-item .pa-dimension-warning,
.pa-upload-preview .pa-dimension-warning,
.upload-preview .pa-dimension-warning,
.pro-preview-item .pa-dimension-warning {
    position: absolute;
    bottom: 4px;
    left: 4px;
    right: 4px;
    font-size: 10px;
    line-height: 1.2;
    padding: 4px 6px;
    background: rgba(223, 148, 0, 0.95);
    color: #fff;
    border-radius: 4px;
    z-index: 2;
}