/* MOEmentum Goals Plugin Styles */

.moementum-goals-container {
    margin: 0;
}

.moementum-goals-button {
    padding: 0px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    height: 100%;
    max-width: 400px;
    transition: all 0.3s ease;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif !important;
    color: var(--gray-800);
    text-align: start;
    background:transparent;
    display: flex;
    flex-direction: column;
}

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

.moementum-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;
}

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

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

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

.moementum-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 */
.moementum-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);
}

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

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

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

.moementum-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;
}

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

.moementum-goals-section {
    padding: 24px 24px 24px 24px;
}

.moementum-goals-section h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.moementum-goals-list {
    min-height: 60px;
}

.moementum-goal-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;
}

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

.moementum-goal-checkbox {
    margin-top: 2px;
    flex-shrink: 0;
}

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

.moementum-goal-content {
    flex: 1;
}

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

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

.moementum-goal-status {
    margin-top: 2px;
    flex-shrink: 0;
}

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

.moementum-modal-actions {
    padding: 0 24px 24px 24px;
    display: flex;
    justify-content: center;
}

.moementum-btn-primary {
    padding: 14px 32px;
    border: none;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.moementum-btn-primary:hover {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    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: 768px) {
    .moementum-modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .moementum-goals-button {
        padding: 16px;
    }
    
    .moementum-title {
        font-size: 16px;
    }
    
    .moementum-subtitle {
        font-size: 13px;
    }
}