/* Mindset Tracker Plugin Styles */

.mindset-tracker-container {
    margin: 20px 0;
}

.mindset-tracker-button {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 20px;
    color: white;
    cursor: pointer;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.mindset-tracker-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.tracker-icon {
    font-size: 24px;
    margin-right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tracker-text {
    flex: 1;
    text-align: left;
}

.tracker-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.tracker-subtitle {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.3;
}

.tracker-progress {
    font-size: 24px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
}

/* Modal Styles */
.tracker-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.tracker-modal-content {
    background-color: white;
    margin: 3% auto;
    padding: 0;
    border-radius: 16px;
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}

.tracker-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0 24px;
    border-bottom: none;
}

.tracker-modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
}

.tracker-close {
    color: #a0aec0;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.tracker-close:hover {
    color: #4a5568;
    background-color: #f7fafc;
}

.tracker-goals-container {
    display: flex;
    justify-content: center;
    padding: 24px;
}

.tracker-custom-goal-section {
    width: 100%;
    max-width: 600px;
    padding: 0;
}

.tracker-custom-goal-section h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}

.tracker-objectives-list {
    min-height: 60px;
}

.tracker-custom-goal {
    min-height: 60px;
}

.tracker-custom-goal-item {
    background: #f8fafc;
    border: 2px solid #003050;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.tracker-custom-goal-item:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
}

.tracker-custom-goal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.tracker-custom-goal-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.tracker-custom-goal-mindset {
    background: #003050;
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    min-height: 32px;
    box-sizing: border-box;
}

.tracker-custom-goal-description {
    font-size: 16px;
    color: #374151;
    line-height: 1.5;
    margin-bottom: 16px;
}

.tracker-custom-goal-why {
    background: #f1f5f9;
    border-left: 4px solid #64748b;
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 4px;
}

.tracker-custom-goal-why-title {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.tracker-custom-goal-why-text {
    font-size: 14px;
    color: #475569;
    line-height: 1.4;
}

.tracker-custom-goal-prompt {
    background: #f0f9ff;
    border-left: 4px solid #003050;
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 4px;
}

.tracker-custom-goal-prompt-title {
    font-size: 14px;
    font-weight: 600;
    color: #003050;
    margin-bottom: 8px;
}

.tracker-custom-goal-prompt-text {
    font-size: 14px;
    color: #003050;
    line-height: 1.4;
    margin-bottom: 12px;
}

.tracker-custom-goal-input textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    resize: vertical;
    margin-bottom: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.tracker-custom-goal-input textarea:focus {
    outline: none;
    border-color: #003050;
    box-shadow: 0 0 0 3px rgba(0, 48, 80, 0.1);
}

.tracker-custom-goal-submit {
    background: #003050;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tracker-custom-goal-submit:hover {
    background: #001f35;
    transform: translateY(-1px);
}

.tracker-custom-goal-completed {
    background: #f0f9ff;
    border-color: #003050;
}

.tracker-custom-goal-response {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    margin-top: 12px;
}

.tracker-custom-goal-response-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.tracker-custom-goal-response-text {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
}

.tracker-objective-item {
    background: #f8fffe;
    border: 2px solid #48bb78;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.2s ease;
}

.tracker-objective-item:hover {
    background: #f0fff4;
    transform: translateY(-1px);
}

.tracker-objective-checkbox {
    margin-top: 2px;
    flex-shrink: 0;
}

.tracker-objective-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #48bb78;
    cursor: pointer;
}

.tracker-objective-content {
    flex: 1;
}

.tracker-objective-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
    line-height: 1.3;
}

.tracker-objective-description {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.4;
}

.tracker-objective-status {
    margin-top: 2px;
    flex-shrink: 0;
}

.tracker-check-icon {
    width: 20px;
    height: 20px;
    background: #48bb78;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.tracker-modal-actions {
    padding: 0 24px 24px 24px;
    display: flex;
    justify-content: center;
    position: sticky;
    bottom: 0;
    background: white;
    margin-top: auto;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}

.tracker-btn-primary {
    padding: 14px 32px;
    border: none;
    background: #003050;
    color: white;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.tracker-btn-primary:hover {
    background: #001f35;
    transform: translateY(-1px);
}

.loading {
    text-align: center;
    padding: 32px;
    color: #a0aec0;
    font-style: italic;
}

.error {
    text-align: center;
    padding: 32px;
    color: #e53e3e;
    background: #fed7d7;
    border-radius: 8px;
    margin: 16px 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tracker-custom-goal-section {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .tracker-modal-content {
        margin: 5% auto;
        width: 98%;
        max-width: none;
    }
    
    .tracker-goals-container {
        padding: 16px;
    }
    
    .mindset-tracker-button {
        padding: 16px;
    }
    
    .tracker-title {
        font-size: 16px;
    }
    
    .tracker-subtitle {
        font-size: 13px;
    }
}