/**
 * Enhanced Styles for the Email Attendees page
 * 
 * @version 2.0.0
 */

/* Main Container */
.hvac-email-attendees-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--hvac-spacing-xl);
    background-color: #f9fafb;
    border-radius: var(--hvac-border-radius);
}

/* Header Section */
.hvac-email-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--hvac-spacing-xl);
    flex-wrap: wrap;
    border-bottom: 1px solid var(--hvac-border);
    padding-bottom: var(--hvac-spacing-md);
}

.hvac-email-title h1 {
    margin: 0 0 var(--hvac-spacing-sm) 0;
    color: var(--hvac-text);
    font-size: 1.8rem;
    font-weight: 600;
}

.hvac-email-title h2 {
    margin: 0;
    color: var(--hvac-text-light);
    font-size: 1.2rem;
    font-weight: 500;
}

.hvac-email-navigation {
    display: flex;
    gap: var(--hvac-spacing-sm);
    flex-wrap: wrap;
}

.hvac-email-navigation a {
    min-width: 120px;
    text-align: center;
}

/* Email Form */
.hvac-email-form {
    background-color: white;
    padding: var(--hvac-spacing-lg);
    border-radius: var(--hvac-border-radius);
    box-shadow: var(--hvac-shadow);
    margin-bottom: var(--hvac-spacing-xl);
}

/* Event Info Section */
.hvac-email-info {
    background-color: var(--hvac-primary-light);
    padding: var(--hvac-spacing-md) var(--hvac-spacing-lg);
    border-radius: var(--hvac-border-radius);
    margin-bottom: var(--hvac-spacing-lg);
    border-left: 4px solid var(--hvac-primary);
}

.hvac-email-info p {
    margin: var(--hvac-spacing-sm) 0;
    color: var(--hvac-text);
}

.hvac-email-info strong {
    color: var(--hvac-primary);
}

/* Form Rows */
.hvac-email-form-row {
    margin-bottom: var(--hvac-spacing-lg);
}

.hvac-email-form-row label {
    display: block;
    margin-bottom: var(--hvac-spacing-sm);
    font-weight: 600;
    color: var(--hvac-text);
    font-size: 0.95rem;
}

.hvac-email-form-row input[type="text"], 
.hvac-email-form-row textarea {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid var(--hvac-border);
    border-radius: var(--hvac-border-radius);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #f9fafb;
}

.hvac-email-form-row input[type="text"]:focus, 
.hvac-email-form-row textarea:focus {
    border-color: var(--hvac-primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--hvac-primary-light);
    background-color: white;
}

.hvac-email-form-row textarea {
    min-height: 200px;
    resize: vertical;
}

/* Recipients Section */
.hvac-email-recipients {
    margin-top: var(--hvac-spacing-xl);
    border: 1px solid var(--hvac-border);
    padding: var(--hvac-spacing-lg);
    border-radius: var(--hvac-border-radius);
    background-color: #f9fafb;
}

.hvac-email-recipients h3 {
    margin-top: 0;
    margin-bottom: var(--hvac-spacing-md);
    color: var(--hvac-text);
    font-size: 1.2rem;
    font-weight: 600;
    padding-bottom: var(--hvac-spacing-sm);
    border-bottom: 1px solid var(--hvac-border-light);
}

/* Filter Section */
.hvac-email-filter {
    margin-bottom: var(--hvac-spacing-lg);
    display: flex;
    gap: var(--hvac-spacing-md);
    align-items: center;
    flex-wrap: wrap;
    padding: var(--hvac-spacing-md);
    background-color: white;
    border-radius: var(--hvac-border-radius);
    box-shadow: var(--hvac-shadow);
}

.hvac-email-filter label {
    font-weight: 600;
    margin-right: var(--hvac-spacing-sm);
    color: var(--hvac-text);
}

.hvac-email-filter select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--hvac-border);
    border-radius: var(--hvac-border-radius);
    background-color: white;
    min-width: 200px;
    font-size: 0.95rem;
}

/* Attendee List */
.hvac-attendee-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--hvac-border);
    border-radius: var(--hvac-border-radius);
    background-color: white;
    margin-bottom: var(--hvac-spacing-lg);
}

.hvac-attendee-item {
    padding: var(--hvac-spacing-md);
    border-bottom: 1px solid var(--hvac-border-light);
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
}

.hvac-attendee-item:last-child {
    border-bottom: none;
}

.hvac-attendee-item:hover {
    background-color: var(--hvac-primary-light);
}

.hvac-attendee-checkbox {
    margin-right: var(--hvac-spacing-md);
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.hvac-attendee-info {
    flex: 1;
}

.hvac-attendee-name {
    font-weight: 600;
    color: var(--hvac-text);
    margin-bottom: var(--hvac-spacing-xs);
}

.hvac-attendee-email {
    color: var(--hvac-text-light);
    font-size: 0.9rem;
}

.hvac-attendee-ticket {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background-color: var(--hvac-secondary-light);
    color: var(--hvac-secondary-dark);
    border-radius: 12px;
    font-size: 0.75rem;
    margin-left: var(--hvac-spacing-md);
}

/* Select All Option */
.hvac-select-all-container {
    margin-bottom: var(--hvac-spacing-md);
    padding: var(--hvac-spacing-sm) var(--hvac-spacing-md);
    background-color: white;
    border-radius: var(--hvac-border-radius);
    border: 1px solid var(--hvac-border);
}

.hvac-select-all-container label {
    display: flex;
    align-items: center;
    font-weight: 600;
    cursor: pointer;
}

.hvac-select-all-container input[type="checkbox"] {
    margin-right: var(--hvac-spacing-sm);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Count Badge */
.hvac-count-badge {
    background-color: var(--hvac-primary);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.75rem;
    margin-left: var(--hvac-spacing-sm);
    font-weight: 600;
}

/* Form Submit Button */
.hvac-email-submit-row {
    margin-top: var(--hvac-spacing-xl);
    text-align: center;
}

button.hvac-email-submit {
    padding: 0.85rem 2rem;
    background-color: var(--hvac-primary);
    color: white;
    border: none;
    border-radius: var(--hvac-border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--hvac-shadow);
}

button.hvac-email-submit:hover {
    background-color: var(--hvac-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--hvac-shadow-lg);
}

button.hvac-email-submit:active {
    transform: translateY(0);
}

/* Success/Error Messages */
.hvac-email-sent {
    background-color: var(--hvac-success-light);
    color: var(--hvac-success);
    padding: var(--hvac-spacing-md) var(--hvac-spacing-lg);
    border-radius: var(--hvac-border-radius);
    margin-bottom: var(--hvac-spacing-lg);
    border-left: 4px solid var(--hvac-success);
    font-weight: 500;
}

.hvac-email-error {
    background-color: var(--hvac-error-light);
    color: var(--hvac-error);
    padding: var(--hvac-spacing-md) var(--hvac-spacing-lg);
    border-radius: var(--hvac-border-radius);
    margin-bottom: var(--hvac-spacing-lg);
    border-left: 4px solid var(--hvac-error);
    font-weight: 500;
}

/* Responsive styles */
@media (max-width: 768px) {
    .hvac-email-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hvac-email-navigation {
        margin-top: var(--hvac-spacing-md);
        width: 100%;
    }
    
    .hvac-email-navigation a {
        flex: 1;
        min-width: unset;
    }
    
    .hvac-email-filter {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hvac-email-filter select {
        width: 100%;
        margin-top: var(--hvac-spacing-xs);
    }
    
    .hvac-email-attendees-wrapper {
        padding: var(--hvac-spacing-md);
    }
    
    .hvac-email-form {
        padding: var(--hvac-spacing-md);
    }
}

@media (max-width: 480px) {
    .hvac-email-title h1 {
        font-size: 1.5rem;
    }
    
    .hvac-email-title h2 {
        font-size: 1rem;
    }
    
    .hvac-attendee-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hvac-attendee-checkbox {
        margin-bottom: var(--hvac-spacing-xs);
    }
    
    .hvac-attendee-ticket {
        margin-left: 0;
        margin-top: var(--hvac-spacing-xs);
    }
}