/* Стили для раздела саморазвития */
.self-development-page {
    padding-top: 100px;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.motivation-section {
    margin-top: 50px;
    padding: 0 20px;
}

.motivation-card {
    background: linear-gradient(135deg, #58cc03, #4caf00);
    color: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(88, 204, 3, 0.3);
    text-align: center;
}

.motivation-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
}

.motivation-card p {
    font-size: 18px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.motivation-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.motivation-card li {
    padding: 8px 0;
    font-size: 16px;
}

/* Стили для SMART-целей */
.smart-goals-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 0 20px 40px;
}

.goals-input-section,
.goals-management-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.goal-creation-form {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.smart-criteria {
    margin: 25px 0;
}

.smart-criteria h4 {
    color: #3b3b3b;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 8px;
}

.criterion {
    margin-bottom: 15px;
}

.criterion label {
    display: block;
    margin-bottom: 8px;
    color: #3b3b3b;
    font-weight: 500;
    font-size: 14px;
}

.criterion textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    resize: vertical;
    min-height: 60px;
    transition: border-color 0.3s ease;
}

.criterion textarea:focus {
    outline: none;
    border-color: #58cc03;
}

.goal-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.goal-milestones {
    margin: 20px 0;
}

.goal-milestones h4 {
    color: #3b3b3b;
    margin-bottom: 15px;
    font-size: 16px;
}

.milestone-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.milestone-description {
    flex: 2;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
}

.milestone-deadline {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
}

.remove-milestone-btn {
    background: #cc035d;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-milestone-btn {
    background: #0080ff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
}

.form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

/* Стили для списка целей */
.goals-list {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.goals-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.goals-filter select,
.goals-filter input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
}

#goalsContainer {
    max-height: 500px;
    overflow-y: auto;
}

.goal-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #0080ff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.goal-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.goal-item.completed {
    border-left-color: #58cc03;
    background: #f0f8f0;
}

.goal-item.priority-high {
    border-left-color: #cc035d;
}

.goal-item.priority-medium {
    border-left-color: #0080ff;
}

.goal-item.priority-low {
    border-left-color: #787878;
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.goal-header h4 {
    color: #3b3b3b;
    margin: 0;
    flex: 1;
}

.goal-category {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.goal-category.finance {
    background: #e8f5e8;
    color: #2e7d32;
}

.goal-category.career {
    background: #e3f2fd;
    color: #1565c0;
}

.goal-category.education {
    background: #fff3e0;
    color: #ef6c00;
}

.goal-category.health {
    background: #fce4ec;
    color: #c2185b;
}

.goal-category.personal {
    background: #f3e5f5;
    color: #7b1fa2;
}

.goal-category.other {
    background: #e0e0e0;
    color: #424242;
}

.goal-progress {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #58cc03, #4caf00);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 14px;
    font-weight: 600;
    color: #3b3b3b;
    min-width: 40px;
}

.goal-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
}

.goal-deadline {
    display: flex;
    gap: 10px;
    align-items: center;
}

.days-left {
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
}

.days-left.urgent {
    background: #ffebee;
    color: #c62828;
}

.goal-status {
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.goal-status.active {
    background: #e3f2fd;
    color: #1565c0;
}

.goal-status.completed {
    background: #e8f5e8;
    color: #2e7d32;
}

.goal-actions {
    display: flex;
    gap: 8px;
}

.progress-btn,
.status-btn,
.delete-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.progress-btn {
    background: #0080ff;
    color: white;
}

.progress-btn:hover {
    background: #0066cc;
}

.status-btn {
    background: #58cc03;
    color: white;
}

.status-btn:hover {
    background: #4caf00;
}

.delete-btn {
    background: #cc035d;
    color: white;
}

.delete-btn:hover {
    background: #a0024a;
}

.no-goals {
    text-align: center;
    color: #787878;
    font-style: italic;
    padding: 40px;
}

/* Статистика целей */
.goals-statistics {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border-left: 4px solid #58cc03;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #3b3b3b;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #787878;
    text-transform: uppercase;
    font-weight: 600;
}

.progress-chart {
    height: 200px;
    margin-top: 15px;
}

/* Гайд по SMART-целям */
.smart-guide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.guide-step {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid #0080ff;
}

.guide-step h4 {
    color: #3b3b3b;
    margin-bottom: 10px;
    font-size: 16px;
}

.guide-step p {
    color: #555;
    line-height: 1.5;
    font-size: 14px;
}

.success-tips {
    background: #e8f5e8;
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #58cc03;
}

.success-tips h4 {
    color: #2e7d32;
    margin-bottom: 15px;
    font-size: 18px;
}

.success-tips ul {
    list-style: none;
    padding: 0;
}

.success-tips li {
    padding: 8px 0;
    color: #2e7d32;
    font-size: 14px;
}

/* Адаптивность */
@media (max-width: 968px) {
    .smart-goals-container {
        grid-template-columns: 1fr;
    }
    
    .goal-details {
        grid-template-columns: 1fr;
    }
    
    .smart-guide {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .goals-filter {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .goal-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .goal-actions {
        flex-wrap: wrap;
    }
    
    .milestone-item {
        flex-direction: column;
    }
    
    .goal-details {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .motivation-card {
        padding: 25px;
    }
}

/* Анимации */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.goal-item {
    animation: slideInUp 0.5s ease forwards;
}

.calculator-card {
    animation: slideInUp 0.6s ease forwards;
}

.calculator-card:nth-child(1) { animation-delay: 0.1s; }
.calculator-card:nth-child(2) { animation-delay: 0.2s; }
.calculator-card:nth-child(3) { animation-delay: 0.3s; }
.calculator-card:nth-child(4) { animation-delay: 0.4s; }
.calculator-card:nth-child(5) { animation-delay: 0.5s; }
.calculator-card:nth-child(6) { animation-delay: 0.6s; }