/**
 * Event Manager Plugin Styles
 */

/* General Styles */
.event-manager-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Event Archive/List Styles */
.event-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.event-list-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.event-list-item .event-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.event-list-item .event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.event-list-item .event-content {
    padding: 20px;
}

.event-list-item .event-title {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    line-height: 1.4;
}

.event-list-item .event-title a {
    color: #333;
    text-decoration: none;
}

.event-list-item .event-meta {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.event-list-item .event-date,
.event-list-item .event-location {
    display: block;
    margin-bottom: 5px;
}

.event-list-item .event-excerpt {
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
}

.event-list-item .event-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.event-list-item .event-link:hover {
    background-color: #005c87;
}

/* Single Event Styles */
.event-single {
    margin-bottom: 40px;
}

.event-single .entry-header {
    margin-bottom: 30px;
}

.event-single .entry-title {
    margin-bottom: 10px;
    font-size: 2rem;
    line-height: 1.2;
}

.event-single .event-subject {
    margin: 0 0 20px 0;
    font-size: 1.2rem;
    color: #666;
    font-weight: normal;
}

.event-single .event-details {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.event-single .event-meta {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.event-single .event-meta-item {
    margin-bottom: 10px;
}

.event-single .meta-label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.event-single .meta-value {
    color: #555;
}

.event-single .entry-content {
    margin-bottom: 30px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #333;
}

.event-tickets-section {
    margin-bottom: 30px;
}

.event-single .entry-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #777;
}

.event-single .event-categories,
.event-single .event-tags {
    margin-bottom: 10px;
}

.event-single .categories-label,
.event-single .tags-label {
    font-weight: bold;
    margin-right: 5px;
}

.event-single .event-category,
.event-single .event-tag {
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 5px;
    padding: 3px 8px;
    background-color: #f1f1f1;
    border-radius: 3px;
    text-decoration: none;
    color: #666;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.event-single .event-category:hover,
.event-single .event-tag:hover {
    background-color: #e1e1e1;
    color: #333;
}

/* Tickets Display Styles */
.event-tickets-container {
    margin-bottom: 30px;
}

.event-tickets-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.event-ticket {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-ticket:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.event-ticket .ticket-name {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    color: #333;
}

.event-ticket .ticket-description {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

.event-ticket .ticket-price {
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #0073aa;
}

.event-ticket .ticket-availability {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #777;
}

.event-ticket .ticket-actions {
    margin-top: 15px;
}

.ticket-register-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ticket-register-button:hover {
    background-color: #005c87;
}

.ticket-sold-out {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f5f5f5;
    color: #999;
    border-radius: 4px;
    font-size: 0.95rem;
}

/* Registration Form Styles */
.event-registration-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.event-registration-form .form-section {
    margin-bottom: 30px;
}

.event-registration-form .form-section h3 {
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 1.25rem;
    color: #333;
}

.event-registration-form .form-fields {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.event-registration-form .form-field {
    margin-bottom: 20px;
    padding: 0 10px;
    box-sizing: border-box;
}

.event-registration-form .form-field.half-width {
    width: 50%;
}

.event-registration-form .form-field.full-width {
    width: 100%;
}

.event-registration-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.event-registration-form .required {
    color: #dc3232;
    margin-left: 3px;
}

.event-registration-form input[type="text"],
.event-registration-form input[type="email"],
.event-registration-form input[type="tel"],
.event-registration-form select,
.event-registration-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    color: #333;
    background-color: white;
}

.event-registration-form input:focus,
.event-registration-form select:focus,
.event-registration-form textarea:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 1px #0073aa;
}

.event-registration-form .ticket-info {
    padding: 15px;
    background-color: white;
    border-radius: 4px;
    border: 1px solid #eee;
}

.event-registration-form .form-actions {
    margin-top: 20px;
}

.event-register-button {
    padding: 10px 20px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.event-register-button:hover {
    background-color: #005c87;
}

.event-register-button:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

.spinner-container {
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
}

.form-messages {
    margin-top: 20px;
}

.error-message {
    padding: 10px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
}

#registration-success {
    margin-top: 30px;
    padding: 20px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
}

.registration-details {
    margin-top: 20px;
    padding: 15px;
    background-color: white;
    border-radius: 4px;
    border: 1px solid #eee;
}

/* Responsive Styles */
@media (max-width: 767px) {
    .event-registration-form .form-field.half-width {
        width: 100%;
    }
    
    .event-tickets-list {
        grid-template-columns: 1fr;
    }
    
    .event-single .event-meta {
        grid-template-columns: 1fr;
    }
}

/**
 * These styles should be added to your event-manager.css file
 * Enhanced styles for single event display
 */

/* Single Event Header */
.event-single .entry-header {
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.event-single .entry-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.event-single .event-subject {
    font-size: 1.3rem;
    font-weight: normal;
    color: #666;
    margin-top: 0;
}

/* Featured Image */
.event-single .event-featured-image {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.event-single .event-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Event Details */
.event-single .event-details {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.event-single .event-meta {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.event-single .event-meta-item {
    padding: 0.5rem;
}

.event-single .meta-label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.3rem;
    color: #555;
    font-size: 0.9rem;
}

.event-single .meta-value {
    font-size: 1.1rem;
    color: #333;
}

/* Countdown */
.event-countdown {
    font-size: 1.2rem;
    font-weight: bold;
    color: #0073aa;
}

.countdown-days, 
.countdown-hours, 
.countdown-minutes, 
.countdown-seconds {
    background-color: rgba(0, 115, 170, 0.1);
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    margin-right: 0.3rem;
}

.event-live {
    color: #d63638;
    font-weight: bold;
}

/* Event Content */
.event-single .entry-content {
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
}

.event-single .entry-content h2,
.event-single .entry-content h3,
.event-single .entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.event-single .entry-content p {
    margin-bottom: 1.2rem;
}

.event-single .entry-content ul,
.event-single .entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.event-single .entry-content li {
    margin-bottom: 0.5rem;
}

/* Tickets Section */
.event-tickets-section {
    margin: 3rem 0;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.event-tickets-section h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
    color: #333;
}

/* Event Ended Notice */
.event-ended-notice {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 6px;
    margin: 2rem 0;
    text-align: center;
    font-size: 1.1rem;
}

/* Categories and Tags */
.event-single .entry-footer {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.event-categories,
.event-tags {
    margin-bottom: 1rem;
}

.categories-label,
.tags-label {
    font-weight: bold;
    margin-right: 0.5rem;
    color: #555;
}

.event-category,
.event-tag {
    display: inline-block;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.3rem 0.8rem;
    background-color: #f1f1f1;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #555;
    text-decoration: none;
    transition: all 0.2s ease;
}

.event-category:hover,
.event-tag:hover {
    background-color: #e1e1e1;
    color: #333;
}

/* Social Sharing */
.event-social-sharing {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.share-event-container,
.add-to-calendar-container {
    position: relative;
    margin: 0 0.5rem;
}

.share-event,
.add-to-calendar {
    background-color: #f8f9fa;
    color: #555;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-event:hover,
.add-to-calendar:hover {
    background-color: #e9ecef;
    color: #333;
}

.share-dropdown,
.calendar-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    min-width: 180px;
    display: none;
    z-index: 100;
}

.share-dropdown.active,
.calendar-dropdown.active {
    display: block;
}

.share-option,
.calendar-option {
    display: block;
    padding: 0.5rem 1rem;
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.share-option:hover,
.calendar-option:hover {
    background-color: #f8f9fa;
    color: #333;
}

/* Action Buttons */
.event-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2.5rem 0;
  align-items: center;
  justify-content: center;
}

/* Primary Action Button */
.event-action-button.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  background-color: #4361ee;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(67, 97, 238, 0.25);
  transition: all 0.2s ease;
  border: none;
}

.event-action-button.primary:hover {
  background-color: #3a56d4;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(67, 97, 238, 0.3);
}

.event-action-button.primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(67, 97, 238, 0.2);
}

.event-action-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    margin: 0 0.5rem;
    background-color: #0073aa;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s ease;
}

.event-action-button:hover {
    background-color: #005c87;
    transform: translateY(-2px);
}

.event-action-button.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  background-color: white;
  color: #4f5b69;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  border: 1px solid #e9ecef;
}

.event-action-button.secondary:hover {
  background-color: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Organizer Information */
.event-organizer {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.event-organizer-title {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: #333;
}

.organizer-info {
    display: flex;
    align-items: center;
}

.organizer-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1.5rem;
}

.organizer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.organizer-details {
    flex: 1;
}

.organizer-name {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}

.organizer-bio {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.organizer-contact a {
    color: #0073aa;
    text-decoration: none;
    font-size: 0.9rem;
}

.organizer-contact a:hover {
    text-decoration: underline;
}

/* Related Events */
.related-events {
    margin: 3rem 0;
}

.related-events-title {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #333;
}

.related-events-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.related-event-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-event-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.related-event-image {
    height: 150px;
    overflow: hidden;
}

.related-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.related-event-content {
    padding: 1rem;
}

.related-event-title {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.related-event-title a {
    color: #333;
    text-decoration: none;
}

.related-event-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.related-event-date {
    display: block;
}

/**
 * WooCommerce Integration Styles
 * Add these missing CSS rules to your event-manager.css file
 */

/* Responsive Styles for Mobile - Additional Rules */
@media (max-width: 767px) {
    .event-single .event-subject {
        font-size: 1.1rem;
    }
    
    .event-action-buttons {
        flex-direction: column;
    }
    
    .event-action-button {
        margin: 0.5rem 0;
    }
    
    .organizer-info {
        flex-direction: column;
        text-align: center;
    }
    
    .organizer-avatar {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .related-events-list {
        grid-template-columns: 1fr;
    }
    
    .event-tickets-section {
        padding: 1rem;
    }
    
    .woocommerce-ticket-add-to-cart {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ticket-quantity {
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    .add-ticket-to-cart {
        width: 100%;
    }
    
    .spinner-container {
        margin-top: 0.5rem;
        margin-left: 0;
    }
}

/* WooCommerce Integration Specific Styles */
.woocommerce-ticket-add-to-cart {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.ticket-quantity {
    width: 60px;
    text-align: center;
    padding: 8px;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.add-ticket-to-cart {
    flex: 1;
    min-width: 120px;
}

.success-message {
    color: green;
    font-weight: bold;
    margin-left: 10px;
}

.error-message {
    color: red;
    margin-left: 10px;
}

/* Event Status Badges */
.event-status {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.event-status-upcoming {
    background-color: #e6f6ff;
    color: #0073aa;
    border: 1px solid #b8e6ff;
}

.event-status-live {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    animation: pulse 2s infinite;
}

.event-status-ended {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

/* Registration Form in WooCommerce Checkout */
.woocommerce-checkout .event-attendee-details {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.woocommerce-checkout .event-attendee-details h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #333;
}

.woocommerce-checkout .event-attendee-field {
    margin-bottom: 1rem;
}

.woocommerce-checkout .event-attendee-field label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: bold;
    color: #555;
}

.woocommerce-checkout .event-attendee-field input,
.woocommerce-checkout .event-attendee-field select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.woocommerce-checkout .event-attendee-field .required {
    color: #dc3545;
}

/* Cart and Order Item Display */
.woocommerce-cart .event-cart-item-details,
.woocommerce-checkout .event-cart-item-details,
.woocommerce-order-details .event-order-item-details {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: #555;
}

.woocommerce-cart .event-cart-item-meta,
.woocommerce-checkout .event-cart-item-meta,
.woocommerce-order-details .event-order-item-meta {
    display: block;
    margin-bottom: 0.3rem;
}

/* Event Badge for Products */
.event-product-badge {
    display: inline-block;
    padding: 0.3rem 0.5rem;
    background-color: #e6f6ff;
    color: #0073aa;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

/* Print Styles for Tickets */
@media print {
    .site-header,
    .site-footer,
    .entry-header,
    .event-details,
    .entry-content,
    .event-tickets-section h2,
    .entry-footer,
    .event-social-sharing,
    .event-action-buttons,
    .related-events,
    .site-navigation,
    .widget-area {
        display: none !important;
    }
    
    .event-single {
        padding: 0;
        margin: 0;
    }
    
    .event-registration-details {
        padding: 1rem;
        border: 1px solid #000;
        page-break-inside: avoid;
    }
    
    .event-qr-code {
        text-align: center;
        margin: 1rem 0;
    }
    
    .event-qr-code img {
        max-width: 200px;
        height: auto;
    }
    
    .event-ticket-instructions {
        font-size: 12pt;
        margin-top: 1rem;
    }
    
    @page {
        margin: 0.5cm;
    }
}

/* Animation for Add to Cart Success */
@keyframes fadeInOut {
    0% {
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.cart-added-notification {
    position: fixed;
    top: 50px;
    right: 20px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    animation: fadeInOut 3s forwards;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body.dark-mode .event-single .entry-title {
        color: #f8f9fa;
    }
    
    body.dark-mode .event-single .event-subject {
        color: #adb5bd;
    }
    
    body.dark-mode .event-details {
        background-color: #343a40;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }
    
    body.dark-mode .meta-label {
        color: #ced4da;
    }
    
    body.dark-mode .meta-value {
        color: #f8f9fa;
    }
    
    body.dark-mode .event-countdown {
        color: #51a8ff;
    }
    
    body.dark-mode .countdown-days,
    body.dark-mode .countdown-hours,
    body.dark-mode .countdown-minutes,
    body.dark-mode .countdown-seconds {
        background-color: rgba(81, 168, 255, 0.2);
    }
    
    body.dark-mode .event-single .entry-content {
        color: #e9ecef;
    }
    
    body.dark-mode .event-tickets-section {
        background-color: #343a40;
    }
    
    body.dark-mode .event-ticket {
        background-color: #212529;
        border: 1px solid #495057;
    }
    
    body.dark-mode .ticket-name {
        color: #f8f9fa;
    }
    
    body.dark-mode .ticket-description {
        color: #ced4da;
    }
    
    body.dark-mode .ticket-price {
        color: #51a8ff;
    }
    
    body.dark-mode .ticket-availability {
        color: #adb5bd;
    }
    
    body.dark-mode .event-action-button.secondary {
        background-color: #495057;
        color: #ced4da;
        border: 1px solid #6c757d;
    }
    
    body.dark-mode .event-action-button.secondary:hover {
        background-color: #6c757d;
        color: #f8f9fa;
    }
}

/**
 * CSS for improved social sharing buttons
 * Add these styles to your event-manager.css file
 */

/* Action Buttons Improved Layout */
.event-action-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin: 2rem 0;
    justify-content: flex-start;
}

.event-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    margin: 0;
    background-color: #0073aa;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.event-action-button:hover {
    background-color: #005c87;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


.event-action-button.secondary:hover {
    background-color: #e9ecef;
    color: #333;
}

/* Button Icon */
.button-icon {
  margin-right: 0.625rem;
}

/* Social Share Container */
.social-share-container {
  display: flex;
  align-items: center;
  background-color: #f8f9fa;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.social-share-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #4f5b69;
  margin-right: 1rem;
}

.social-share-buttons {
  display: flex;
  gap: 0.75rem;
}

.social-share-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  color: white !important;
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
  border: none;
  padding: 0;
  background-color: #e9ecef;
  color: #4f5b69;
}

.social-share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.facebook-share {
    background-color: #1877F2;
}

.twitter-share {
    background-color: #1DA1F2;
}

.linkedin-share {
    background-color: #0A66C2;
}

.email-share {
    background-color: #DB4437;
}

.copy-link-share {
    background-color: #6c757d;
}

/* Social Media Specific Colors */
.facebook-share:hover {
  background-color: #1877F2;
  color: white;
}

.twitter-share:hover {
  background-color: #1DA1F2;
  color: white;
}

.linkedin-share:hover {
  background-color: #0A66C2;
  color: white;
}

.email-share:hover {
  background-color: #DB4437;
  color: white;
}

.copy-link-share:hover {
  background-color: #4f5b69;
  color: white;
}

/* Calendar Dropdown */
.calendar-actions {
  position: relative !important;
  display: inline-block;
  z-index: 999;
}

/* Calendar Dropdown - Base Style */
.calendar-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  padding: 8px 0;
  min-width: 240px;
  z-index: 1000;
  margin-top: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

/* Calendar Dropdown - Active State */
.calendar-dropdown.active {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  display: block !important;
}


.calendar-dropdown:before {
  content: '';
  position: absolute;
  top: -6px;
  left: 20px;
  width: 12px;
  height: 12px;
  background-color: white;
  transform: rotate(45deg);
  box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.03);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Calendar Options */
.calendar-option {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  color: #4f5b69;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.calendar-option:hover {
  background-color: #f8f9fa;
}

.option-icon {
  margin-right: 10px;
  color: #4f5b69;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .event-action-buttons {
        flex-direction: column;
        align-items: stretch;
    }
  
    .social-share-container {
        padding: 0.875rem;
        justify-content: space-between;
    }
   .social-share-label {
        font-size: 0.8125rem;
    }
  

    .calendar-actions {
        width: 100%;
    }
    
    .event-action-button {
        width: 100%;
    }
    
    .calendar-dropdown {
        width: 100%;
        left: 0;
        right: 0;
    }
    
    .event-action-button.primary,
    .event-action-button.secondary {
        width: 100%;
        justify-content: center;
    }
}

/**
 * Add these styles to your event-manager.css file
 * Styles for the event started notice
 */

/* Event Started Notice */
.event-started-notice {
    background-color: #fff3cd;
    color: #856404;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #ffeeba;
    margin: 2rem 0;
    text-align: center;
    font-size: 1.1rem;
}

/* Late Registration Badge */
.event-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.event-badge.late-registration {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Admin event edit screen checkbox styling */
.post-type-event #event_details .form-table th {
    width: 200px;
}

.post-type-event #event_details .form-table label {
    display: inline-block;
    margin-top: 2px;
}

.post-type-event #event_details .form-table input[type="checkbox"] {
    margin-right: 8px;
}

.post-type-event #event_details .description {
    margin-top: 5px;
    color: #666;
    font-style: italic;
}

/* assets/css/event-manager.css (or event-speakers.css) */

/* Base Speaker Styles */
.event-speakers-section {
    margin: 2em 0;
}
.speaker-item {
    margin-bottom: 30px;
    background-color: #fff; /* Default background */
    border: 1px solid #e0e0e0; /* Default border */
    border-radius: 8px; /* Default rounded corners */
    padding: 20px;
    display: flex; /* For list layouts / internal alignment */
    flex-direction: column; /* Default stack for items */
    transition: box-shadow 0.3s ease-in-out;
}
.speaker-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.speaker-image {
    margin-bottom: 15px;
    text-align: center; /* Center placeholder if needed */
}
.speaker-image img.speaker-photo {
    max-width: 150px; /* Default max size */
    height: auto;
    display: inline-block; /* Or block with margin auto for centering */
}
.speaker-image.placeholder {
    width: 150px; height: 150px; background: #f0f0f0;
    display: flex; align-items: center; justify-content: center;
    margin-left: auto; margin-right: auto; /* Center placeholder */
}
.speaker-image.placeholder .dashicons { font-size: 60px; color: #ccc; }

/* Image Styles */
.speaker-image.speaker-image-style-rounded img,
.speaker-image.speaker-image-style-rounded.placeholder {
    border-radius: 8px; /* Default from your previous styles */
}
.speaker-image.speaker-image-style-circle img,
.speaker-image.speaker-image-style-circle.placeholder {
    border-radius: 50%;
    width: 120px; /* Adjust size for circle if needed */
    height: 120px;
    object-fit: cover;
}
.speaker-image.speaker-image-style-square img,
.speaker-image.speaker-image-style-square.placeholder {
    border-radius: 0;
}

.speaker-info {
    text-align: center; /* Default text alignment */
    flex-grow: 1;
}
.speaker-name {
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 5px;
    color: #333;
}
.speaker-title {
    font-size: 1em;
    color: #777;
    margin-bottom: 10px;
    font-style: italic;
}
.speaker-bio {
    font-size: 0.95em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: left; /* Or center depending on theme */
}
.speaker-social-links-inline {
    display: inline-block;
    margin-left: 10px;
}
.speaker-social-links-inline .social-icon,
.speaker-social-links-bottom .social-icon {
    display: inline-block;
    text-decoration: none;
    margin: 0 4px;
    color: #555; /* Default icon color */
}
.speaker-social-links-inline .social-icon .dashicons,
.speaker-social-links-bottom .social-icon .dashicons {
    font-size: 20px;
    transition: color 0.2s ease;
}
.speaker-social-links-inline .social-icon:hover .dashicons,
.speaker-social-links-bottom .social-icon:hover .dashicons {
    color: #0073aa; /* Hover color */
}
.speaker-social-links-bottom {
    margin-top: 15px;
}

/* Layout: Grid */
.speakers-layout-grid {
    display: grid;
    gap: 30px;
}
.speakers-layout-grid.speakers-columns-1 { grid-template-columns: 1fr; }
.speakers-layout-grid.speakers-columns-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } /* Responsive 2 col */
@media (min-width: 768px) {
    .speakers-layout-grid.speakers-columns-2 { grid-template-columns: repeat(2, 1fr); }
    .speakers-layout-grid.speakers-columns-3 { grid-template-columns: repeat(3, 1fr); }
    .speakers-layout-grid.speakers-columns-4 { grid-template-columns: repeat(4, 1fr); }
}
 @media (max-width: 767px) { /* Stack on mobile */
    .speakers-layout-grid.speakers-columns-2,
    .speakers-layout-grid.speakers-columns-3,
    .speakers-layout-grid.speakers-columns-4 {
         grid-template-columns: 1fr;
    }
}


/* Layout: List */
.speakers-layout-list .speaker-item {
    display: flex;
    flex-direction: row;
    text-align: left;
    align-items: flex-start; /* Align items to the top */
}
.speakers-layout-list .speaker-image {
    flex: 0 0 120px; /* Fixed width for image column */
    margin-right: 20px;
    margin-bottom: 0; /* No bottom margin if side-by-side */
}
 .speakers-layout-list .speaker-image img.speaker-photo,
 .speakers-layout-list .speaker-image.placeholder {
    width: 100px; height: 100px; /* Adjust for list view */
}
.speakers-layout-list .speaker-info {
    text-align: left;
}


/* Theme: Card (Example) */
.speakers-theme-card .speaker-item {
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    border: 1px solid #ddd; /* Slightly more pronounced border */
}
/* Add more specific styles for card theme if needed */

/* Theme: Minimal List (Example) */
.speakers-theme-minimal-list .speaker-item {
    border: none;
    border-bottom: 1px solid #eee;
    border-radius: 0;
    padding: 15px 0;
    flex-direction: row; /* Enforce row for minimal list */
    align-items: center;
}
.speakers-theme-minimal-list .speaker-image {
    flex: 0 0 80px; margin-right: 15px;
}
.speakers-theme-minimal-list .speaker-image img.speaker-photo,
.speakers-theme-minimal-list .speaker-image.placeholder {
    width: 70px; height: 70px;
}
.speakers-theme-minimal-list .speaker-info { text-align:left; }
.speakers-theme-minimal-list .speaker-name { font-size: 1.2em; }
.speakers-theme-minimal-list .speaker-title { font-size: 0.9em; margin-bottom: 5px;}
.speakers-theme-minimal-list .speaker-bio { display: none; } /* Hide bio by default in minimal list or use bio_length */


/* Theme: Avatar List (Example - similar to minimal but smaller image, often circular) */
.speakers-theme-avatar-list .speaker-item {
    border: none;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 0;
    padding: 10px 0;
    flex-direction: row;
    align-items: center;
}
.speakers-theme-avatar-list .speaker-image {
    flex: 0 0 60px; margin-right: 15px;
}
.speakers-theme-avatar-list .speaker-image img.speaker-photo,
.speakers-theme-avatar-list .speaker-image.placeholder {
    width: 50px; height: 50px; border-radius: 50%; /* Force circle for avatar list */
}
.speakers-theme-avatar-list .speaker-info { text-align:left; }
.speakers-theme-avatar-list .speaker-name { font-size: 1.1em; }
.speakers-theme-avatar-list .speaker-title { font-size: 0.85em; color: #888;}
.speakers-theme-avatar-list .speaker-bio { font-size: 0.9em; margin-top: 5px; }

/* assets/css/event-manager.css or a new event-materials.css */

/* Base for all material sections */
.em-materials-section {
    margin-top: 2em;
    margin-bottom: 2em;
}

/* --- Grouped List Layout (Default Theme) --- */
.em-materials-layout-grouped-list .em-material-group {
    margin-bottom: 2em;
}
.em-materials-layout-grouped-list .em-material-group-title {
    font-size: 1.5em;
    margin-bottom: 0.75em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #f0f0f0;
}
.em-materials-layout-grouped-list .em-material-items-list {
    list-style: none;
    padding-left: 0;
}
.em-materials-layout-grouped-list .em-material-item {
    display: flex; /* For icon and details alignment */
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
}
.em-materials-layout-grouped-list .em-material-item:last-child {
    border-bottom: none;
}

/* --- Simple List Layout --- */
.em-materials-layout-simple-list .em-material-items-collection {
    list-style: none;
    padding-left: 0;
}
.em-materials-layout-simple-list .em-material-item {
    display: flex;
    justify-content: space-between; /* Title and button on opposite ends */
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dotted #e0e0e0;
}
.em-materials-layout-simple-list .em-material-item:last-child {
    border-bottom: none;
}
.em-materials-layout-simple-list .em-material-details {
    flex-grow: 1;
}
.em-materials-layout-simple-list .em-material-title {
    margin-bottom: 0;
    font-size: 1.1em;
}
.em-materials-layout-simple-list .em-material-description,
.em-materials-layout-simple-list .em-material-meta {
    display: none; /* Hidden in simple list by default */
}
.em-materials-layout-simple-list .em-material-actions {
    margin-left: 15px; /* Space before button */
}


/* --- Grid Layout --- */
.em-materials-layout-grid .em-material-items-collection {
    display: grid;
    gap: 20px;
}
/* Default to 1 column on small screens */
.em-materials-layout-grid.em-materials-columns-1,
.em-materials-layout-grid.em-materials-columns-2,
.em-materials-layout-grid.em-materials-columns-3,
.em-materials-layout-grid.em-materials-columns-4 {
    grid-template-columns: 1fr;
}
/* Tablet and up */
@media (min-width: 600px) {
    .em-materials-layout-grid.em-materials-columns-2 { grid-template-columns: repeat(2, 1fr); }
    .em-materials-layout-grid.em-materials-columns-3 { grid-template-columns: repeat(2, 1fr); } /* Example: 2 cols on tablet */
    .em-materials-layout-grid.em-materials-columns-4 { grid-template-columns: repeat(2, 1fr); }
}
/* Desktop */
@media (min-width: 992px) {
    .em-materials-layout-grid.em-materials-columns-3 { grid-template-columns: repeat(3, 1fr); }
    .em-materials-layout-grid.em-materials-columns-4 { grid-template-columns: repeat(4, 1fr); }
}
.em-materials-layout-grid .em-material-item { /* This will be the card */
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    height: 100%; /* For equal height cards if desired */
}


/* --- General Item Styling (applies to items in any layout) --- */
.em-material-item .em-material-icon {
    font-size: 1.8em; /* Larger icon */
    margin-right: 15px;
    color: #0073aa; /* Primary color */
    flex-shrink: 0;
}
.em-materials-layout-grid .em-material-item .em-material-icon { /* Center icon in grid card */
    margin-right: 0;
    margin-bottom: 10px;
    text-align: center;
    font-size: 2.5em;
}

.em-material-item .em-material-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.em-material-item .em-material-title {
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 0.3em;
    color: #333;
}
.em-material-item .em-material-description {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 0.8em;
    line-height: 1.5;
    flex-grow: 1; /* Pushes meta/actions down in card layout */
}
.em-material-item .em-material-meta {
    font-size: 0.8em;
    color: #888;
    margin-bottom: 0.8em;
}
.em-material-item .em-material-filename {
    display: block; /* Or inline with margin */
}
.em-material-item .em-material-restricted {
    font-style: italic;
    color: #cb0000;
}
.em-material-item .em-material-actions {
    margin-top: auto; /* Pushes button to bottom in card layout */
}
.em-material-item .em-material-button {
    display: inline-block;
    padding: 8px 15px;
    background-color: #0d6e71;
    color: white;
    text-decoration: none;
    border-radius: 0px;
    font-size: 0.6669em;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
}
.em-material-item .em-material-button:hover {
    background-color: #0b5b5d;
}
.em-materials-layout-grid .em-material-item .em-material-actions {
    text-align: center; /* Center button in grid card */
}


/* --- Theme: Cards Modern (Example for Grid or Grouped List) --- */
.em-materials-theme-cards-modern .em-material-item {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    padding: 25px; /* More padding for cards */
}
.em-materials-theme-cards-modern .em-material-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.em-materials-theme-cards-modern .em-material-title {
    font-size: 1.3em; /* Larger title for cards */
    color: #212529;
}
.em-materials-theme-cards-modern .em-material-icon {
    color: #4a90e2; /* Different icon color for this theme */
    font-size: 2.2em;
}
.em-materials-theme-cards-modern .em-material-button {
    background-color: #0d6e71; /* Green button for this theme */
}
.em-materials-theme-cards-modern .em-material-button:hover {
    background-color: #0b5b5d;
}

/* Hide elements based on shortcode attributes */
.em-materials-section[data-show-description="no"] .em-material-description {
    display: none;
}
.em-materials-section[data-show-icon="no"] .em-material-icon {
    display: none;
}
/* assets/css/event-qa.css */

.event-qa-container {
    font-family: sans-serif; /* Example: Choose a base font */
    margin-bottom: 30px;
}

.event-qa-main-title {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #333;
}
.event-qa-main-description {
    margin-bottom: 20px;
    color: #555;
    font-size: 1.05em;
    line-height: 1.6;
}
.event-qa-status-message {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-left: 4px solid #0073aa;
}

/* Submit Form Styling */
.event-qa-submit-form-wrapper {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
}
.event-qa-form-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3em;
}
.event-qa-form .form-field {
    margin-bottom: 15px;
}
.event-qa-form textarea,
.event-qa-form input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
.event-qa-form .em-button { /* General button style for this section */
    background-color: #0d6e71;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 0px;
    cursor: pointer;
    font-size: 0.6669em;
    transition: background-color 0.2s ease;
}
.event-qa-form .em-button:hover {
    background-color: #0b5b5d;
}
.event-qa-form .em-button-spinner.spinner {
    vertical-align: middle;
    margin-left: 5px;
    background-image: url(<?php echo esc_url( admin_url( 'images/spinner.gif' ) ); ?>); /* Check path */
    background-size: 16px 16px;
    width: 16px; height: 16px;
    display: none; /* JS will make it inline-block and active */
}
.event-qa-form .em-button:disabled .em-button-spinner.spinner {
    display: inline-block;
}


/* Questions List Header */
.event-qa-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.event-qa-questions-title {
    margin: 0;
    font-size: 1.5em;
}
.event-qa-filters select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* --- Theme: Default (basic list improvements) --- */
.em-qa-theme-default .em-qa-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}
.em-qa-theme-default .em-qa-item:last-child {
    border-bottom: none;
}
.em-qa-theme-default .em-qa-main {
    display: flex;
    align-items: flex-start;
}
.em-qa-theme-default .em-qa-voting {
    margin-right: 15px;
    text-align: center;
}
.em-qa-theme-default .em-qa-upvote-button {
    background: none;
    border: 1px solid #ccc;
    color: #555;
    padding: 5px 8px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}
.em-qa-theme-default .em-qa-upvote-button.voted {
    border-color: #0073aa;
    background-color: #f0f8ff;
    color: #0073aa;
}
.em-qa-theme-default .em-qa-upvote-button .em-qa-vote-icon {
    font-size: 1.2em;
}
.em-qa-theme-default .em-qa-vote-count {
    font-size: 0.9em;
    font-weight: bold;
}
.em-qa-theme-default .em-qa-content {
    flex-grow: 1;
}
.em-qa-theme-default .em-qa-question-text p {
    margin-top: 0;
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;
}
.em-qa-theme-default .em-qa-meta {
    font-size: 0.85em;
    color: #777;
    margin-top: 8px;
}
.em-qa-theme-default .em-qa-asker-name,
.em-qa-theme-default .em-qa-answerer-name {
    font-weight: bold;
}
.em-qa-theme-default .em-qa-answer {
    margin-top: 15px;
    padding: 15px;
    background-color: #f9f9f9;
    border-left: 3px solid #0073aa;
    border-radius: 0 4px 4px 0;
}
.em-qa-theme-default .em-qa-answer-title {
    margin-top: 0;
    font-size: 0.9em;
    font-weight: bold;
    color: #444;
    text-transform: uppercase;
}
.em-qa-theme-default .em-qa-answer-text {
    font-size: 1em;
    line-height: 1.6;
}
.em-qa-theme-default .em-qa-avatar {
    float: left;
    margin-right: 10px;
    border-radius: 50%;
}
.em-qa-theme-default .em-qa-question-text::after { /* Clearfix for avatar */
    content: "";
    clear: both;
    display: table;
}


/* --- Theme: Cards (Example) --- */
.em-qa-theme-cards .em-qa-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
/* You would then override or add more specific styles for the card theme */
.em-qa-theme-cards .em-qa-answer {
    border-top: 1px dashed #eee;
    padding-top: 15px;
    margin-top: 15px;
    background: none; /* Override default theme background if needed */
    border-left: none;
}

/* Moderation section */
.event-qa-moderation-wrapper {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}
.em-qa-moderation-actions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dotted #ccc;
}
.em-qa-moderation-actions .em-button { margin-right: 10px; }
.em-button-success { background-color: #28a745; }
.em-button-success:hover { background-color: #218838; }
.em-button-danger { background-color: #dc3545; }
.em-button-danger:hover { background-color: #c82333; }
.em-button-link { background: none; border: none; color: #0073aa; padding:0; text-decoration:underline; }


/* Show Avatars Theme Adjustment */
.em-qa-show-avatars .em-qa-question-text,
.em-qa-show-avatars .em-qa-answer-title {
    display: flex;
    align-items: flex-start; /* Align avatar with top of text */
}
.em-qa-show-avatars .em-qa-avatar {
    margin-right: 12px;
    border-radius: 50%;
    flex-shrink: 0; /* Prevent avatar from shrinking */
}
.em-qa-show-avatars .em-qa-question-text p {
    margin-top: 0; /* Adjust if avatar makes p tag shift */
}

/* assets/css/event-polls.css */

.em-poll-item-wrapper {
    margin-bottom: 2em;
}

/* --- Theme: Default --- */
.em-poll-theme-default {
    /* Basic existing styles can go here, or be enhanced */
}
.em-poll-theme-default .em-poll-question {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #333;
}
.em-poll-theme-default .em-poll-options-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 15px;
}
.em-poll-theme-default .em-poll-option {
    margin-bottom: 8px;
}
.em-poll-theme-default .em-poll-option label {
    display: block;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}
.em-poll-theme-default .em-poll-option label:hover {
    background-color: #f9f9f9;
    border-color: #ccc;
}
.em-poll-theme-default .em-poll-option input[type="radio"] {
    margin-right: 10px;
    vertical-align: middle;
}
.em-poll-theme-default .em-poll-option-text {
    vertical-align: middle;
}

.em-poll-actions .em-button { /* General button style */
    margin-right: 10px;
    padding: 8px 15px; /* Adjust padding */
    /* ... other button styles from your theme or plugin ... */
}
.em-poll-actions .em-button-alt { /* For "View Results" or "Back to Vote" */
    background-color: #f0f0f0;
    color: #333;
    /* ... */
}
.em-poll-actions .em-button-alt:hover {
    background-color: #e0e0e0;
}

.em-poll-results-area {
    margin-top: 20px;
}

.em-poll-results-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 15px 0;
}

.em-poll-result-item {
    margin-bottom: 12px;
    padding: 10px;
    background-color: #f8f9fa; /* Light background for each result item */
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.em-poll-result-item.is-user-vote {
    border-left: 4px solid #0073aa; /* Highlight user's voted option */
    /* background-color: #e6f7ff; */ /* Optional: slightly different background for voted option */
}

.em-poll-result-option-text {
    font-weight: 500; /* Medium weight */
    color: #343a40;
    margin-bottom: 5px;
    display: block;
}

.em-poll-result-bar-wrapper {
    background-color: #e9ecef; /* Lighter background for the bar track */
    border-radius: 4px;
    height: 22px; /* Or use padding for a fatter bar effect */
    overflow: hidden; /* Important for border-radius on the inner bar */
    margin-bottom: 5px;
    position: relative; /* For potentially overlaying text if needed */
}

.em-poll-result-bar {
    height: 100%;
    /* background-color is set by shortcode attribute or JS */
    border-radius: 4px; /* Match wrapper if you want rounded ends */
    /* If you want sharp end on the right for filled bar: border-radius: 4px 0 0 4px; */
    transition: width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smoother transition */
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Aligns percentage text to the right of the bar */
    font-size: 0.8em;
    color: white;
    padding-right: 8px; /* Padding for text inside the bar */
    box-sizing: border-box;
    min-width: 20px; /* Ensure even 0% bars are slightly visible if they contain text */
}

.em-poll-result-bar:empty { /* If percentage text is outside */
    min-width: 0;
}

.em-poll-result-stats {
    font-size: 0.9em;
    color: #495057;
    display: flex;
    justify-content: space-between; /* Puts percentage and vote count on opposite ends */
    align-items: center;
}

.em-poll-result-percentage {
    font-weight: bold;
    color: #212529;
}

.em-poll-result-vote-count {
    color: #6c757d;
}

.em-poll-total-votes {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    font-weight: 500;
    color: #343a40;
    font-size: 1.1em;
    text-align: right;
}
.em-poll-total-votes strong {
    color: #0073aa;
}

/* "Already Voted" Notice Styling */
.em-poll-already-voted-message {
    padding: 12px 18px;
    margin-top: 15px;
    margin-bottom: 10px;
    border-radius: 6px;
    font-size: 1em;
    text-align: center;
    
    /* Alert-like styling */
    background-color: #fff3cd; /* Light yellow - warning/info */
    color: #856404;         /* Dark yellow text */
    border: 1px solid #ffeeba;  /* Matching border */
}

/* Style for the em-button used for "View Results" and "Back to Vote" */
.em-poll-actions .em-button-alt,
.em-poll-results-area .em-button-alt { /* Target button in results area too */
    background-color: #6c757d; /* Secondary/alternative button color */
    color: white;
    font-size: 0.9em;
    padding: 8px 12px;
}
.em-poll-actions .em-button-alt:hover,
.em-poll-results-area .em-button-alt:hover {
    background-color: #5a6268;
}

/* Styling for card theme specifically for polls */
.em-poll-theme-card.em-poll-item-wrapper {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem; /* 8px */
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); /* Subtle shadow */
    padding: 1.5rem; /* 24px */
    margin-bottom: 1.5rem;
}

.em-poll-theme-card .em-poll-question {
    font-size: 1.4em; /* Slightly larger for card title */
    color: #343a40;
    margin-bottom: 1.25rem; /* 20px */
}

.em-poll-theme-card .em-poll-option label {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 12px 15px;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.em-poll-theme-card .em-poll-option label:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.em-poll-theme-card .em-poll-option input[type="radio"]:checked + .em-poll-option-text {
    font-weight: 600; /* Bold text for selected option */
    color: #0056b3; 
}

.em-poll-theme-card .em-poll-result-item {
    background-color: transparent; /* Remove individual item background if card has one */
    border: none;
    padding: 8px 0; /* Adjust padding within card */
}
.em-poll-theme-card .em-poll-result-item.is-user-vote {
    border-left: none; /* Remove left border if card itself provides enough context */
    /* background-color: #e6f6ff; */ /* Optional highlight for user's vote within card */
}

.em-poll-theme-card .em-poll-result-bar-wrapper {
    background-color: #e0e0e0; /* Darker track for better contrast on white card */
}

/* Example for spinner (ensure your JS adds 'is-active' class) */
.em-poll-actions .spinner {
    background: url(<?php echo esc_url( admin_url( 'images/spinner.gif' ) ); ?>) no-repeat;
    background-size: 16px 16px;
    width: 16px; height: 16px;
    display: inline-block; /* Changed from none */
    opacity: 0.7;
    filter: alpha(opacity=70);
    /* display: none; initially if hidden by style attribute directly */
}
.em-poll-actions .spinner.is-active { /* Your JS should add this class */
    /* display: inline-block; Redundant if default is inline-block */
}