/**
 * 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;
}

.single-event .page-header {
    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;
}

/* ===== NEW ENTRY PAGE ===== */
.new-entry-page {
    padding: 20px 0;
}

.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;
   
    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%;
    }
}

/* 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;
}