/* 
* Sex Drive Compatibility Tool Styles
* Using 'sdct-' prefix to avoid conflicts with other plugins or themes
*/

.sdct-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sdct-title {
    text-align: center;
    color: #333;
    font-size: 28px;
    margin-bottom: 1rem;
}

.sdct-intro {
    text-align: center;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Tabs styles */
.sdct-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 2rem;
}

.sdct-tab-link {
    background-color: #4a6fa5;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 12px 20px;
    font-size: 16px;
    flex-grow: 1;
    transition: background-color 0.3s, color 0.3s;
    text-align: center;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    margin-right: 4px;
}

.sdct-tab-link:last-child {
    margin-right: 0;
}

.sdct-tab-link.active {
    background-color: #e81c1c;
    color: white;
}

.sdct-tab-link:hover:not(.active):not([disabled]) {
    background-color: #e0e0e0;
	color:#000;
}

.sdct-tab-link[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.sdct-tab-content {
    display: none;
    padding: 1rem 0;
}

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

/* Form styles */
.sdct-form {
    margin-bottom: 2rem;
}

.sdct-form h3 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 22px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.sdct-form-group {
    margin-bottom: 1.5rem;
}

.sdct-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #444;
}

.sdct-form-group select,
.sdct-form-group input[type="text"],
.sdct-form-group input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    color: #333;
    background-color: #f9f9f9;
}

.sdct-form-group select:focus,
.sdct-form-group input:focus {
    outline: none;
    border-color: #4a6fa5;
    box-shadow: 0 0 0 2px rgba(74, 111, 165, 0.2);
}

.sdct-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.sdct-checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.sdct-checkbox-group input[type="checkbox"] {
    margin-right: 8px;
}

/* Range input styling */
input[type="range"] {
    width: 100%;
    height: 10px;
    -webkit-appearance: none;
    background: #f0f0f0;
    border-radius: 5px;
    margin-top: 10px;
    margin-bottom: 5px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4a6fa5;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4a6fa5;
    cursor: pointer;
    border: none;
}

.sdct-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
}

/* Button styles */
.sdct-button {
    background-color: #4a6fa5;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.sdct-button:hover {
    background-color: #3c5a87;
}

.sdct-button-secondary {
    background-color: #6c757d;
}

.sdct-button-secondary:hover {
    background-color: #5a6268;
}

.sdct-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

/* Results styles */
#sdct-results-content {
    margin-bottom: 2rem;
}

.sdct-result-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background-color: #f9f9f9;
}

.sdct-result-card h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
}

.sdct-result-card ul {
    padding-left: 20px;
    margin-bottom: 1rem;
}

.sdct-result-score {
    text-align: center;
    margin: 2rem 0;
}

.sdct-score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    font-size: 36px;
    font-weight: bold;
    color: white;
}

.sdct-score-label {
    font-size: 20px;
    color: #333;
    font-weight: 500;
}

.sdct-score-excellent {
    background-color: #28a745;
}

.sdct-score-good {
    background-color: #5cb85c;
}

.sdct-score-moderate {
    background-color: #ffc107;
}

.sdct-score-fair {
    background-color: #fd7e14;
}

.sdct-score-challenging {
    background-color: #dc3545;
}

.sdct-detailed-scores {
    margin-top: 2rem;
}

.sdct-score-bar {
    height: 20px;
    background-color: #e9ecef;
    border-radius: 4px;
    margin-bottom: 5px;
    overflow: hidden;
}

.sdct-score-fill {
    height: 100%;
    background-color: #4a6fa5;
}

.sdct-score-item {
    margin-bottom: 15px;
}

.sdct-score-label-small {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

/* Loading indicator */
.sdct-loading {
    text-align: center;
    display: none;
    margin: 2rem 0;
}

.sdct-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid #4a6fa5;
    width: 40px;
    height: 40px;
    animation: sdct-spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .sdct-container {
        padding: 1rem;
        margin: 1rem;
    }
    
    .sdct-tab-link {
        padding: 10px;
        font-size: 14px;
    }
    
    .sdct-checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .sdct-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .sdct-button {
        width: 100%;
    }
    
    .sdct-score-circle {
        width: 120px;
        height: 120px;
        font-size: 28px;
    }
}