/* BDRS Plugin Styles */
#bdrs-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f4f8;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.bdrs-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.bdrs-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
}

.bdrs-header p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

.bdrs-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.bdrs-patient-info {
    margin-bottom: 30px;
    padding: 20px;
    background: #E3F2FD;
    border-radius: 8px;
    border-left: 4px solid #2196F3;
}

.bdrs-patient-info label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2196F3;
    font-size: 16px;
}

.bdrs-patient-info input {
    width: 100%;
    padding: 12px;
    border: 2px solid #BBDEFB;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.bdrs-patient-info input:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.bdrs-instructions {
    margin-bottom: 30px;
    padding: 20px;
    background: #E8F5E8;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.bdrs-instructions h3 {
    margin: 0 0 10px 0;
    color: #2E7D32;
    font-size: 18px;
}

.bdrs-instructions p {
    margin: 0;
    color: #2E7D32;
    line-height: 1.6;
}

.bdrs-instructions ul {
    margin-top: 10px;
    padding-left: 20px;
    color: #2E7D32;
}

.bdrs-instructions li {
    margin-bottom: 5px;
}

.bdrs-questions {
    display: grid;
    gap: 20px;
}

.bdrs-question {
    background: #FAFAFA;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.bdrs-question:hover {
    background: #E3F2FD;
    border-color: #BBDEFB;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.1);
}

.question-text {
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
}

.rating-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rating-options label {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.rating-options label:hover {
    background: #E3F2FD;
    border-color: #90CAF9;
}

.rating-options input[type="radio"] {
    margin-right: 8px;
    accent-color: #2196F3;
}

.bdrs-question.answered {
    background: #E8F5E8;
    border-color: #4CAF50;
}

.bdrs-question.answered .question-text {
    color: #2E7D32;
}

.bdrs-progress {
    margin-top: 30px;
    padding: 20px;
    background: #E3F2FD;
    border-radius: 8px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #BBDEFB;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2196F3, #1976D2);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-text {
    margin: 0;
    color: #2196F3;
    font-weight: 600;
    font-size: 16px;
}

.bdrs-submit {
    text-align: center;
    margin-top: 30px;
}

#bdrs-submit-btn {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

#bdrs-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #1976D2, #0D47A1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

#bdrs-submit-btn:disabled {
    background: #BDBDBD;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.bdrs-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(33, 150, 243, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: white;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.loading-content h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
}

.loading-content p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

/* Responsividade */
@media (max-width: 768px) {
    #bdrs-container {
        margin: 10px;
        padding: 15px;
    }
    
    .bdrs-header {
        padding: 20px;
    }
    
    .bdrs-header h2 {
        font-size: 24px;
    }
    
    .bdrs-form {
        padding: 20px;
    }
    
    .bdrs-question {
        padding: 12px;
    }
    
    .question-text {
        font-size: 15px;
    }
    
    .rating-options label {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    #bdrs-submit-btn {
        padding: 12px 30px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .bdrs-questions {
        gap: 15px;
    }
    
    .bdrs-question {
        padding: 10px;
    }
    
    .question-text {
        font-size: 14px;
    }
    
    .rating-options label {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* Print styles */
@media print {
    #bdrs-container {
        background: white;
        box-shadow: none;
    }
    
    .bdrs-loading {
        display: none !important;
    }
    
    #bdrs-submit-btn {
        display: none;
    }
}


