/* UNITEDSAMAJ RSVP Frontend Styles */

/* Modal Styles */
.rsvp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
}

.rsvp-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.rsvp-modal-dialog {
    position: relative;
    max-width: 600px;
    max-height: 90vh;
    width: 90%;
    margin: 20px;
}

.rsvp-modal-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.rsvp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.rsvp-modal-header h3 {
    margin: 0;
    color: #333;
}

.rsvp-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rsvp-modal-close:hover {
    color: #333;
}

.rsvp-modal-body {
    padding: 20px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

/* RSVP Section Styles */
.rsvp-section {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}

.rsvp-stats {
    margin-bottom: 15px;
}

.rsvp-stats h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.attendee-count {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}

.count-number {
    font-size: 24px;
    font-weight: bold;
    color: #007cba;
}

.count-label {
    color: #666;
    font-size: 14px;
}

.limit-info, .closing-info {
    margin: 5px 0;
}

.limit-info small, .closing-info small {
    color: #666;
    font-size: 12px;
}

/* Button Styles */
.rsvp-button, .btn {
    display: inline-block;
    padding: 10px 20px;
    background: #007cba;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.rsvp-button:hover, .btn:hover {
    background: #005a87;
    color: #fff;
}

.btn-primary {
    background: #007cba;
}

.btn-primary:hover {
    background: #005a87;
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-success {
    background: #28a745;
}

.btn-success:hover {
    background: #1e7e34;
}

.rsvp-closed {
    padding: 10px 20px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 4px;
    font-size: 14px;
}

/* Form Styles */
.rsvp-form {
    max-width: 500px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group label.required:after {
    content: " *";
    color: #dc3545;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.form-group input[readonly] {
    background-color: #f8f9fa;
    color: #6c757d;
}

.radio-label, .checkbox-label {
    display: block !important;
    margin-bottom: 8px !important;
    font-weight: normal !important;
    cursor: pointer;
}

.radio-label input, .checkbox-label input {
    width: auto !important;
    margin-right: 8px;
}

.custom-questions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.custom-questions h4 {
    margin: 0 0 15px 0;
    color: #333;
}

.rsvp-custom-message {
    background: #e7f3ff;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #007cba;
}

.rsvp-custom-message p {
    margin: 0;
    color: #333;
}

/* Form Actions */
.rsvp-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.rsvp-submit-btn, .rsvp-cancel-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px !important;
    text-transform: uppercase !important;
    font-weight: 500;
}

.rsvp-submit-btn {
    background: #007cba;
    color: #fff;
}

.rsvp-submit-btn:hover {
    background: #005a87;
}

.rsvp-cancel-btn {
    background: #6c757d;
    color: #fff;
}

.rsvp-cancel-btn:hover {
    background: #545b62;
}

/* Messages */
.rsvp-messages {
    margin-top: 15px;
}

.rsvp-message {
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.rsvp-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.rsvp-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading States */
.rsvp-loading {
    text-align: center;
    padding: 40px 20px;
}

.rsvp-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error States */
.rsvp-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
    margin: 15px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rsvp-modal-content {
        width: 95%;
        margin: 20px;
        max-height: calc(100vh - 40px);
    }
    
    .rsvp-modal-header,
    .rsvp-modal-body {
        padding: 15px;
    }
    
    .rsvp-section {
        padding: 15px;
        margin: 15px 0;
    }
    
    .attendee-count {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .rsvp-form-actions {
        flex-direction: column;
    }
    
    .rsvp-form-actions .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Animation */
.rsvp-modal {
    animation: fadeIn 0.3s ease-out;
}

.rsvp-modal-content {
    animation: slideIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Individual Attendee Sections */
.attendee-custom-questions {
    margin-top: 20px;
}

.attendee-custom-questions h4 {
    color: #333;
    margin-bottom: 20px;
    font-size: 18px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 8px;
}

.attendee-section {
    margin-bottom: 25px;
    padding: 20px;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    background-color: #fafafa;
    transition: border-color 0.2s ease;
}

.attendee-section:hover {
    border-color: #ddd;
}

.attendee-title {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding: 8px 12px;
    background-color: #e8f4f8;
    border-left: 4px solid #3498db;
    border-radius: 4px;
}

.attendee-section .form-group {
    margin-bottom: 15px;
}

.attendee-section .form-group:last-child {
    margin-bottom: 0;
}

.attendee-section label {
    font-weight: 500;
    color: #555;
    display: block;
    margin-bottom: 5px;
}

.attendee-section input[type="text"],
.attendee-section input[type="email"],
.attendee-section textarea,
.attendee-section select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.attendee-section .radio-label,
.attendee-section .checkbox-label {
    display: block;
    margin-bottom: 8px;
    font-weight: normal;
    cursor: pointer;
    padding: 5px 0;
}

.attendee-section .radio-label input,
.attendee-section .checkbox-label input {
    margin-right: 8px;
    width: auto;
}

.attendee-questions-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
    background-color: #f9f9f9;
    border: 1px dashed #ccc;
    border-radius: 4px;
}

/* Adult/Child visual distinction */
.attendee-section[data-attendee-index^="0"] .attendee-title,
.attendee-section[data-attendee-index^="1"] .attendee-title,
.attendee-section[data-attendee-index^="2"] .attendee-title,
.attendee-section[data-attendee-index^="3"] .attendee-title,
.attendee-section[data-attendee-index^="4"] .attendee-title {
    background-color: #e8f5e8;
    border-left-color: #27ae60;
}

/* Responsive design for attendee sections */
@media (max-width: 768px) {
    .attendee-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .attendee-title {
        font-size: 15px;
        padding: 6px 10px;
    }
    
    .attendee-custom-questions h4 {
        font-size: 16px;
    }
}

/* Dashboard Section Styles */
.dashboard-section.rsvp-section {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background: #fff;
}

.rsvp-setup-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
}

.rsvp-setup-notice p {
    margin: 0 0 10px 0;
    color: #856404;
}

.rsvp-summary {
    display: flex;
    gap: 20px;
    margin: 15px 0 20px 0;
    flex-wrap: wrap;
}

.rsvp-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 100px;
}

.rsvp-stat .stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #2271b1;
    line-height: 1;
}

.rsvp-stat .stat-label {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recent-rsvps {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.recent-rsvps h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
}

.rsvps-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rsvp-item-small {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #2271b1;
}

.rsvp-info h5 {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: #333;
}

.rsvp-info p {
    margin: 0 0 4px 0;
    font-size: 13px;
    color: #666;
}

.rsvp-attendees {
    font-size: 12px;
    color: #2271b1;
    font-weight: 500;
}

.rsvp-date {
    font-size: 12px;
    color: #888;
    text-align: right;
}

/* Admin Page Styles */
.rsvp-filters {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.rsvp-filters form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.rsvp-filters select {
    min-width: 150px;
}

/* Responsive dashboard */
@media (max-width: 768px) {
    .rsvp-summary {
        gap: 15px;
    }
    
    .rsvp-stat {
        min-width: 80px;
    }
    
    .rsvp-item-small {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .rsvp-date {
        text-align: left;
    }
    
    .rsvp-filters form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .rsvp-filters select {
        min-width: auto;
    }
}

/* STEP 1: Events Overview Styles */
.rsvp-controls, .rsvp-details-controls {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.controls-form.single-row {
    display: flex;
    gap: 20px;
    align-items: end;
    flex-wrap: wrap;
    justify-content: flex-start;
    /* position: relative; */
}

.controls-form.single-row::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -10px;
    right: -10px;
    height: 3px;
    /* background: linear-gradient(90deg, #007cba, #17a2b8, #28a745); */
    border-radius: 2px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    position: relative;
}

.control-group:not(.action-group):not(.management-actions)::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 30px;
    background: #dee2e6;
}

.control-group:last-child::after {
    display: none;
}

.control-label {
    font-size: 12px;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.search-input, .filter-select, .sort-select, .order-select {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    transition: border-color 0.2s ease;
    min-width: 0;
}

.search-input:focus, .filter-select:focus, .sort-select:focus, .order-select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

/* Specific widths for different controls */
.search-input {
    min-width: 180px;
}

.filter-select, .sort-select, .order-select {
    min-width: 120px;
}

.action-group {
    display: flex;
    flex-direction: row !important;
    gap: 8px;
    align-items: center;
    margin-left: auto;
}

.management-actions {
    display: flex;
    flex-direction: row !important;
    gap: 8px !important;
    align-items: center;
    border-left: 1px solid #dee2e6;
    padding-left: 20px;
    margin-left: 15px;
}

.search-btn, .clear-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.search-btn {
    background: #007cba;
    color: white;
}

.search-btn:hover {
    background: #005a8b;
}

.clear-btn {
    background: #E91E63;
    color: white;
    padding: 10px 14px;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.clear-btn:hover {
    background: #e90452;
    text-decoration: none;
    color: white;
    transform: scale(1.1);
}

.btn-add-rsvp, .btn-export, .btn-complete {
    padding: 10px 14px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.btn-add-rsvp {
    background: #28a745;
    color: white;
}

.btn-add-rsvp:hover {
    background: #218838;
    transform: scale(1.1);
}

.btn-export {
    background: #17a2b8;
    color: white;
}

.btn-export:hover {
    background: #138496;
    transform: scale(1.1);
}

.btn-complete {
    background: #dc3545;
    color: white;
}

.btn-complete:hover {
    background: #c82333;
    transform: scale(1.1);
}

.events-list-container {
    display: grid;
    gap: 20px;
}

.event-item-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.event-item-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.event-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.event-status {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-status.status-active {
    background: #d4edda;
    color: #155724;
}

.event-status.status-checkin-pending {
    background: #f8d7da;
    color: #721c24;
}

.event-status.status-checkin-completed {
    background: #d1ecf1;
    color: #0c5460;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-item strong {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item span {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.event-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    flex-direction: column;
    align-items: center;
}

.btn-view, .btn-report {
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid;
    transition: all 0.3s ease;
}

.btn-view {
    background: #2271b1;
    color: white;
    border-color: #2271b1;
}

.btn-view:hover {
    background: #1e5f9a;
    color: white;
}

.btn-report {
    background: #666;
    color: white;
    border-color: #666;
}

.btn-report:hover {
    background: #555;
    color: white;
}

/* STEP 2: Detailed RSVP View Styles */
.rsvp-details-view {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.rsvp-details-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    /* border-bottom: 2px solid #eee; */
}

.back-btn {
    padding: 8px 15px;
    background: #666;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    flex-shrink: 0;
}

.back-btn:hover {
    background: #555;
    color: white;
}

.rsvp-details-header h2 {
    flex: 1 1 auto;
    margin: 0;
    color: #333;
    font-size: 24px;
    min-width: 200px;
}

.rsvp-details-header .event-status {
    flex-shrink: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .rsvp-details-header {
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .rsvp-details-header h2 {
        font-size: 18px;
        flex: 1 1 100%;
        order: 2;
        min-width: 100%;
    }
    
    .back-btn {
        order: 1;
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .rsvp-details-header .event-status {
        order: 1;
        /* flex: 1 1 auto; */
    }
}

@media (max-width: 480px) {
    .rsvp-details-header h2 {
        font-size: 16px;
    }
    
    .back-btn {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .rsvp-details-header .event-status {
        font-size: 11px;
        padding: 4px 8px;
    }
}

.rsvp-summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.stat-card.checked-in {
    border-left: 4px solid #28a745;
}

.stat-card.pending {
    border-left: 4px solid #dc3545;
}

.stat-card .stat-number {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: #2271b1;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-card .stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rsvp-details-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.left-controls, .right-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.inline-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.inline-form input, .inline-form select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.inline-form button {
    padding: 6px 12px;
    background: #2271b1;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-add-rsvp, .btn-export, .btn-complete {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.btn-add-rsvp {
    background: #28a745;
    color: white;
}

.btn-export {
    background: #17a2b8;
    color: white;
}

.btn-complete {
    background: #dc3545;
    color: white;
}

.filter-sort-controls {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.clear-btn {
    text-decoration: none;
    font-size: 14px;
}

.rsvp-list-detailed {
    display: grid;
    gap: 15px;
}

.rsvp-item-detailed {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.rsvp-main-info {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 20px;
    align-items: center;
    margin-bottom: 15px;
}

.rsvp-person h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 16px;
}

.rsvp-person .email {
    margin: 0 0 8px 0;
    color: #666;
    font-size: 14px;
}

.submission-info {
    display: flex;
    gap: 10px;
    align-items: center;
}

.submission-info .date {
    font-size: 12px;
    color: #888;
}

.submission-info .type {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.type-online {
    background: #d1ecf1;
    color: #0c5460;
}

.type-door {
    background: #f8d7da;
    color: #721c24;
}

.rsvp-attendees {
    text-align: center;
}

.attendee-count {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* .attendee-count span {
    font-size: 14px;
    font-weight: 500;
    color: #333;
} */

.checkin-control {
    text-align: center;
}

.checkin-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkin-checkbox {
    width: 18px;
    height: 18px;
}

.checkin-label {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkin-status {
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.checkin-status.checked-in {
    background: #d4edda;
    color: #155724;
}

.checkin-status.not-checked-in {
    background: #f8d7da;
    color: #721c24;
}

.rsvp-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}

.btn-view-answers, .btn-edit, .btn-delete {
    padding: 5px 10px;
    border: 1px solid;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    text-decoration: none;
}

.btn-view-answers {
    background: #e9ecef;
    color: #495057;
    border-color: #ced4da;
}

.btn-edit {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.btn-delete {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.has-message {
    font-size: 16px;
    cursor: help;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
}

.page-link {
    padding: 8px 12px;
    border: 1px solid #ddd;
    color: #2271b1;
    text-decoration: none;
    border-radius: 4px;
}

.page-link:hover, .page-link.current {
    background: #2271b1;
    color: white;
}

/* Modal Enhancements for RSVP Management */
.rsvp-modal-content {
    max-width: 600px;
    width: 90%;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.btn-cancel, .btn-save, .btn-confirm {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.btn-cancel {
    background: #6c757d;
    color: white;
}

.btn-save {
    background: #28a745;
    color: white;
}

.btn-confirm {
    background: #dc3545;
    color: white;
}

/* Table Styles for RSVP Management */
.rsvp-table-wrapper {
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.rsvp-events-table, .rsvp-details-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.rsvp-events-table tfoot {
    background: #e9ecef;
    border-top: 2px solid #dee2e6;
}

.summary-row td {
    padding: 12px 15px;
    font-weight: 600;
    color: #495057;
    border-bottom: none;
}

.total-rsvps, .total-attendees, .total-checkins {
    color: #007cba;
    font-size: 16px;
}

.rsvp-events-table th, .rsvp-details-table th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    text-align: left;
    padding: 12px 15px;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rsvp-events-table td, .rsvp-details-table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}

.rsvp-events-table tr:hover, .rsvp-details-table tr:hover {
    background-color: #f8f9fa;
}

/* STEP 1: Events Table Styles */
.event-name {
    min-width: 200px;
}

.event-name strong {
    color: #2c3e50;
    font-size: 15px;
}

.venue-info {
    color: #6c757d;
    font-style: italic;
}

.event-date {
    min-width: 120px;
}

.rsvp-count, .attendee-count {
    min-width: 80px;
}

.rsvp-count .count-number, .attendee-count .count-number {
    font-size: 18px;
    font-weight: 700;
    color: #007cba;
}

.count-display {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.count-display .count-total {
    font-size: 16px;
    font-weight: 700;
    color: #007cba;
}

.count-display .count-breakdown {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.checkin-progress {
    text-align: center;
    min-width: 120px;
}

.progress-bar {
    width: 60px;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin: 3px auto;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    transition: width 0.3s ease;
}

.not-applicable {
    color: #adb5bd;
    font-style: italic;
}

.closing-date {
    min-width: 120px;
    text-align: center;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-active {
    background: #d4edda;
    color: #155724;
}

.status-badge.status-checkin-pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.status-checkin-completed {
    background: #d1ecf1;
    color: #0c5460;
}

.action-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.btn {
    padding: 6px 12px;
    border: 1px solid;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 11px;
}

.btn-primary {
    background: #007cba;
    border-color: #007cba;
    color: white;
}

.btn-primary:hover {
    background: #005a8b;
    border-color: #005a8b;
    color: white;
}

.btn-secondary {
    background: #6c757d;
    border-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    border-color: #545b62;
    color: white;
}

/* STEP 2: RSVP Details Table Styles */
.select-all-col {
    width: 40px;
    text-align: center;
}

.checkin-checkbox-col {
    width: 40px;
    text-align: center;
}

.contact-info {
    min-width: 200px;
}

.full-name {
    color: #2c3e50;
    font-size: 15px;
}

.email {
    color: #6c757d;
    font-size: 13px;
    margin-top: 2px;
}



.attendee-details {
    min-width: 120px;
}

.attendee-breakdown {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.adults-count, .children-count {
    font-size: 12px;
    color: #6c757d;
}

.total-attendees {
    margin-top: 4px;
    color: #007cba;
    font-weight: 600;
}

.submission-details {
    min-width: 100px;
    text-align: center;
}

.submission-date {
    font-weight: 500;
    color: #495057;
}

.submission-time {
    font-size: 12px;
    color: #6c757d;
}

.submission-type {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
}

.type-online {
    background: #d1ecf1;
    color: #0c5460;
}

.type-door {
    background: #f8d7da;
    color: #721c24;
}

.checkin-status-col {
    min-width: 120px;
    text-align: center;
}

.checkin-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.checkin-badge.checked-in {
    background: #d4edda;
    color: #155724;
}

.checkin-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.checkin-badge.not-checked-in {
    background: #f8d7da;
    color: #721c24;
}

.button-group {
    display: flex;
    gap: 3px;
    justify-content: center;
    align-items: center;
}

.btn-icon {
    font-size: 14px;
}

.btn-info {
    background: none;
    /* border-color: #17a2b8;
    color: white; */
}

.btn-info:hover {
    background: #138496;
    border-color: #138496;
    color: white;
}

.btn-warning {
    background: none;
    /* border-color: #ffc107;
    color: #212529; */
}

.btn-warning:hover {
    background: #e0a800;
    border-color: #e0a800;
    color: #212529;
}

.btn-danger {
    background: none;
    /* border-color: #dc3545;
    color: white; */
}

.btn-danger:hover {
    background: #c82333;
    border-color: #c82333;
    color: white;
}

.message-indicator {
    font-size: 14px;
    cursor: help;
    margin-left: 5px;
}

/* Responsive Design for RSVP Management */
@media (max-width: 992px) {
    .controls-form.single-row {
        gap: 15px;
    }
    
    .management-actions {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        border-top: 1px solid #dee2e6;
        padding-top: 15px;
        margin-top: 15px;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .controls-form.single-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .control-group {
        width: 100%;
    }
    
    .search-input, .filter-select, .sort-select, .order-select {
        min-width: 100%;
        width: 100%;
    }
    
    .action-group {
        flex-direction: row;
        justify-content: center;
        margin-left: 0;
        width: 100%;
    }
    
    .management-actions {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        border-top: 1px solid #dee2e6;
        padding-top: 15px;
        margin-top: 15px;
        border-left: none;
        padding-left: 0;
        margin-left: 0;
    }
    
    .rsvp-controls, .rsvp-details-controls {
        padding: 15px;
    }
    
    .rsvp-main-info {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .event-actions {
        justify-content: center;
    }
    
    .rsvp-summary-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Mobile table adjustments */
    .rsvp-events-table, .rsvp-details-table {
        font-size: 12px;
    }
    
    .rsvp-events-table th, .rsvp-details-table th,
    .rsvp-events-table td, .rsvp-details-table td {
        padding: 8px 10px;
    }
    
    .venue-info {
        display: none; /* Hide secondary info on mobile */
    }
    
    .button-group {
        flex-direction: column;
        gap: 2px;
    }
    
    .btn-sm {
        padding: 3px 6px;
        font-size: 10px;
    }
    
    /* Stack table cells on very small screens */
    @media (max-width: 480px) {
        .rsvp-table-wrapper {
            overflow-x: scroll;
        }
        
        .action-buttons {
            min-width: 80px;
        }
    }
}

/* Frontend RSVP Management Styles */
.rsvp-management-frontend {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.rsvp-management-header {
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 20px;
}

.rsvp-management-header h2 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 28px;
}

.rsvp-management-header p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

.rsvp-filters-frontend {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.filter-form {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-form label {
    font-weight: 500;
    color: #333;
}

.filter-form select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    min-width: 200px;
}

.clear-filter {
    color: #2271b1;
    text-decoration: none;
    font-size: 14px;
}

.clear-filter:hover {
    text-decoration: underline;
}

.rsvp-stats-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
}

.stat-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-width: 120px;
}

.stat-item .stat-number {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #2271b1;
    line-height: 1;
}

.stat-item .stat-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rsvp-list-frontend {
    display: grid;
    gap: 20px;
}

.rsvp-item-frontend {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.rsvp-item-frontend:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.rsvp-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.rsvp-item-header h4 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.rsvp-date-badge {
    background: #2271b1;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.rsvp-item-details {
    display: grid;
    gap: 10px;
}

.detail-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.detail-row strong {
    color: #333;
    min-width: 100px;
    flex-shrink: 0;
}

.detail-row span {
    color: #666;
    flex: 1;
}

.custom-answers {
    margin-top: 5px;
}

.attendee-answers {
    margin-bottom: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #2271b1;
}

.attendee-answers strong {
    display: block;
    margin-bottom: 5px;
    color: #2271b1;
}

.attendee-answers div {
    margin: 2px 0;
    padding-left: 10px;
    font-size: 14px;
}

.no-rsvps-message {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.no-rsvps-message h3 {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 24px;
}

.no-rsvps-message p {
    margin: 0 0 20px 0;
    color: #888;
    font-size: 16px;
}

/* Responsive design for frontend management */
@media (max-width: 768px) {
    .rsvp-management-frontend {
        padding: 15px;
    }
    
    .rsvp-management-header h2 {
        font-size: 24px;
    }
    
    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-form select {
        min-width: auto;
    }
    
    .rsvp-stats-summary {
        flex-direction: column;
        gap: 15px;
    }
    
    .rsvp-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .rsvp-date-badge {
        align-self: flex-start;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .detail-row strong {
        min-width: auto;
    }
}

/* Custom Answers Modal Styles */
.custom-answers-view {
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
}

.attendee-answers-section {
    margin-bottom: 25px;
    padding: 15px;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    background: #f9f9f9;
}

.attendee-answers-section h5 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 2px solid #007cba;
    padding-bottom: 8px;
}

.answers-grid {
    display: grid;
    gap: 12px;
}

.answer-item {
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.answer-item strong {
    color: #333;
    font-size: 14px;
}

.answer-item span {
    color: #555;
    font-size: 14px;
    word-wrap: break-word;
}

/* Edit RSVP Modal Styles */
.rsvp-modal-lg {
    max-width: 800px;
}

.rsvp-modal-lg .rsvp-modal-content {
    max-width: 800px;
}

.rsvp-modal-body {
    max-height: 70vh;
    overflow-y: auto;
    padding: 20px;
}

.rsvp-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
    text-align: right;
}

.rsvp-modal-footer .btn {
    margin-left: 10px;
}

/* Loading overlay for modals */
.rsvp-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rsvp-loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Action button improvements */
.action-button {
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.action-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.action-button.view-btn:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.action-button.edit-btn:hover {
    background-color: #e0a800;
    border-color: #e0a800;
}

.action-button.delete-btn:hover {
    background-color: #c82333;
    border-color: #c82333;
}

/* Form improvements for edit modal */
#rsvp-edit-form .form-row {
    display: flex;
    gap: 15px;
}

#rsvp-edit-form .form-row .form-group {
    flex: 1;
}

#rsvp-edit-form .form-control:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.25);
}

/* Responsive modal improvements */
@media (max-width: 768px) {
    .rsvp-modal-lg {
        max-width: 95%;
    }
    
    .custom-answers-view {
        max-height: 50vh;
    }
    
    .rsvp-modal-body {
        max-height: 60vh;
        padding: 15px;
    }
    
    #rsvp-edit-form .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* RSVP Dashboard Card Styles */
.rsvp-card {
    display: flex;
    flex-direction: column;
}

.rsvp-card .card-content {
    flex-grow: 1;
}

.rsvp-setup-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
}

.rsvp-setup-notice p {
    margin: 0 0 10px 0;
    color: #856404;
}

/* Compact RSVP stats styling */
.rsvp-card .stats-grid {
    margin: 0;
}

.rsvp-card .stat-box {
    padding: 12px;
}

/* Color-coded stat boxes matching event status colors */
.stat-box.stat-active {
    background: #d4edda;
    border: 1px solid #c3e6cb;
}

.stat-box.stat-active .stat-number {
    color: #155724;
}

.stat-box.stat-active .stat-label {
    color: #155724;
}

.stat-box.stat-pending {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
}

.stat-box.stat-pending .stat-number {
    color: #721c24;
}

.stat-box.stat-pending .stat-label {
    color: #721c24;
}

.stat-box.stat-completed {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
}

.stat-box.stat-completed .stat-number {
    color: #0c5460;
}

.stat-box.stat-completed .stat-label {
    color: #0c5460;
}

/* Success Message with Actions Styles */
.rsvp-messages {
    margin-bottom: 20px;
    width: 100%;
}

.rsvp-success-with-actions {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%) !important;
    border: 2px solid #28a745 !important;
    border-radius: 8px;
    padding: 25px !important;
    display: flex !important;
    flex-direction: column;
    gap: 20px;
    margin: 0 !important;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
    position: relative;
    overflow: hidden;
}

.rsvp-success-with-actions::before {
    content: '✓';
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 80px;
    color: rgba(40, 167, 69, 0.1);
    font-weight: bold;
}

.rsvp-success-with-actions .alert-message {
    color: #155724;
    font-weight: 600;
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rsvp-success-with-actions .alert-message::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
}

.rsvp-success-with-actions .alert-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 5px;
    justify-content: center;
}

.rsvp-success-with-actions .btn-sm {
    padding: 10px 24px;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rsvp-success-with-actions .btn-primary {
    background: #28a745;
    color: white;
}

.rsvp-success-with-actions .btn-primary:hover {
    background: #218838;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    transform: translateY(-2px);
}

.rsvp-success-with-actions .btn-secondary {
    background: #6c757d;
    color: white;
}

.rsvp-success-with-actions .btn-secondary:hover {
    background: #5a6268;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
    transform: translateY(-2px);
}

.rsvp-success-with-actions .btn-sm:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 576px) {
    .rsvp-success-with-actions {
        padding: 20px !important;
        gap: 15px;
    }
    
    .rsvp-success-with-actions .alert-actions {
        flex-direction: column;
    }
    
    .rsvp-success-with-actions .btn-sm {
        width: 100%;
        text-align: center;
    }
}

.unitedsamaj-page-content {
    background:white;
}

/* Response Summary Modal Styles */
.response-summary-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.response-summary-modal {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease-out;
}

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

.response-summary-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.response-summary-modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.response-summary-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.response-summary-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.response-summary-modal-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.response-summary-modal-content .questions-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 0;
}

.response-summary-modal-content .question-summary-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.response-summary-modal-content .question-title {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #007cba;
    display: block;
    word-break: break-word;
}

.response-summary-modal-content .question-stats-badge {
    display: block;
    background: #e7f3ff;
    color: #007cba;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #d0e8f2;
    width: fit-content;
    margin-top: 8px;
}

.response-summary-modal-content .question-choices {
    display: block;
    margin-top: 12px;
}

.response-summary-modal-content .choice-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.response-summary-modal-content .choice-row.no-answer {
    background: #f8f9fa;
    padding: 10px 8px;
    border-radius: 4px;
    margin-top: 8px;
    border: 1px dashed #ddd;
}

.response-summary-modal-content .choice-name {
    flex: 1;
    color: #555;
    font-size: 13px;
    font-weight: 500;
}

.response-summary-modal-content .choice-count {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
}

.response-summary-modal-content .count-badge {
    background: #007cba;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
    display: inline-block;
}

.response-summary-modal-content .count-percentage {
    color: #999;
    font-size: 11px;
    font-weight: 600;
    min-width: 40px;
    text-align: right;
}

/* Response Summary Stat Card */
.stat-card.response-summary {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.stat-card.response-summary:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 124, 186, 0.2);
    border-color: #007cba;
}

@media (max-width: 768px) {
    .response-summary-modal {
        max-height: 90vh;
        width: 95%;
    }
    
    .response-summary-modal-content .questions-summary-grid {
        grid-template-columns: 1fr;
    }
}