/* Стили для личного кабинета - соответствие существующему дизайну */

/* Стили для сообщений */
.account-message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    font-weight: 500;
}

.account-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.account-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.account-message p {
    margin: 0;
    padding: 0;
}
.account_page {
    padding: 2rem 0;
    min-height: 60vh;
}

.account_page .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.account_page h1 {
    color: #b66bd2;
    font-size: 20px;
    font-weight: 700;
    line-height: 26px;
    text-align: center;
    margin-bottom: 2rem;
}

.account_page_image {
    max-width: 77px;
    border-radius: 50%;
    margin: 0 auto;
    overflow: hidden;
    background: #d9d9d9;
    margin-top: 40px;
    margin-bottom: 40px;
    text-align: center;
}

.account_page_image img {
    width: 77px;
    height: 77px;
    border-radius: 50%;
    object-fit: cover;
}

.account_page_form {
    margin-bottom: 3rem;
}

.account_page_form_item {
    margin-bottom: 20px;
}

.account_page_form_item:last-child {
    margin-bottom: 0;
}

.account_page_form_item label {
    display: block;
    width: 100%;
    text-align: left;
    color: rgba(27, 27, 27, 0.6);
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    margin-bottom: 5px;
}

.account_page_form_item input {
    border: none;
    outline: none;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid rgba(27, 27, 27, 0.1);
    padding: 10px 0;
    background: transparent;
    font-size: 16px;
}

.account_page_form_item input:focus {
    border-bottom-color: #b66bd2;
}

.account_page_form_item button {
    border-radius: 10px;
    background: #ff9b26;
    padding: 10px 18px;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.account_page_form_item button:hover {
    background: #e88a1a;
}

.account-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

.account-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.account-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Стили для секции курсов - соответствие существующему дизайну */
.user-courses-section {
    margin-top: 3rem;
}

.user-courses-section h2 {
    color: #b66bd2;
    font-size: 20px;
    font-weight: 700;
    line-height: 26px;
    text-align: center;
    margin-bottom: 2rem;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.course-item {
    border-radius: 16px;
    padding: 25px 20px;
    border: 4px solid #b66bd2;
    background: #fff;
    transition: all 0.3s ease;
}

.course-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(182, 107, 210, 0.2);
}

.course-image {
    height: 90px;
    max-width: 50%;
    margin: 0 auto;
    text-align: center;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.course-content {
    margin-top: 30px;
}

.course-content h3 {
    color: #000;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.8px;
    margin-bottom: 15px;
}

.course-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 20px;
}

.course-link {
    display: block;
    color: #fff;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.2px;
    background: #fecc00;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.course-link:hover {
    background: #e6b800;
    color: #fff;
    text-decoration: none;
}

.simulator-price-info {
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
}

.simulator-price-info .price {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #b66bd2;
    margin-bottom: 5px;
}

.simulator-price-info .status {
    display: block;
    font-size: 0.9rem;
    color: #28a745;
    font-weight: 500;
}

/* Адаптивность */
@media (max-width: 768px) {
    .account_page h1 {
        font-size: 2rem;
    }
    
    .account_page_form {
        padding: 1.5rem;
    }
    
    .user-courses-section {
        padding: 1.5rem;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .account_page_image img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .account_page .container {
        padding: 0 15px;
    }
    
    .account_page_form {
        padding: 1rem;
    }
    
    .user-courses-section {
        padding: 1rem;
    }
}
