.condo360-surveys-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.survey-selection-view h2 {
    text-align: center;
    margin-bottom: 30px;
}

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

.survey-item {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.survey-item:hover {
    background: #f0f0f0;
    border-color: #0073aa;
}

.survey-item h3 {
    margin-top: 0;
    color: #0073aa;
}

.survey-description {
    color: #666;
    margin: 10px 0;
}

.survey-dates {
    color: #888;
    font-size: 0.9em;
    margin: 15px 0;
}

.select-survey-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 3px;
    cursor: pointer;
    margin-top: 10px;
}

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

.survey-back-btn-container {
    margin-bottom: 20px;
}

.back-to-surveys-btn {
    background: #f1f1f1;
    color: #333;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9em;
}

.back-to-surveys-btn:hover {
    background: #e1e1e1;
}

.condo360-survey-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
}

.condo360-survey-card h3 {
    margin-top: 0;
}

.survey-question {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 3px;
    border: 1px solid #eee;
}

.survey-question h4 {
    margin: 0 0 15px 0;
    color: #333;
}

.survey-option {
    margin: 8px 0;
    padding: 5px 0;
}

.survey-option label {
    font-weight: normal;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.survey-option input[type="radio"] {
    margin-right: 10px;
}

.survey-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: center;
}

.survey-submit-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
}

.survey-submit-btn:hover:not(:disabled) {
    background: #005a87;
}

.survey-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.survey-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 3px;
    text-align: center;
}

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

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

.condo360-survey-message.info {
    background: #d1ecf1;
    color: #0c5460;
    padding: 15px;
    border-radius: 3px;
    text-align: center;
}

/* Resident Tabs */
.resident-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
}

.resident-tab-btn {
    background: #f1f1f1;
    border: 1px solid #ccc;
    border-bottom: none;
    padding: 10px 20px;
    cursor: pointer;
    margin-right: 5px;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    color: #333;
}

.resident-tab-btn.active {
    background: #f9f9f9;
    border-bottom: 1px solid #f9f9f9;
    margin-bottom: -1px;
    color: #0073aa;
    font-weight: 600;
}

.resident-tab-btn:hover:not(.active) {
    background: #e5e5e5;
}

/* Resident Tab Content */
.resident-tab-content {
    display: none;
}

.resident-tab-content.active {
    display: block;
}

/* Resident Sections */
.resident-section {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.resident-section h3 {
    margin-top: 0;
    color: #333;
}

/* Resident Results */
.resident-results-container {
    margin-top: 20px;
}

.resident-results-content h3 {
    color: #333;
    margin-top: 0;
}

.resident-results-summary {
    background: #f1f1f1;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.resident-results-summary h4 {
    margin-top: 0;
    color: #333;
}

.summary-stats {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.stat-item {
    text-align: center;
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    flex: 1;
}

.stat-number {
    font-size: 1.5em;
    font-weight: bold;
    color: #0073aa;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    color: #666;
}

.resident-question-result {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
}

.resident-question-result h4 {
    margin-top: 0;
    color: #333;
}

.resident-option-result {
    margin-bottom: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 3px;
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.option-text {
    font-weight: 600;
    color: #333;
}

.vote-count {
    font-size: 12px;
    color: #666;
}

.resident-vote-bar {
    height: 15px;
    background: #e9ecef;
    border-radius: 8px;
    margin: 5px 0;
    overflow: hidden;
}

.resident-vote-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #0073aa, #005a87);
    border-radius: 8px;
    transition: width 0.3s ease;
}

.percentage {
    font-size: 12px;
    color: #666;
    display: block;
    text-align: right;
}

.resident-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 3px;
    text-align: center;
}

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

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

/* View Results Button */
.view-results-button-container {
    text-align: center;
    margin-bottom: 30px;
}

.view-results-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.view-results-btn:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Results Modal */
.results-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    z-index: 9999 !important;
    display: none !important;
    justify-content: center !important;
    align-items: center !important;
    backdrop-filter: blur(2px);
}

.results-modal.show {
    display: flex !important;
}

.modal-content {
    background: white !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
    max-width: 500px !important;
    width: 90% !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    border: 1px solid #e0e0e0 !important;
    position: relative !important;
    z-index: 10000 !important;
}

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

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.3em;
}

.close-modal {
    font-size: 24px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

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

.modal-body {
    padding: 25px;
}

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

.modal-body label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.modal-body select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    background: white;
}

.modal-body select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.modal-actions {
    text-align: center;
    margin-top: 20px;
}

.download-pdf-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.download-pdf-btn:hover:not(:disabled) {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.download-pdf-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.modal-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
}

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

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

.modal-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .view-results-btn,
    .download-pdf-btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}

/* Authentication Required Message */
.condo360-auth-required {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.auth-error-tooltip {
    background: #dc3545;
    color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    display: inline-block;
    position: relative;
    animation: pulse 2s infinite;
}

.auth-error-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.auth-error-message {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

.auth-error-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-top-color: #dc3545;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* Mobile responsive for auth message */
@media (max-width: 768px) {
    .auth-error-tooltip {
        padding: 15px;
        margin: 0 10px;
    }
    
    .auth-error-message {
        font-size: 14px;
    }
}

/* Modal Fixes - Force styles to override any conflicts */
.results-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
    z-index: 99999 !important;
    display: none !important;
    justify-content: center !important;
    align-items: center !important;
    backdrop-filter: blur(3px) !important;
}

.results-modal.show {
    display: flex !important;
}

.modal-content {
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
    max-width: 500px !important;
    width: 90% !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    border: 2px solid #e0e0e0 !important;
    position: relative !important;
    z-index: 100000 !important;
}

.modal-header {
    background: #f8f9fa !important;
    border-bottom: 2px solid #e0e0e0 !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 20px 25px !important;
}

.modal-header h3 {
    color: #333 !important;
    font-weight: 600 !important;
}

.modal-body {
    background: white !important;
    padding: 25px !important;
}