/* Event Guestlist Manager Pro - Frontend Styles */

/* Form Container */
#egl-registration-form,
#egl-verification-form {
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Event Header */
.egl-event-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.egl-event-image {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.egl-event-header h3 {
    color: #333;
    margin: 10px 0;
    font-size: 28px;
}

.egl-event-details {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: left;
}

.egl-event-details p {
    margin: 8px 0;
    color: #666;
}

/* Form Groups */
.egl-form-group {
    margin-bottom: 20px;
}

.egl-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.egl-form-group input,
.egl-form-group textarea,
.egl-form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.egl-form-group input:focus,
.egl-form-group textarea:focus,
.egl-form-group select:focus {
    outline: none;
    border-color: #4CAF50;
}

/* Buttons */
.egl-button {
    background: #4CAF50;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
    display: inline-block;
    margin: 5px;
    text-decoration: none;
}

.egl-button:hover {
    background: #45a049;
}

/* Verification Methods */
.egl-verification-methods {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

/* QR Scanner */
#qr-scanner {
    text-align: center;
    margin: 30px 0;
}

#qr-video {
    max-width: 100%;
    border: 2px solid #4CAF50;
    border-radius: 8px;
}

/* Results */
#egl-registration-result,
#egl-verification-result {
    margin-top: 20px;
}

.egl-success {
    background: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.egl-error {
    background: #f8d7da;
    color: #721c24;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
}

.egl-warning {
    background: #fff3cd;
    color: #856404;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.egl-info {
    background: #e2f0fb;
    color: #0c5460;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #17a2b8;
    text-align: center;
}

.egl-success h4,
.egl-error h4 {
    margin: 0 0 10px 0;
}

/* Guest Details */
.egl-guest-details {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.egl-guest-details h5 {
    margin: 0 0 10px 0;
    color: #333;
}

.egl-guest-details p {
    margin: 5px 0;
    color: #666;
}

/* Download Section */
.egl-download-section {
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    background: #e7f3ff;
    border-radius: 8px;
}

.egl-download-button {
    background: #28a745;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin-top: 10px;
}

.egl-download-button:hover {
    background: #218838;
}

/* Guest List Styles */
.egl-guest-list-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.egl-guest-list-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 5px;
    overflow: hidden;
}

.egl-guest-list-table th,
.egl-guest-list-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.egl-guest-row {
    cursor: pointer;
    transition: background-color 0.2s;
}

.egl-guest-row:hover {
    background-color: #f5f5f5;
}

.egl-guest-details-row td {
    padding: 0;
}

.egl-guest-details {
    padding: 15px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #ddd;
}

.egl-guest-details h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}

.egl-guest-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.egl-detail-item {
    margin-bottom: 8px;
}

.egl-guest-list-table th {
    background-color: #f5f5f5;
    font-weight: bold;
    color: #333;
}

.egl-guest-list-table tr:last-child td {
    border-bottom: none;
}

.egl-guest-list-table tr:hover {
    background-color: #f9f9f9;
}

.egl-checked-in {
    background-color: #f0fff0;
}

.egl-not-checked-in {
    background-color: #fff;
}

.egl-list-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.egl-list-filter {
    display: flex;
    margin: 20px 0;
    text-align: center;
}

.egl-filter-button {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.egl-filter-button:hover {
    background: #e9e9e9;
}

.egl-filter-button.active {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.egl-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.egl-search-box {
    flex: 0 0 250px;
}

.egl-search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.egl-button-group {
    display: flex;
    gap: 8px;
}

.egl-button {
    padding: 8px 15px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.egl-button:hover {
    background-color: #005f8b;
}

.dashicons-spin {
    animation: dashicons-spin 1s infinite;
    animation-timing-function: linear;
}

@keyframes dashicons-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.egl-loading-message {
    text-align: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin: 10px 0;
    font-style: italic;
    color: #666;
}

/* Print styles */
@media print {
    .egl-list-controls, 
    .egl-guest-row:hover,
    .egl-guest-details-row,
    .egl-no-results {
        display: none !important;
    }
    
    .egl-guest-list-container {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .egl-guest-list-table {
        width: 100%;
        border-collapse: collapse;
    }
    
    .egl-guest-list-table th,
    .egl-guest-list-table td {
        border: 1px solid #ddd;
    }
    
    .egl-stats {
        margin-bottom: 20px;
    }
    
    .egl-event-header {
        margin-bottom: 20px;
    }
}

.egl-stats {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.egl-stat-box {
    flex: 1;
    background: white;
    padding: 15px;
    margin: 0 10px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-align: center;
}

.egl-stat-box h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.egl-stat-box p {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    color: #4CAF50;
}

.egl-verified {
    color: #28a745;
    font-weight: bold;
}

.egl-pending {
    color: #6c757d;
}

/* Responsive adjustments for guest list */
@media (max-width: 768px) {
    .egl-guest-list-table {
        display: block;
        overflow-x: auto;
    }
    
    .egl-stats {
        flex-direction: column;
    }
    
    .egl-stat-box {
        margin: 5px 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    #egl-registration-form,
    #egl-verification-form {
        padding: 20px;
        margin: 10px;
    }
    
    .egl-verification-methods {
        flex-direction: column;
        align-items: stretch;
    }
    
    .egl-button {
        width: 100%;
        margin: 5px 0;
    }
}

.egl-info {
    background-color: #e7f3fe;
    border-left: 6px solid #2196F3;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
}

/* Action Buttons */
.egl-actions-column {
    text-align: center;
    white-space: nowrap;
}

.egl-action-buttons {
    display: flex;
    gap: 5px;
    justify-content: center;
    align-items: center;
}

.egl-action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    text-decoration: none;
    min-width: 70px;
    justify-content: center;
}

.egl-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.egl-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.egl-checkin-btn {
    background-color: #28a745;
    color: white;
}

.egl-checkin-btn:hover:not(:disabled) {
    background-color: #218838;
}

.egl-checkout-btn {
    background-color: #ffc107;
    color: #212529;
}

.egl-checkout-btn:hover:not(:disabled) {
    background-color: #e0a800;
}

.egl-delete-btn {
    background-color: #dc3545;
    color: white;
}

.egl-delete-btn:hover:not(:disabled) {
    background-color: #c82333;
}

.egl-action-btn .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Notification styles */
.egl-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 300px;
    cursor: pointer;
}

.egl-notification.egl-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.egl-notification.egl-error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Responsive adjustments for action buttons */
@media (max-width: 768px) {
    .egl-action-buttons {
        flex-direction: column;
        gap: 3px;
    }
    
    .egl-action-btn {
        font-size: 11px;
        padding: 4px 8px;
        min-width: 60px;
    }
    
    .egl-action-btn .dashicons {
        font-size: 12px;
        width: 12px;
        height: 12px;
    }
}