/**
 * The Aisle Custom Components - Shared CSS
 * Brand colors: #ED1C24 (primary), #5DD4BE (accent)
 *
 * Reusable components for support system, user dashboard, and other custom functionality
 *
 * @package TheAisle\CustomComponents
 * @since 1.0.0
 * @version 1.0
 */

/* ==========================================================================
   Performance & Base Optimizations
   ========================================================================== */

/* Performance optimizations for dashboards and dynamic content */
.theaisle-dashboard {
    will-change: auto;
    contain: layout style;
    background-color: inherit;
    padding: 20px;
}

/* Legacy support class */
.theaisle-support-dashboard {
    will-change: auto;
    contain: layout style;
    background-color: inherit;
    padding: 20px;
}

/* ==========================================================================
   Generic Utility Classes
   ========================================================================== */

/* Generic wrapper for account sections */
.woocommerce-account .theaisle-wrapper {
    background-color: inherit;
    margin: -20px;
    padding: 20px;
    min-height: 60vh;
}

/* Legacy support wrapper */
.woocommerce-account .theaisle-support-wrapper {
    background-color: inherit;
    margin: -20px;
    padding: 20px;
    min-height: 60vh;
}

/* ==========================================================================
   Buttons - Inherit site button styles and override specific ones
   ========================================================================== */

/* Generic primary action button - use site red color */
.button.theaisle-primary-button,
.theaisle-dashboard .button.theaisle-primary-button,
.theaisle-support-dashboard .button.view-ticket-button {
    background: #fff !important;
    color: #ED1C24 !important;
    font-size: 0.9rem !important;
    font-weight: 600;
    border: 1px solid #ED1C24;
    border-radius: 10px !important;
    transition: all 0.2s ease;
}

.button.theaisle-primary-button:hover,
.theaisle-dashboard .button.theaisle-primary-button:hover,
.theaisle-support-dashboard .button.view-ticket-button:hover {
    background: #ED1C24 !important;
    color: #fff !important;
}

/* Generic secondary action button - black background */
.button.theaisle-secondary-button,
.theaisle-dashboard .button.theaisle-secondary-button,
.theaisle-support-dashboard .button.close-ticket-button {
    background: #000000 !important;
    color: white !important;
    font-size: 0.9rem !important;
    border-radius: 10px !important;
    transition: all 0.2s ease;
}

.button.theaisle-secondary-button:hover,
.theaisle-dashboard .button.theaisle-secondary-button:hover,
.theaisle-support-dashboard .button.close-ticket-button:hover {
    background: #333333 !important;
}

/* ==========================================================================
   Generic Component Headers
   ========================================================================== */

/* Generic header component for dashboards and sections */
.theaisle-header,
.support-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Generic action container */
.theaisle-actions,
.support-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   Status Badges - Simple styling
   ========================================================================== */

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.75rem;
    font-size: 0.6875rem;
    text-transform: uppercase;
}

.status-badge.status-open { 
    background: #e8f5e8; 
    color: #27ae60; 
}

.status-badge.status-closed { 
    background: #f8d7da; 
    color: #721c24; 
}

/* Only two statuses: open and closed */

/* ==========================================================================
   Generic Tab Navigation
   ========================================================================== */

/* Generic tab navigation component */
.theaisle-tabs,
.support-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.5rem;
}

.theaisle-tabs .tab,
.support-tabs .tab {
    color: #6c757d;
    text-decoration: none;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.theaisle-tabs .tab.active,
.theaisle-tabs .tab:hover,
.support-tabs .tab.active,
.support-tabs .tab:hover {
    color: #ED1C24;
    border-bottom-color: #ED1C24;
}

.theaisle-tabs .count,
.support-tabs .count {
    color: inherit;
    opacity: 0.7;
}

/* ==========================================================================
   Generic Lists and Cards - Inherit site's card styles
   ========================================================================== */

/* Generic grid list component */
.theaisle-list,
.tickets-list {
    display: grid;
    gap: 1rem;
}

/* Generic card item component */
.theaisle-card,
.ticket-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 15px; /* Site's standard border radius */
    padding: 1.5rem;
    transition: box-shadow 0.2s ease;
}

.theaisle-card:hover,
.ticket-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.ticket-title a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}

.ticket-title a:hover {
    color: #ED1C24;
}

.ticket-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f8f9fa;
}

.ticket-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.ticket-actions {
    display: flex;
    gap: 0.5rem;
}

/* ==========================================================================
   No Tickets State
   ========================================================================== */

.no-tickets {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
    max-width: 500px;
    margin: 0 auto;
}

.no-tickets h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.5rem;
}

.no-tickets p {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.no-tickets .button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
}

.no-tickets-button-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}


/* ==========================================================================
   Form Elements - Inherit site styles
   ========================================================================== */

.form-row {
    margin-bottom: 25px;
}

.form-row label.required::after {
    content: " *";
    color: #e74c3c;
}

.form-row input,
.form-row select,
.form-row textarea {
    font-size: 16px;
}

.form-help {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .support-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .ticket-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .ticket-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .ticket-actions {
        justify-content: center;
    }
    
    .support-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .ticket-closed-notice {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .ticket-closed-notice .ticket-title-section {
        text-align: center;
    }

    .ticket-closed-notice .ticket-status-section {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

/* ==========================================================================
   JavaScript-generated Content Styles
   ========================================================================== */

/* Loading animations */
.support-loading-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error messages */
.support-error-notice {
    color: #721c24;
    background: #f8d7da;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
}

/* Dynamic message items */
.support-message-item {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.support-message-item.show {
    opacity: 1;
    transform: translateY(0);
}

.support-message-item.admin-border {
    border-left: 4px solid #27ae60;
}

.support-message-item.user-border {
    border-left: 4px solid #3498db;
}

.support-message-item.newest-border {
    border-left: 4px solid #667eea;
}

/* Latest indicator */
.support-latest-indicator {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: inline-block;
}

/* Avatar styles */
.support-avatar {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.support-avatar.admin-avatar {
    border: 3px solid #27ae60;
}

.support-avatar.user-avatar {
    border: 3px solid #3498db;
}

/* Schedule icon */
.support-schedule-icon {
    font-size: 12px;
    margin-right: 3px;
}

/* Closed ticket banner */
.support-closed-banner {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.support-closed-banner h4 {
    margin: 0 0 8px 0;
    color: #721c24;
    font-size: 18px;
}

.support-closed-banner p {
    color: #6c757d;
    margin: 0;
    font-size: 14px;
}

/* Minimal error alert */
.support-minimal-alert {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    background: #dc3232;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    max-width: 300px;
}

/* ==========================================================================
   Template Specific Styles (replacing inline styles)
   ========================================================================== */

/* Generic spacing utilities */
.theaisle-margin-right-8 { margin-right: 8px; }
.theaisle-margin-right-5 { margin-right: 5px; }
.theaisle-margin-right-3 { margin-right: 3px; }
.theaisle-margin-bottom-10 { margin-bottom: 10px; }
.theaisle-margin-bottom-15 { margin-bottom: 15px; }
.theaisle-margin-top-20 { margin-top: 20px; }

/* Display utilities */
.theaisle-display-none { display: none; }
.theaisle-display-flex { display: flex; }
.theaisle-display-inline-flex { display: inline-flex; }
.theaisle-display-block { display: block; }

/* Flex utilities */
.theaisle-align-center { align-items: center; }
.theaisle-justify-center { justify-content: center; }
.theaisle-justify-between { justify-content: space-between; }
.theaisle-flex-wrap { flex-wrap: wrap; }
.theaisle-gap-8 { gap: 8px; }
.theaisle-gap-15 { gap: 15px; }
.theaisle-gap-20 { gap: 20px; }

/* Text utilities */
.theaisle-text-center { text-align: center; }
.theaisle-color-success { color: #27ae60; }
.theaisle-color-error { color: #e74c3c; }
.theaisle-color-muted { color: #6c757d; }

/* Admin status indicators */
.theaisle-status-success { color: #27ae60; }
.theaisle-status-error { color: #e74c3c; }
.theaisle-status-info { color: #3498db; }

/* Upload container styles - consolidated */
.theaisle-upload-container,
.upload-button-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* File upload areas - consolidated */
.theaisle-file-upload-area,
.file-upload-area,
.file-upload-area-small {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 8px;
    width: 100%;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    background: #fafafa;
}

.theaisle-file-upload-area:hover,
.file-upload-area:hover,
.file-upload-area-small:hover {
    border-color: #3498db;
    background: #f0f8ff;
}

.theaisle-file-upload-area input,
.file-upload-area input,
.file-upload-area-small input,
.file-input {
    display: none;
}

/* Ticket closed notice */
.theaisle-ticket-closed-notice {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.theaisle-ticket-closed-notice h4 {
    margin: 0 0 8px 0;
    color: #721c24;
    font-size: 18px;
}

.theaisle-ticket-closed-notice p {
    color: #6c757d;
    margin: 0;
    font-size: 14px;
}

/* Conversation header */
.theaisle-conversation-title {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.theaisle-conversation-icon {
    margin-right: 10px;
    color: #667eea;
}

.theaisle-message-count-badge {
    background: #667eea;
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    margin-left: 10px;
}

/* Pagination info */
.theaisle-pagination-info {
    color: #6c757d;
    font-size: 12px;
}

/* No messages state */
.theaisle-no-messages {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 20px 0;
}

.theaisle-no-messages-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Recent indicator */
.theaisle-recent-indicator {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: inline-block;
}

/* Message attachments */
.theaisle-message-attachments {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.theaisle-message-attachments h5 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #495057;
    display: flex;
    align-items: center;
}

.theaisle-attachment-icon {
    margin-right: 8px;
    color: #667eea;
}

.theaisle-attachment-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 8px 0;
}

.theaisle-attachment-image-icon {
    color: #667eea;
    margin-right: 8px;
    font-size: 18px;
}

.theaisle-attachment-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    margin-right: 8px;
}

.theaisle-attachment-size {
    color: #6c757d;
    font-size: 12px;
}

/* Pagination container */
.theaisle-messages-pagination {
    text-align: center;
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.theaisle-pagination-info-text {
    margin-bottom: 15px;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
}

.theaisle-pagination-info-icon {
    margin-right: 5px;
}

.theaisle-pagination-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.theaisle-pagination-button {
    margin: 0;
    padding: 8px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.theaisle-pagination-number {
    margin: 0;
    padding: 8px 12px;
    min-width: 40px;
    border-radius: 8px;
    text-decoration: none;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.theaisle-pagination-number.active {
    background: #667eea;
    color: white;
}

/* Author avatar */
.theaisle-author-avatar {
    border-radius: 50%;
}

/* Pagination button styles */
.theaisle-pagination-button-prev,
.theaisle-pagination-button-next {
    margin: 0;
    padding: 8px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.theaisle-pagination-number-button {
    margin: 0;
    padding: 8px 12px;
    min-width: 40px;
    border-radius: 8px;
    text-decoration: none;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.theaisle-pagination-number-button.active {
    background: #667eea;
    color: white;
}

/* ==========================================================================
   Response and Message Styles - Consolidated
   ========================================================================== */

/* Response upload labels and help text */
.theaisle-response-upload-label,
.support-upload-label {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 8px;
    display: block;
}

.theaisle-response-help-text {
    display: block;
    margin-top: 8px;
    color: rgba(255,255,255,0.7);
    font-size: 12px;
}

/* Response actions and buttons */
.theaisle-response-actions,
.response-actions,
.support-response-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.theaisle-response-send-button {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.theaisle-response-close-button {
    background: rgba(220, 53, 69, 0.8);
    border: 2px solid rgba(220, 53, 69, 0.5);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.theaisle-icon-margin-right-5 {
    margin-right: 5px;
}

.theaisle-create-ticket-button {
    background: #ED1C24 !important;
    color: white !important;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* Response form styles - consolidated */
.support-response-form {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.support-response-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.support-response-icon {
    font-size: 24px;
    margin-right: 12px;
    color: #fff;
}

.support-response-title {
    margin: 0;
    color: #fff;
    font-size: 18px;
}

/* Response textarea styles - consolidated */
.support-response-textarea,
.response-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.5;
    resize: vertical;
    min-height: 100px;
    background: rgba(255,255,255,0.1);
    color: white;
    backdrop-filter: blur(10px);
}

.support-response-textarea::placeholder {
    color: rgba(255,255,255,0.7);
}

/* Regular response form (non-gradient) */
.response-form textarea {
    border: 1px solid #ddd;
    background: white;
    color: #2c3e50;
    min-height: 120px;
}

.response-form textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Upload container and button styles - consolidated */
.support-upload-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.support-upload-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.support-upload-button:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
}

.support-upload-icon {
    margin-right: 5px;
}

/* .support-hidden-input moved to file-input consolidated section */

/* File name display - consolidated */
.support-file-name {
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    font-style: italic;
}

/* Conversation header - moved to ticket conversation section */
.support-conversation-icon {
    margin-right: 10px;
    color: #667eea;
}

.support-message-count {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-left: 10px;
}

@media (max-width: 768px) {
    .support-response-form {
        padding: 20px;
    }

    .support-upload-container {
        flex-direction: column;
        align-items: stretch;
    }

    .support-response-buttons {
        flex-direction: column;
    }

    .support-conversation-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
}

/* ==========================================================================
   Performance Optimizations
   ========================================================================== */

/* Manual refresh button optimizations */
#manual-refresh {
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
    cursor: pointer;
    outline: none;
}

#manual-refresh:hover:not(:disabled) {
    transform: none; /* Prevent layout thrashing */
}

#manual-refresh:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
}

/* Optimize animations for better performance */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.support-loading-icon {
    animation: spin 1s linear infinite;
    will-change: transform;
}

/* Optimize message animations */
.support-message-item {
    will-change: opacity, transform;
}

.support-message-item.show {
    will-change: auto;
}

/* ==========================================================================
   Create Ticket Form Styles (moved from inline <style> tags)
   ========================================================================== */

.create-ticket-form-container {
    max-width: 800px;
}

.create-ticket-form {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 30px;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 20px;
}

/* Upload button and file name styles - consolidated */
.upload-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.upload-button:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6c5ce7 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.upload-button i {
    font-size: 16px;
}

.file-name {
    color: #2d3748;
    font-weight: 500;
    font-size: 14px;
}

.file-name:empty {
    display: none;
}

.file-name:not(:empty) {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f0f4ff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.file-name:not(:empty)::before {
    content: '📎';
    font-size: 12px;
}

.listing-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

.listing-info h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.listing-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.listing-detail {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.listing-detail:last-child {
    border-bottom: none;
}

.listing-detail-label {
    font-weight: 500;
    color: #2c3e50;
}

.listing-detail-value {
    color: #7f8c8d;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    margin-top: 30px;
}

.form-actions .button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Create ticket form responsive design */
@media (max-width: 768px) {
    .create-ticket-form {
        padding: 20px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .button {
        justify-content: center;
    }

    .listing-details-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Admin Settings Styles (moved from inline <style> tags)
   ========================================================================== */

.theaisle-support-settings .form-table th {
    width: 200px;
}

.theaisle-support-settings code {
    background: #f1f1f1;
    padding: 2px 6px;
    border-radius: 3px;
}

.theaisle-support-settings .system-info {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
}

/* ==========================================================================
   Single Ticket Page Styles (moved from inline <style> tags)
   ========================================================================== */

.ticket-container {
    max-width: 900px;
}

.ticket-header-info {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.ticket-subject {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 24px;
    line-height: 1.3;
}

.ticket-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #7f8c8d;
}

.ticket-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ticket-status-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.ticket-badges {
    display: flex;
    gap: 10px;
}

.status-badge,
.priority-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.status-open { background: #e8f5e8; color: #27ae60; }
.status-badge.status-closed { background: #f8d7da; color: #721c24; }

.priority-badge.priority-low { background: #e8f5e8; color: #27ae60; }
.priority-badge.priority-medium { background: #fff3cd; color: #f39c12; }
.priority-badge.priority-high { background: #ffe6e6; color: #e74c3c; }
.priority-badge.priority-urgent { background: #f8d7da; color: #721c24; }

.ticket-context {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.ticket-context h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 16px;
}

.context-section {
    display: flex;
    margin-bottom: 12px;
}

.context-section:last-child {
    margin-bottom: 0;
}

.context-label {
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #2c3e50;
    flex-shrink: 0;
}

.context-value {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #7f8c8d;
}

.listing-status.status-publish { color: #27ae60; }
.listing-status.status-pending { color: #f39c12; }
.listing-status.status-expired { color: #e74c3c; }

.package-price { color: #27ae60; font-weight: 500; }
.package-free { color: #7f8c8d; }

.expires-active { color: #27ae60; }
.expires-expired { color: #e74c3c; }

.ticket-conversation {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
}

.messages-container {
    /* Removed fixed height and scrolling to allow natural expansion */
}

/* Message and attachment styles - consolidated */
.message-item {
    margin-bottom: 25px;
    padding: 20px;
    border-radius: 8px;
    position: relative;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.user-message {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
}

.admin-message {
    background: #e8f5e8;
    border-left: 4px solid #27ae60;
}

.message-item.new-message {
    border-left: 4px solid #28a745 !important;
    animation: fadeInUp 0.5s ease-out;
}

.message-header {
    margin-bottom: 15px;
}

.message-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    border-radius: 50%;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-weight: 500;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-badge {
    background: #27ae60;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.message-time {
    color: #7f8c8d;
    font-size: 12px;
}

.message-content {
    line-height: 1.6;
    color: #2c3e50;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-attachments {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.message-attachments h5 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #7f8c8d;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

.attachment-item a {
    text-decoration: none;
    color: #3498db;
}

.attachment-item a:hover {
    text-decoration: underline;
}

.attachment-size {
    color: #7f8c8d;
    font-size: 12px;
}

.response-actions .button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
}

.ticket-closed-notice {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
}

.closed-icon {
    font-size: 48px;
    color: #27ae60;
    margin-bottom: 15px;
}

.ticket-closed-notice h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.ticket-closed-notice p {
    color: #7f8c8d;
    margin-bottom: 20px;
}

/* Manual refresh button styles */
#manual-refresh {
    background: #fff !important;
    border: 1px solid #e9ecef !important;
    color: #6c757d !important;
    font-size: 14px !important;
    padding: 1rem !important;
    border-radius: 10px !important;
    transition: all 0.2s ease-in-out;
}

#manual-refresh:hover {
    background: #e9ecef !important;
    color: #495057 !important;
}

#manual-refresh:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Keyframes and animations */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtle notification styles */
.subtle-notification {
    font-family: inherit;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Single ticket responsive design */
@media (max-width: 768px) {
    .ticket-header-info {
        flex-direction: column;
        gap: 20px;
    }

    .ticket-status-section {
        align-items: flex-start;
    }

    .ticket-context {
        padding: 15px;
    }

    .context-section {
        flex-direction: column;
        gap: 5px;
        margin-bottom: 15px;
    }

    .context-label {
        width: auto;
        font-size: 14px;
    }

    .message-item {
        padding: 15px;
    }

    .response-actions {
        flex-direction: column;
    }

    .response-actions .button {
        justify-content: center;
    }

    /* Mobile styles for manual refresh button */
    #manual-refresh {
        float: none !important;
        display: block;
        margin: 10px 0 0 0 !important;
        width: auto;
    }

    .ticket-conversation h4 {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .subtle-notification {
        top: 10px !important;
        right: 10px !important;
        left: 10px !important;
        max-width: none !important;
    }
}

/* ==========================================================================
   Bookmarks Dashboard Styles - Clean List UI
   ========================================================================== */

/* Header and filter controls */
.theaisle-bookmarks-dashboard {
    contain: layout style;
}

.theaisle-bookmarks-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theaisle-bookmarks-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
}

.theaisle-bookmarks-stats {
    display: flex;
    gap: 2.5rem;
}

.theaisle-filter-controls {
    margin-top: 1.5rem;
    text-align: center;
}

.theaisle-filter-toggle {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.theaisle-filter-toggle:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    color: white;
    transform: translateY(-2px);
}

.theaisle-category-filters {
    display: none;
    margin-top: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.theaisle-category-filter {
    background: rgba(93, 212, 190, 0.3);
    border: 1px solid rgba(93, 212, 190, 0.5);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0.25rem;
    display: inline-block;
}

.theaisle-category-filter:hover {
    background: rgba(93, 212, 190, 0.5);
    border-color: rgba(93, 212, 190, 0.7);
    transform: translateY(-1px);
}

.theaisle-category-filter.active {
    background: rgba(237, 28, 36, 0.8);
    border-color: rgba(237, 28, 36, 0.9);
    color: white;
}

/* Category sections */
.theaisle-category-section {
    margin-bottom: 2rem;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: box-shadow 0.2s ease;
}

.theaisle-category-section:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.theaisle-category-header {
    background: #54595F;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e9ecef;
}

.theaisle-category-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theaisle-category-count {
    background: #ED1C24;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    margin-left: 0.25rem;
    border-radius: 12px;
    font-weight: 600;
    min-width: 1.5rem;
    text-align: center;
}

/* Bookmark list items */
.theaisle-bookmarks-list {
    padding: 0;
}

.theaisle-bookmark-item {
    border-bottom: 1px solid #dbdbdb;
    transition: all 0.2s ease;
    background: white;
    position: relative;
}

.theaisle-bookmark-item:last-child {
    border-bottom: none;
}

.theaisle-bookmark-item:hover {
    background: #f8f9fa;
}

.theaisle-bookmark-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    gap: 1.5rem;
}

.theaisle-bookmark-vendor {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.theaisle-vendor-logo {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f8f9fa;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}


.theaisle-vendor-info {
    flex: 1;
    min-width: 0;
}

.theaisle-vendor-name {
    margin: 0 0 0.25rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theaisle-vendor-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.theaisle-vendor-name a:hover {
    color: #ED1C24;
}

.theaisle-vendor-logo {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.theaisle-vendor-logo:hover {
    opacity: 0.8;
}

.theaisle-vendor-phone {
    margin: 0;
    font-size: 0.875rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.theaisle-vendor-phone i {
    font-size: 1rem;
    color: #ED1C24;
}

.theaisle-bookmark-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.theaisle-btn-primary,
.theaisle-btn-secondary,
.theaisle-btn-danger {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.theaisle-btn-primary {
    background: #ED1C24;
    color: white;
    border-color: #ED1C24;
}

.theaisle-btn-primary:hover {
    background: #c01621;
    border-color: #c01621;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(237, 28, 36, 0.3);
}

.theaisle-btn-secondary {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

.theaisle-btn-secondary:hover {
    background: #5a6268;
    border-color: #5a6268;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.theaisle-btn-danger {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.theaisle-btn-danger:hover {
    background: #c82333;
    border-color: #c82333;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Comment functionality */
.theaisle-bookmark-item:hover .theaisle-bookmark-comment {
    background: #f8f9fa;
}

.theaisle-existing-comment {
    padding: 0 2rem 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.theaisle-comment-content {
    flex: 1;
}

.theaisle-comment-content p {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    line-height: 1.5;
}

.theaisle-comment-date {
    font-size: 0.75rem;
    color: #6c757d;
    margin: 0;
}

.theaisle-existing-comment .theaisle-comment-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.theaisle-comment-form {
    display: none;
}

.theaisle-comment-form.active {
    display: block;
    animation: fadeInUp 0.3s ease-out;
    padding: 0 2rem 1rem 2rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.theaisle-comment-textarea {
    width: 100%;
    min-height: 5rem;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.875rem;
    resize: vertical;
    margin-bottom: 0.75rem;
    background: white;
    color: #2c3e50;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.theaisle-comment-textarea:focus {
    outline: none;
    border-color: #ED1C24;
    box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.1);
}

.theaisle-comment-actions {
    display: flex;
    gap: 0.5rem;
}

/* Empty state */
.theaisle-no-bookmarks {
    padding: 4rem 2rem;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theaisle-empty-state {
    max-width: 28rem;
    margin: 0 auto;
}

.theaisle-empty-icon {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
    opacity: 0.5;
    display: block;
}

.theaisle-empty-state h3 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.5rem;
}

.theaisle-empty-state p {
    margin: 0 0 2rem 0;
    color: #6c757d;
    line-height: 1.6;
}

.theaisle-empty-button-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

/* Filter Section - Compact Design */
.theaisle-filter-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.theaisle-filter-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.theaisle-filter-toggle-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.theaisle-filter-toggle-bar:hover {
    background: #e9ecef;
}

.theaisle-filter-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
}

.theaisle-filter-info i {
    color: #ED1C24;
    font-size: 1rem;
}

.theaisle-selected-count {
    color: #6c757d;
    font-weight: 400;
}

.theaisle-filter-expand-btn {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.theaisle-filter-expand-btn:hover {
    background: #dee2e6;
    color: #495057;
}

.theaisle-filter-expand-btn i {
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.theaisle-category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: white;
    border-top: 1px solid #f1f3f4;
}

.theaisle-category-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.theaisle-category-filter:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    color: #495057;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.theaisle-category-filter.active {
    background: #ED1C24;
    border-color: #ED1C24;
    color: white;
    box-shadow: 0 2px 8px rgba(237, 28, 36, 0.3);
}

.theaisle-category-filter.active:hover {
    background: #c01621;
    border-color: #c01621;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(237, 28, 36, 0.4);
}

.theaisle-category-filter i {
    font-size: 0.875rem;
    opacity: 0.8;
}

.theaisle-category-filter.active i {
    opacity: 1;
}

.theaisle-category-filter.active .theaisle-category-count {
    opacity: 0.9;
}

/* Custom bookmark button styles to avoid support system interference */
.theaisle-bookmark-primary-btn {
    background: #fff !important;
    color: #ED1C24 !important;
    font-size: 0.9rem !important;
    font-weight: 600;
    border: 1px solid #ED1C24 !important;
    border-radius: 10px !important;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1rem;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.theaisle-bookmark-primary-btn:hover {
    background: #ED1C24 !important;
    color: #fff !important;
}

.theaisle-bookmark-danger-btn {
    background: #000000 !important;
    color: white !important;
    font-size: 0.9rem !important;
    border-radius: 10px !important;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1rem;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid #000000;
}

.theaisle-bookmark-danger-btn:hover {
    background: #333333 !important;
}

/* Fallback bookmarks */
.theaisle-fallback-bookmarks {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

/* Responsive design */
@media (max-width: 768px) {
    .theaisle-bookmarks-header {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .theaisle-bookmarks-header h2 {
        font-size: 1.5rem;
    }

    .theaisle-bookmarks-stats {
        flex-direction: row;
        gap: 1.5rem;
        justify-content: space-around;
    }

    .theaisle-bookmark-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1.25rem;
    }

    .theaisle-bookmark-vendor {
        gap: 0.75rem;
    }

    .theaisle-vendor-logo {
        width: 3rem;
        height: 3rem;
    }

    .theaisle-bookmark-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .theaisle-bookmark-actions .theaisle-bookmark-primary-btn,
    .theaisle-bookmark-actions .theaisle-bookmark-danger-btn {
        justify-content: center;
        text-align: center;
    }

    .theaisle-btn-primary,
    .theaisle-btn-secondary,
    .theaisle-btn-danger {
        justify-content: center;
        padding: 0.75rem 1rem;
    }

    .theaisle-category-header {
        padding: 1.25rem;
    }

    .theaisle-bookmark-comment {
        padding: 0 1.25rem 1.25rem;
    }

    .theaisle-existing-comment {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 0 1.25rem 1rem 1.25rem;
    }

    .theaisle-existing-comment .theaisle-comment-actions {
        align-self: stretch;
        justify-content: flex-start;
    }

    .theaisle-comment-form.active {
        padding: 0 1.25rem 1rem 1.25rem;
    }

    .theaisle-comment-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .theaisle-bookmarks-stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .theaisle-bookmark-vendor {
        flex-direction: column;
        text-align: center;
    }

    .theaisle-vendor-logo {
        align-self: center;
    }

    .theaisle-category-filters {
        flex-direction: column;
        align-items: center;
    }

    .theaisle-existing-comment {
        padding: 0 1rem 1rem 1rem;
    }

    .theaisle-comment-form.active {
        padding: 0 1rem 1rem 1rem;
    }

    .theaisle-comment-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .theaisle-comment-actions .button,
    .theaisle-comment-actions .theaisle-bookmark-primary-btn,
    .theaisle-comment-actions .theaisle-bookmark-danger-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   Couple Dashboard Styles (moved from inline styles)
   ========================================================================== */

/* Dashboard actions container */
.theaisle-couple-dashboard-actions {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.theaisle-couple-dashboard-actions h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.25rem;
}

/* Grid layout for action buttons */
.theaisle-couple-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

/* Couple action button styling */
.theaisle-couple-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    background: #fff;
    color: #ED1C24;
    border: 1px solid #ED1C24;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.theaisle-couple-action-btn:hover {
    background: #ED1C24;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(237, 28, 36, 0.3);
}

.theaisle-couple-action-btn i {
    margin-right: 5px;
}

/* Wedding planning tips section */
.theaisle-couple-tips {
    margin: 20px 0;
    padding: 20px;
    background: #fff3cd;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.theaisle-couple-tips h3 {
    margin: 0 0 10px 0;
    color: #856404;
    font-size: 1.25rem;
}

.theaisle-couple-tips ul {
    margin: 10px 0 0 20px;
    color: #856404;
}

.theaisle-couple-tips li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Couple bookmarks intro section */
.theaisle-couple-bookmarks-intro {
    margin-bottom: 20px;
    padding: 15px;
    background: #e7f3ff;
    border-radius: 8px;
    border-left: 4px solid #007cba;
}

/* Couple badge styling */
.theaisle-couple-badge {
    background: #ED1C24;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    margin-left: 10px;
    display: inline-block;
    font-weight: 500;
}

/* Couple Dashboard Welcome Content */
.couple-welcome-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.couple-quick-stats {
    margin: 2rem 0;
}

.quick-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card i {
    font-size: 2rem;
    color: #ED1C24;
    flex-shrink: 0;
}

.stat-info h4 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.stat-info p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Responsive design for couple dashboard stats */
@media (max-width: 768px) {
    .quick-stat-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .couple-welcome-text {
        font-size: 1rem;
    }
}

.theaisle-couple-bookmarks-intro h4 {
    margin: 0 0 8px 0;
    color: #0073aa;
    font-size: 1.125rem;
}

.theaisle-couple-bookmarks-intro p {
    margin: 0;
    color: #0073aa;
    line-height: 1.5;
}

/* Responsive design for couple dashboard */
@media (max-width: 768px) {
    .theaisle-couple-actions-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .theaisle-couple-dashboard-actions,
    .theaisle-couple-tips,
    .theaisle-couple-bookmarks-intro {
        padding: 15px;
        margin: 15px 0;
    }
}
