.page-header {
    display: none;
}
.white-bg {
    background-color: #FFFFFF;
}
.light-bg {
    background-color: #F6F7F8;
}
.dark-bg {
    background-color: #D9DCE3;
}
.light-outline {
    background-color: #CACFD8;
}
.text-primary {
    color: #0D1321;
}
.text-secondary {
    color: #313A4E;
}
.text-tertiary {
    color: #4E5565;
}
.text-not-selected {
    color: #9095A2;
}
.text-disabled {
    color: #AFB1B6;
}
.fx-badge {
    color: #0D1321;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
}
.fx-badge.icon {
    color: #0D1321;
}
.fx-badge.label {
    background-color: #fff;
    border: 1px solid #CACFD8;
    text-transform: capitalize;
}
.fx-badge.purchased {
    background-color: rgb(102, 157, 49, 0.3);
    border: 1px solid #CACFD8;
    font-weight: bold;
}
/* Рейтинг */
.stars-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
}

.star-container {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 24px;
}

.star-bg {
    position: absolute;
    color: #e9ecef;
}

.star-fill {
    position: absolute;
    color: #ffc107;
    overflow: hidden;
}

.page-body {
    margin-top: 0;
    font-family: "IBM Plex Sans", sans-serif;
}
.course-purchased-grid {
    margin-top: 0;
}
.course-purchased-grid .card {
    padding: 24px;
}
.course-purchased-grid .card .card-title {
    font-size: 26px;
    font-weight: bold;
    color: #0D1321;
}
.course-purchased-grid .card .card-title a {
    color: inherit;
    text-decoration: none;
}

.course-purchased-grid .card .card-title a:hover {
    color: #273B09;
}
.course-purchased-grid .card .card-body {
    padding: 0 0 0 20px;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 0;
}

.course-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    position: relative;
    padding: 24px;
}

.course-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-thumbnail img {
    transform: scale(1.05);
}

.course-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(32, 107, 196, 0.9);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.course-badge.purchased {
    background: rgba(32, 107, 196, 0.9);
}

.course-badge.available {
    background: rgba(47, 179, 68, 0.9);
}

.course-category {
    display: inline-block;
    background: #f8f9fa;
    color: #6c757d;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.course-title {
    font-size: 20px;
    font-weight: 600;
    color: #0D1321;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-title a {
    color: inherit;
    text-decoration: none;
}

.course-title a:hover {
    color: #273B09;
}

.course-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.course-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.course-meta-item svg {
    width: 14px;
    height: 14px;
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.course-rating .stars {
    color: #ffc107;
}

.course-rating .rating-text {
    color: #6c757d;
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

.course-footer {
    align-items: center;
    justify-content: space-between;
}

.course-level {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
}

.course-action {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.course-action.primary {
    background: #206bc4;
    color: white;
}

.course-action.primary:hover {
    background: #1a5aa3;
    color: white;
}

.course-action.secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.course-action.secondary:hover {
    background: #e9ecef;
    color: #495057;
}

.course-action.success {
    background: #2fb344;
    color: white;
}

.course-action.success:hover {
    background: #28a745;
    color: white;
}

/* Wishlist Button Styles */
/*.wishlist-button {*/
/*    position: absolute;*/
/*    top: 12px;*/
/*    right: 12px;*/
/*    z-index: 10;*/
/*}*/
.course-card .btn .icon {
    margin-right: 0;
}
.btn-course {
    padding-right: 30px;
    padding-left: 30px;
}

.wishlist-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    color: #dc3545;
}

.wishlist-btn.active {
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
}

.wishlist-btn.active:hover {
    background: rgba(220, 53, 69, 1);
    color: white;
}

.wishlist-btn svg {
    transition: all 0.3s ease;
}

.wishlist-btn.active svg {
    fill: currentColor;
}

/* Animation for wishlist button */
@keyframes heartBeat {
    0% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.3);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.3);
    }
    70% {
        transform: scale(1);
    }
}

.wishlist-btn.animate {
    animation: heartBeat 1.3s ease-in-out;
}

/* Course Price Styles */
.course-price {
    display: inline;
    font-weight: 600;
    color: #273b09;
    font-size: 24px;
}

.course-price.free {
    background: #e3f2fd;
    color: #1976d2;
    border-color: #bbdefb;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.progress-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #206bc4;
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .course-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .course-content {
        padding: 1rem;
    }
}

/* Wishlist Page Specific Styles */
.course-card.wishlist {
    position: relative;
    border: 2px solid #f8f9fa;
    transition: all 0.3s ease;
}

.course-card.wishlist:hover {
    border-color: #e3f2fd;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.course-badge.wishlist {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 12px;
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    backdrop-filter: blur(10px);
}

/* Wishlist Header Styles */
.header {
    padding-top: 24px;
    padding-bottom: 24px;
}
.header p {
    color: #4E5565;
    font-size: 18px;
    margin: 0;
}
.header h2 {
    color: #0D1321;
    font-weight: 600;
    font-size: 24px;
}

.header .badge {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

/* Empty State for Wishlist */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 2rem 0;
}

.empty-state svg {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    opacity: 0.6;
    color: #6c757d;
}

.empty-state h3 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
}

.empty-state p {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.empty-state .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
}

/* Animation for removing wishlist items */
.course-card.wishlist.removing {
    opacity: 0.5;
    transform: scale(0.95);
    transition: all 0.3s ease;
}

/* Responsive adjustments for wishlist */
@media (max-width: 576px) {
    .course-card.wishlist {
        margin-bottom: 1rem;
    }

    .header {
        text-align: center;
    }

    .header .d-flex {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .empty-state {
        padding: 2rem 1rem;
    }

    .empty-state svg {
        width: 60px;
        height: 60px;
    }
}
