/* Event Host Gallery Styles */

/* Registration Form */
.ehg-registration-form {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.ehg-registration-form h2 {
    margin-top: 0;
}

.ehg-registration-form input[type="text"],
.ehg-registration-form input[type="email"],
.ehg-registration-form input[type="password"] {
    width: 100%;
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.ehg-registration-form button {
    background: #2271b1;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.ehg-registration-form button:hover {
    background: #135e96;
}

.ehg-error {
    background: #ffeaea;
    border-left: 4px solid #d63638;
    padding: 10px 15px;
    margin: 15px 0;
    color: #d63638;
}

.ehg-success {
    background: #eafaea;
    border-left: 4px solid #00a32a;
    padding: 10px 15px;
    margin: 15px 0;
    color: #00a32a;
}

/* Guest Upload Page */
.ehg-guest-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.ehg-event-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: #f7f7f7;
    border-radius: 8px;
}

.ehg-event-cta {
    margin: 20px 0 0 0;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.95rem;
    color: #64748b;
}

.ehg-event-cta a {
    color: #1e293b;
    font-weight: 600;
    text-decoration: none;
}

.ehg-event-cta a:hover {
    text-decoration: underline;
}

.ehg-event-header h1 {
    margin: 0 0 15px 0;
    font-size: 2.5em;
    color: #1d2327;
}

.ehg-event-date,
.ehg-event-address {
    margin: 10px 0;
    font-size: 1.1em;
    color: #50575e;
}

.ehg-upload-section {
    background: #fff;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 40px;
}

.ehg-upload-section h2 {
    margin-top: 0;
}

.ehg-upload-form label {
    display: block;
    margin: 15px 0 5px 0;
    font-weight: 600;
}

.ehg-upload-form input[type="text"],
.ehg-upload-form input[type="email"],
.ehg-upload-form input[type="file"],
.ehg-upload-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.ehg-upload-form textarea {
    resize: vertical;
}

.ehg-upload-form button {
    background: #2271b1;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 15px;
}

.ehg-upload-form button:hover {
    background: #135e96;
}

.ehg-upload-form small {
    display: block;
    margin-top: 5px;
    color: #646970;
}

/* Gallery Section */
.ehg-gallery-section {
    background: #fff;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.ehg-gallery-section h2 {
    margin-top: 0;
}

.ehg-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.ehg-gallery-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ehg-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.ehg-gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.ehg-gallery-item .ehg-comment {
    padding: 15px;
    margin: 0;
    font-style: italic;
    color: #50575e;
    border-bottom: 1px solid #f0f0f1;
}

.ehg-gallery-item .ehg-author {
    padding: 10px 15px;
    margin: 0;
    font-weight: 600;
    color: #1d2327;
    text-align: right;
}

/* Slideshow Mode */
.ehg-gallery-item[style*="display: none"] {
    display: none !important;
}

/* Fullwidth Slideshow Mode */
.ehg-gallery.ehg-slideshow-active {
    display: block !important;
    max-width: 100%;
    width: 100%;
}

.ehg-gallery.ehg-slideshow-active .ehg-gallery-item {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

.ehg-gallery.ehg-slideshow-active .ehg-gallery-item img {
    width: 100%;
    height: auto;
    min-height: 500px;
    max-height: 80vh;
    object-fit: contain;
    background: #000;
}

.ehg-gallery.ehg-slideshow-active .ehg-gallery-item .ehg-comment {
    font-size: 1.2em;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
}

.ehg-gallery.ehg-slideshow-active .ehg-gallery-item .ehg-author {
    font-size: 1.1em;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
}

/* Dashboard Styles */
.ehg-dashboard .ehg-tabs {
    margin: 20px 0;
}

.ehg-dashboard .ehg-tabs .button {
    margin-right: 10px;
}

.ehg-events-table {
    table-layout: auto;
}

.ehg-events-table th,
.ehg-events-table td {
    padding: 10px 12px;
    vertical-align: middle;
}

.ehg-events-table .ehg-url-input {
    font-size: 12px;
    padding: 5px 8px;
}

.ehg-events-table .button {
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.5;
}

.ehg-uploads-grid {
    margin-top: 20px;
}

.ehg-upload-item {
    background: #fff;
}

/* Guest Submissions Table */
.ehg-submissions-table {
    margin-top: 20px;
}

.ehg-submissions-table th,
.ehg-submissions-table td {
    padding: 12px;
    vertical-align: middle;
}

.ehg-submissions-table td img {
    display: block;
}

.ehg-submissions-table .button-small {
    padding: 4px 8px;
    font-size: 11px;
    line-height: 1.5;
    height: auto;
}

/* Frontend Gallery Shortcode */
.ehg-frontend-gallery {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.ehg-event-info {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f7f7f7;
    border-radius: 8px;
}

.ehg-gallery-controls {
    text-align: center;
    margin: 20px 0;
}

.ehg-slideshow-btn {
    background: #2271b1;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.ehg-slideshow-btn:hover {
    background: #135e96;
}

.ehg-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* Events Archive Page */
.ehg-events-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.ehg-events-archive h1 {
    margin-bottom: 30px;
    font-size: 2.5em;
    color: #1d2327;
}

.ehg-filters {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.ehg-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.ehg-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 150px;
}

.ehg-filter-group label {
    font-weight: 600;
    color: #374151;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ehg-filter-group input[type="text"],
.ehg-filter-group select {
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    transition: all 0.3s ease;
    font-family: inherit;
}

.ehg-filter-group input[type="text"]:focus,
.ehg-filter-group select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.ehg-filter-group input[type="text"] {
    min-width: 200px;
    flex: 1.5;
}

.ehg-filter-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.ehg-filter-actions {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.ehg-filter-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
    white-space: nowrap;
}

.ehg-filter-btn span {
    font-size: 14px;
}

.ehg-filter-btn-primary {
    background: #2271b1;
    color: #fff;
}

.ehg-filter-btn-primary:hover {
    background: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(34, 113, 177, 0.3);
}

.ehg-filter-btn-reset {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.ehg-filter-btn-reset:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    color: #1f2937;
    transform: translateY(-1px);
}

.ehg-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.ehg-event-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ehg-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ehg-event-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.ehg-event-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ehg-event-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ehg-event-thumbnail.ehg-no-thumbnail {
    color: #646970;
    font-size: 14px;
}

.ehg-event-info {
    padding: 20px;
}

.ehg-event-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.3em;
    color: #1d2327;
}

.ehg-event-info .ehg-event-date {
    margin: 0;
    color: #646970;
    font-size: 0.95em;
}

/* Single Event Page */
.ehg-single-event {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.ehg-back-link {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.ehg-back-link .button {
    display: inline-block;
    padding: 10px 20px;
    background: #2271b1;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.ehg-back-link .button:hover {
    background: #135e96;
}

/* Responsive */
@media (max-width: 768px) {
    .ehg-gallery,
    .ehg-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .ehg-event-header h1 {
        font-size: 2em;
    }
    
    .ehg-filter-form {
        flex-direction: column;
    }
    
    .ehg-filter-group {
        width: 100%;
        min-width: auto;
    }
    
    .ehg-filter-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .ehg-filter-btn {
        flex: 1;
        justify-content: center;
    }
    
    .ehg-events-grid {
        grid-template-columns: 1fr;
    }
}

/* Fullscreen Slideshow Modal */
.ehg-slideshow-modal {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.95) !important;
    z-index: 999999 !important;
    justify-content: center !important;
    align-items: center !important;
    animation: fadeIn 0.3s ease-in;
}

.ehg-slideshow-modal[style*="display: flex"],
.ehg-slideshow-modal.ehg-modal-active {
    display: flex !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.ehg-slideshow-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.ehg-slideshow-close {
    position: fixed !important;
    top: 20px !important;
    right: 30px !important;
    background: #ffffff !important;
    border: 3px solid rgba(0, 0, 0, 0.2) !important;
    color: #000000 !important;
    font-size: 42px !important;
    font-weight: bold !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    z-index: 1000001 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
    padding: 0 !important;
    margin: 0 !important;
    text-decoration: none !important;
    outline: none !important;
    font-family: Arial, sans-serif !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

.ehg-slideshow-close:hover {
    background: #fff !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
}

.ehg-slideshow-close:active {
    transform: scale(0.95) !important;
}

.ehg-slideshow-close:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8) !important;
    outline-offset: 2px !important;
}

.ehg-slideshow-image-container {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ehg-slideshow-image-container img {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.ehg-slideshow-info {
    margin-top: 30px;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 0 20px;
}

.ehg-slideshow-comment {
    font-size: 1.3em;
    line-height: 1.6;
    margin: 0 0 15px 0;
    font-style: italic;
    color: #fff;
}

.ehg-slideshow-author {
    font-size: 1.1em;
    font-weight: 600;
    margin: 0;
    color: #fff;
    opacity: 0.9;
}

/* Responsive adjustments for slideshow */
@media (max-width: 768px) {
    .ehg-slideshow-close {
        top: 10px !important;
        right: 15px !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 36px !important;
    }
    
    .ehg-slideshow-image-container {
        max-width: 95%;
        max-height: 95%;
    }
    
    .ehg-slideshow-image-container img {
        max-height: 70vh;
    }
    
    .ehg-slideshow-comment {
        font-size: 1.1em;
    }
    
    .ehg-slideshow-author {
        font-size: 1em;
    }
    
    .ehg-slideshow-info {
        margin-top: 20px;
        padding: 0 15px;
    }
}

/* ==========================================
   ADMIN DASHBOARD STYLES
   ========================================== */

.ehg-admin-dashboard {
    max-width: 1400px;
    padding: 20px;
}

.ehg-admin-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.ehg-admin-title .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #4f46e5;
}

.ehg-title-count {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 20px;
    margin-left: auto;
}

/* Stats Grid */
.ehg-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ehg-stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.ehg-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.ehg-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ehg-stat-icon .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: #fff;
}

.ehg-stat-primary .ehg-stat-icon {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.ehg-stat-success .ehg-stat-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.ehg-stat-info .ehg-stat-icon {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.ehg-stat-warning .ehg-stat-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.ehg-stat-content {
    flex: 1;
}

.ehg-stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 4px;
}

.ehg-stat-label {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 8px;
}

.ehg-stat-sub {
    font-size: 12px;
    color: #10b981;
    font-weight: 500;
}

/* Approval Stats */
.ehg-approval-stats {
    margin-bottom: 30px;
}

.ehg-approval-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ehg-approval-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 20px 0;
}

.ehg-approval-bars {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ehg-approval-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ehg-approval-label {
    width: 80px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
}

.ehg-progress-bar {
    flex: 1;
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.ehg-progress {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease;
}

.ehg-progress-success {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.ehg-progress-warning {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.ehg-approval-count {
    width: 60px;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

/* Chart Section */
.ehg-chart-section {
    margin-bottom: 30px;
}

.ehg-chart-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ehg-chart-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 20px 0;
}

.ehg-chart-container {
    height: 300px;
}

/* Admin Grid */
.ehg-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.ehg-admin-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

.ehg-admin-card.ehg-full-width {
    grid-column: 1 / -1;
}

.ehg-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.ehg-card-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ehg-card-header h3 .dashicons {
    color: #4f46e5;
}

.ehg-view-all {
    font-size: 13px;
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
}

.ehg-view-all:hover {
    text-decoration: underline;
}

.ehg-card-body {
    padding: 20px 24px;
}

.ehg-card-body.ehg-no-padding {
    padding: 0;
}

.ehg-no-data {
    text-align: center;
    color: #94a3b8;
    padding: 40px;
    font-size: 14px;
}

/* Mini Table */
.ehg-mini-table {
    width: 100%;
    border-collapse: collapse;
}

.ehg-mini-table th,
.ehg-mini-table td {
    padding: 12px 8px;
    text-align: left;
    font-size: 13px;
}

.ehg-mini-table th {
    font-weight: 600;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
}

.ehg-mini-table td {
    border-bottom: 1px solid #f1f5f9;
}

.ehg-mini-table tr:last-child td {
    border-bottom: none;
}

.ehg-host-badge {
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #475569;
}

.ehg-photo-count {
    font-weight: 600;
    color: #10b981;
}

.ehg-date {
    color: #64748b;
}

/* Top Hosts List */
.ehg-top-hosts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ehg-top-host-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 10px;
}

.ehg-rank {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.ehg-host-avatar img {
    border-radius: 50%;
}

.ehg-host-info {
    flex: 1;
}

.ehg-host-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.ehg-host-stats {
    font-size: 12px;
    color: #64748b;
}

/* Recent Photos Grid */
.ehg-recent-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.ehg-recent-photo-item {
    position: relative;
}

.ehg-photo-thumb {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
}

.ehg-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ehg-photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
}

.ehg-photo-status {
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.ehg-photo-status.approved {
    background: #10b981;
    color: #fff;
}

.ehg-photo-status.pending {
    background: #f59e0b;
    color: #fff;
}

.ehg-photo-meta {
    padding: 10px 4px;
}

.ehg-photo-guest {
    font-weight: 600;
    font-size: 13px;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ehg-photo-event {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ehg-photo-time {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}

/* Quick Actions */
.ehg-quick-actions {
    margin-top: 30px;
}

.ehg-quick-actions h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

.ehg-action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ehg-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
}

.ehg-action-btn:hover {
    background: #4f46e5;
    color: #fff;
    border-color: #4f46e5;
}

.ehg-action-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Filters Bar */
.ehg-filters-bar {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ehg-filter-form {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ehg-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ehg-filter-group label {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
}

.ehg-filter-group select,
.ehg-filter-group input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    min-width: 150px;
}

.ehg-search-group input {
    min-width: 200px;
}

/* Data Table */
.ehg-data-table {
    width: 100%;
    border-collapse: collapse;
}

.ehg-data-table th,
.ehg-data-table td {
    padding: 16px 20px;
    text-align: left;
    font-size: 13px;
    vertical-align: middle;
}

.ehg-data-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.ehg-data-table td {
    border-bottom: 1px solid #f1f5f9;
}

.ehg-data-table tr:hover td {
    background: #f8fafc;
}

/* Event Cell */
.ehg-event-cell strong {
    display: block;
    color: #1e293b;
    margin-bottom: 4px;
}

.ehg-event-code {
    font-size: 11px;
    color: #94a3b8;
    font-family: monospace;
}

/* Host Cell */
.ehg-host-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ehg-host-cell img {
    border-radius: 50%;
}

.ehg-host-email {
    font-size: 11px;
    color: #94a3b8;
}

.ehg-username {
    font-size: 11px;
    color: #94a3b8;
}

/* Date Cell */
.ehg-date-cell {
    display: flex;
    flex-direction: column;
}

.ehg-date-day {
    font-weight: 600;
    color: #1e293b;
}

.ehg-date-year {
    font-size: 11px;
    color: #94a3b8;
}

.ehg-time-ago {
    font-size: 11px;
    color: #94a3b8;
}

/* Location Cell */
.ehg-location-cell {
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #64748b;
}

/* Photos Cell */
.ehg-photos-cell {
    font-weight: 600;
}

.ehg-approved {
    color: #10b981;
}

.ehg-separator {
    color: #cbd5e1;
    margin: 0 2px;
}

.ehg-total {
    color: #64748b;
}

.ehg-guest-count {
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    color: #475569;
}

/* Status Badge */
.ehg-status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.ehg-status-badge.upcoming {
    background: #dcfce7;
    color: #15803d;
}

.ehg-status-badge.past {
    background: #f1f5f9;
    color: #64748b;
}

.ehg-status-badge.verified {
    background: #dcfce7;
    color: #15803d;
}

.ehg-status-badge.unverified {
    background: #fef3c7;
    color: #b45309;
}

/* Actions Cell */
.ehg-actions-cell {
    display: flex;
    gap: 8px;
}

.ehg-action-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.ehg-action-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.ehg-action-link.view {
    background: #eff6ff;
    color: #3b82f6;
}

.ehg-action-link.view:hover {
    background: #3b82f6;
    color: #fff;
}

.ehg-action-link.edit {
    background: #f0fdf4;
    color: #22c55e;
}

.ehg-action-link.edit:hover {
    background: #22c55e;
    color: #fff;
}

.ehg-action-link.delete {
    background: #fef2f2;
    color: #ef4444;
}

.ehg-action-link.delete:hover {
    background: #ef4444;
    color: #fff;
}

/* Count Badge */
.ehg-count-badge {
    display: inline-block;
    min-width: 28px;
    text-align: center;
    padding: 4px 10px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    border-radius: 12px;
    font-weight: 600;
    font-size: 12px;
}

.ehg-count-badge.secondary {
    background: linear-gradient(135deg, #10b981, #059669);
}

/* Latest Event */
.ehg-latest-event {
    display: flex;
    flex-direction: column;
}

.ehg-latest-event span:first-child {
    font-weight: 500;
    color: #1e293b;
}

.ehg-event-date {
    font-size: 11px;
    color: #94a3b8;
}

.ehg-no-event {
    color: #94a3b8;
    font-style: italic;
    font-size: 12px;
}

/* Empty State */
.ehg-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.ehg-empty-state .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.ehg-empty-state p {
    font-size: 14px;
    margin: 0;
}

/* Bulk Actions */
.ehg-bulk-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ehg-bulk-actions select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
}

.ehg-select-all-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    margin-left: auto;
}

/* Photos Admin Grid */
.ehg-photos-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.ehg-photo-admin-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    transition: all 0.2s;
    position: relative;
}

.ehg-photo-admin-item:hover {
    border-color: #4f46e5;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.ehg-photo-admin-item.approved {
    border-color: #10b981;
}

.ehg-photo-admin-item.pending {
    border-color: #f59e0b;
}

.ehg-photo-checkbox {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
}

.ehg-photo-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.ehg-photo-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.ehg-photo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ehg-photo-status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.ehg-photo-status-badge.approved {
    background: #10b981;
    color: #fff;
}

.ehg-photo-status-badge.pending {
    background: #f59e0b;
    color: #fff;
}

.ehg-photo-details {
    padding: 16px;
}

.ehg-photo-guest-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.ehg-photo-event-name {
    font-size: 12px;
    color: #4f46e5;
    margin-bottom: 4px;
}

.ehg-photo-host {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 4px;
}

.ehg-photo-date {
    font-size: 11px;
    color: #94a3b8;
}

.ehg-photo-comment {
    font-size: 12px;
    color: #64748b;
    font-style: italic;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.ehg-photo-actions {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.ehg-mini-btn {
    flex: 1;
    padding: 8px;
    text-align: center;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.2s;
}

.ehg-mini-btn.view {
    background: #eff6ff;
    color: #3b82f6;
}

.ehg-mini-btn.view:hover {
    background: #3b82f6;
    color: #fff;
}

.ehg-mini-btn.approve {
    background: #dcfce7;
    color: #15803d;
}

.ehg-mini-btn.approve:hover {
    background: #22c55e;
    color: #fff;
}

.ehg-mini-btn.unapprove {
    background: #fef3c7;
    color: #b45309;
}

.ehg-mini-btn.unapprove:hover {
    background: #f59e0b;
    color: #fff;
}

/* Pagination */
.ehg-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.ehg-page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #475569;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.ehg-page-link:hover {
    background: #f1f5f9;
    border-color: #4f46e5;
    color: #4f46e5;
}

.ehg-page-link.active {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #fff;
}

/* Responsive Admin */
@media (max-width: 1200px) {
    .ehg-admin-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .ehg-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ehg-filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ehg-filter-group {
        width: 100%;
    }
    
    .ehg-filter-group select,
    .ehg-filter-group input {
        width: 100%;
    }
    
    .ehg-data-table {
        display: block;
        overflow-x: auto;
    }
    
    .ehg-photos-admin-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .ehg-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .ehg-stat-card {
        padding: 16px;
    }
    
    .ehg-stat-number {
        font-size: 24px;
    }
    
    .ehg-photos-admin-grid {
        grid-template-columns: 1fr;
    }
    
    .ehg-recent-photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================
   EVENT DETAIL PAGE STYLES
   ========================================== */

.ehg-detail-header {
    margin-bottom: 24px;
}

.ehg-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
}

.ehg-back-link:hover {
    color: #4338ca;
}

.ehg-back-link .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.ehg-event-detail-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.ehg-event-banner {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    padding: 40px;
    color: #fff;
}

.ehg-event-title-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.ehg-event-title-section h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.ehg-event-title-section .ehg-status-badge {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.ehg-event-title-section .ehg-status-badge.upcoming {
    background: #10b981;
}

.ehg-event-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.ehg-event-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0.95;
}

.ehg-event-meta-item .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Detail Stats */
.ehg-detail-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #e2e8f0;
}

.ehg-detail-stat {
    background: #fff;
    padding: 24px;
    text-align: center;
}

.ehg-detail-stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 8px;
}

.ehg-detail-stat.success .ehg-detail-stat-number {
    color: #10b981;
}

.ehg-detail-stat.warning .ehg-detail-stat-number {
    color: #f59e0b;
}

.ehg-detail-stat.info .ehg-detail-stat-number {
    color: #0ea5e9;
}

.ehg-detail-stat-label {
    display: block;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

/* Detail Links */
.ehg-detail-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 24px;
    background: #f8fafc;
}

.ehg-link-card {
    background: #fff;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.ehg-link-card h4 {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    margin: 0 0 10px 0;
}

.ehg-link-copy {
    display: flex;
    gap: 8px;
}

.ehg-link-copy input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    background: #f8fafc;
}

.ehg-link-copy .button {
    padding: 8px 16px;
    font-size: 12px;
}

/* Detail Description */
.ehg-detail-description {
    padding: 24px;
    border-top: 1px solid #e2e8f0;
}

.ehg-detail-description h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 12px 0;
}

.ehg-detail-description p {
    color: #475569;
    line-height: 1.7;
    margin: 0;
}

/* Detail Photos Grid */
.ehg-detail-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.ehg-detail-photo-item {
    background: #f8fafc;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s;
}

.ehg-detail-photo-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.ehg-detail-photo-image {
    position: relative;
    aspect-ratio: 1;
}

.ehg-detail-photo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ehg-detail-photo-status {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.ehg-detail-photo-status.approved {
    background: #10b981;
    color: #fff;
}

.ehg-detail-photo-status.pending {
    background: #f59e0b;
    color: #fff;
}

.ehg-detail-photo-info {
    padding: 12px;
}

.ehg-detail-photo-info strong {
    display: block;
    font-size: 13px;
    color: #1e293b;
    margin-bottom: 4px;
}

.ehg-detail-photo-info span {
    font-size: 11px;
    color: #94a3b8;
}

.ehg-detail-photo-comment {
    margin: 8px 0 0 0;
    font-size: 12px;
    color: #64748b;
    font-style: italic;
}

/* Timeline */
.ehg-timeline {
    position: relative;
    padding-left: 30px;
}

.ehg-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.ehg-timeline-item {
    position: relative;
    padding-bottom: 24px;
}

.ehg-timeline-item:last-child {
    padding-bottom: 0;
}

.ehg-timeline-dot {
    position: absolute;
    left: -26px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #e2e8f0;
}

.ehg-timeline-dot.created {
    border-color: #4f46e5;
    background: #4f46e5;
}

.ehg-timeline-dot.upload {
    border-color: #10b981;
    background: #10b981;
}

.ehg-timeline-dot.event {
    border-color: #f59e0b;
    background: #f59e0b;
}

.ehg-timeline-content strong {
    display: block;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 4px;
}

.ehg-timeline-content span {
    font-size: 13px;
    color: #64748b;
}

/* Responsive Event Detail */
@media (max-width: 768px) {
    .ehg-event-banner {
        padding: 24px;
    }
    
    .ehg-event-title-section h1 {
        font-size: 24px;
    }
    
    .ehg-detail-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ehg-detail-links {
        grid-template-columns: 1fr;
    }
    
    .ehg-link-copy {
        flex-wrap: wrap;
    }
    
    .ehg-link-copy input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .ehg-detail-stats {
        grid-template-columns: 1fr;
    }
    
    .ehg-detail-stat-number {
        font-size: 28px;
    }
    
    .ehg-detail-photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}