/* assets/css/courses-stepper.css */

.w3t-courses-container {
    display: flex;
    min-height: 600px;
    font-family: Arial, sans-serif;
    margin-bottom: 40px;
}

/* Sidebar Styles */
.w3t-sidebar {
    width: 250px;
    background: linear-gradient(180deg, #470170 0%, #BE9BFF 100%);
    padding: 20px;
    color: white;
    box-shadow: 2px 0 10px rgba(71, 1, 112, 0.2);
}

.w3t-sidebar h3 {
    color: white !important;
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.w3t-categories-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.w3t-category-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.w3t-category-item:hover,
.w3t-category-item.active {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(190, 155, 255, 0.3);
}

/* Main Content Styles */
.w3t-main-content {
    flex: 1;
    background: linear-gradient(135deg, #f8f4ff 0%, #f0f0f0 100%);
    padding: 20px;
}

/* Header Styles */
.w3t-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.w3t-search-container {
    flex: 1;
    max-width: 400px;
}

.w3t-search-container input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #BE9BFF;
    border-radius: 25px;
    background: white;
    color: #470170;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(71, 1, 112, 0.1);
    transition: all 0.3s ease;
}

.w3t-search-container input:focus {
    outline: none;
    border-color: #470170;
    box-shadow: 0 4px 20px rgba(71, 1, 112, 0.2);
}

.w3t-search-container input::placeholder {
    color: rgba(71, 1, 112, 0.6);
}

.w3t-total-price {
    background: #470170;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(71, 1, 112, 0.3);
}

/* Stepper Styles */
.w3t-stepper {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
}

.w3t-stepper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 25%;
    right: 25%;
    height: 3px;
    background: linear-gradient(90deg, #BE9BFF 0%, #470170 100%);
    z-index: 1;
    border-radius: 2px;
}

.w3t-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 120px;
}

.w3t-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ddd;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    border: 3px solid #ddd;
}

.w3t-step.active .w3t-step-number {
    background: #470170;
    color: white;
    border-color: #470170;
    box-shadow: 0 4px 15px rgba(71, 1, 112, 0.4);
}

.w3t-step.completed .w3t-step-number {
    background: #BE9BFF;
    color: white;
    border-color: #BE9BFF;
}

.w3t-step-label {
    font-size: 12px;
    text-align: center;
    color: #666;
    font-weight: 500;
}

.w3t-step.active .w3t-step-label {
    color: #470170;
    font-weight: bold;
}

/* Course Content Styles */
.w3t-courses-content {
    background: white;
    border-radius: 15px;
    padding: 30px 0 0 0;
    box-shadow: 0 8px 30px rgba(71, 1, 112, 0.1);
    border: 1px solid rgba(190, 155, 255, 0.2);
}

.w3t-step-content {
    display: none;
}

.w3t-step-content.active {
    display: block;
}

.w3t-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Course Card Styles */
.w3t-course-card {
    background: white;
    border: 2px solid #BE9BFF;
    border-radius: 15px;
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(190, 155, 255, 0.1);
}

.w3t-course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(71, 1, 112, 0.2);
    border-color: #470170;
}

.w3t-course-card.selected {
    background: linear-gradient(135deg, #f8f4ff 0%, #ffffff 100%);
    border-color: #470170;
    box-shadow: 0 8px 25px rgba(71, 1, 112, 0.3);
}

.w3t-course-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f8f4ff 0%, #e8e8e8 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #470170;
    font-size: 14px;
    border: 1px solid rgba(190, 155, 255, 0.3);
}

.w3t-course-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    border-radius: 10px;
}

.w3t-course-title {
    margin-top: 10px !important;
    font-size: 18px;
    font-weight: bold;
    color: #470170;
    margin-bottom: 10px;
}

.w3t-course-description {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 15px;
}

.w3t-course-description div {
    margin-bottom: 2px;
}

.w3t-course-price {
    font-size: 18px;
    font-weight: bold;
    color: #BE9BFF;
}

/* Course Action Icons */
.w3t-course-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
}

.w3t-action-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.w3t-add-icon {
    background: #BE9BFF;
}

.w3t-add-icon:hover {
    background: #470170;
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(71, 1, 112, 0.4);
}

.w3t-tick-icon {
    background: #4caf50;
}

.w3t-tick-icon:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.w3t-info-icon {
    background: #470170;
    font-size: 14px;
    font-style: italic;
}

.w3t-info-icon:hover {
    background: #BE9BFF;
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(190, 155, 255, 0.4);
}

/* Step Navigation Styles */
.w3t-step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.w3t-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 120px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.w3t-btn-next,
.w3t-btn-primary {
    background: #470170;
    color: white;
}

.w3t-btn-next:hover,
.w3t-btn-primary:hover {
    background: #BE9BFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(71, 1, 112, 0.3);
}

.w3t-btn-prev,
.w3t-btn-secondary {
    background: #666;
    color: white;
}

.w3t-btn-prev:hover,
.w3t-btn-secondary:hover {
    background: #555;
    transform: translateY(-2px);
}

.w3t-btn-skip {
    background: #BE9BFF;
    color: white;
}

.w3t-btn-skip:hover {
    background: #470170;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(190, 155, 255, 0.3);
}

.w3t-btn-checkout {
    background: #4caf50;
    color: white;
}

.w3t-btn-checkout:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.w3t-btn:disabled {
    background: #ccc !important;
    color: #999 !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Preview Section Styles */
.w3t-preview-container h3 {
    color: #470170;
    margin-bottom: 20px;
    text-align: center;
    font-size: 24px;
}

.w3t-selected-course-item {
    background: linear-gradient(135deg, #f8f4ff 0%, #ffffff 100%);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(190, 155, 255, 0.3);
    box-shadow: 0 2px 10px rgba(71, 1, 112, 0.1);
}

.w3t-selected-course-info h4 {
    color: #470170;
    margin: 0 0 5px 0;
}

.w3t-selected-course-info span {
    color: #BE9BFF;
    font-size: 12px;
    font-weight: 600;
}

.w3t-selected-course-price {
    font-weight: bold;
    color: #470170;
    font-size: 16px;
}

.w3t-preview-total {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #470170 0%, #BE9BFF 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(71, 1, 112, 0.3);
}

.w3t-preview-total h4 {
    margin: 0;
    font-size: 20px;
}

/* Modal Styles */
.w3t-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(71, 1, 112, 0.5);
    backdrop-filter: blur(5px);
}

.w3t-modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 30px;
    border-radius: 5px;
    width: 90%;
    max-width: 500px;
    position: relative;
    text-align: center;
    border: 2px solid #BE9BFF;
    box-shadow: 0 20px 60px rgba(71, 1, 112, 0.3);
}

.w3t-modal-content h4 {
    color: #470170;
    margin-bottom: 15px;
    font-size: 20px;
}

.w3t-modal-content p {
    color: #666;
    margin-bottom: 25px;
}

.w3t-modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.w3t-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #BE9BFF;
    transition: all 0.3s ease;
}

.w3t-modal-close:hover {
    color: #470170;
    transform: scale(1.2);
}

.w3t-course-details {
    max-width: 600px;
    text-align: left;
}

.w3t-course-details h3 {
    color: #470170;
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
}

.w3t-course-details .detail-section {
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f4ff 0%, #ffffff 100%);
    border-radius: 8px;
    border-left: 4px solid #BE9BFF;
}

.w3t-course-details .detail-label {
    font-weight: bold;
    color: #470170;
    margin-bottom: 8px;
    font-size: 14px;
}

.w3t-course-details .detail-value {
    color: #666;
    line-height: 1.6;
}

/* Loading Animation */
.w3t-loading {
    text-align: center;
    padding: 40px;
    color: #470170;
    font-weight: 600;
}

.w3t-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #BE9BFF;
    border-radius: 50%;
    border-top-color: #470170;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.w3t-no-courses {
    text-align: center;
    padding: 40px;
    color: #470170;
    font-size: 16px;
    background: linear-gradient(135deg, #f8f4ff 0%, #ffffff 100%);
    border-radius: 10px;
    border: 2px dashed #BE9BFF;
}

.w3t-no-selection {
    text-align: center;
    padding: 40px;
    color: #470170;
    font-size: 16px;
    background: linear-gradient(135deg, #f8f4ff 0%, #ffffff 100%);
    border-radius: 10px;
    border: 2px dashed #BE9BFF;
}

/* Responsive Design */
@media (max-width: 768px) {
    .w3t-courses-container {
        flex-direction: column;
    }
    
    .w3t-sidebar {
        width: 100%;
        padding: 15px;
        background: linear-gradient(90deg, #470170 0%, #BE9BFF 100%);
    }
    
    .w3t-categories-list {
        flex-direction: row;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 10px;
    }
    
    .w3t-category-item {
        white-space: nowrap;
        /* min-width: 120px; */
        text-align: center;
    }
    
    .w3t-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .w3t-search-container {
        max-width: 100%;
    }
    
    .w3t-courses-grid {
        grid-template-columns: 1fr;
    }
    
    .w3t-stepper {
        overflow-x: auto;
        padding: 0 20px;
    }
    
    .w3t-step-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .w3t-modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
}

/* Tick icon styling */
.w3t-tick-icon.selected {
    background-color: #28a745;
    color: white;
    border-radius: 50%;
}

/* Modal tabs */
.w3t-modal-tabs {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.w3t-modal-tab {
    padding: 12px 20px;
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.w3t-modal-tab:hover {
    background-color: #f8f9fa;
}

.w3t-modal-tab.active {
    border-bottom-color: #007cba;
    color: #007cba;
    font-weight: 600;
}

/* Tab content */
.w3t-tab-content {
    display: none;
}

.w3t-tab-content.active {
    display: block;
}

/* Accordion styles */
.w3t-curriculum-content {
    max-height: 400px;
    overflow-y: auto;
}

.w3t-accordion-item {
    border: 1px solid #e0e0e0;
    margin-bottom: 8px;
    border-radius: 4px;
}

.w3t-accordion-header {
    padding: 15px 20px;
    background-color: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.w3t-accordion-header:hover {
    background-color: #e9ecef;
}

.w3t-accordion-header.active {
    background-color: #007cba;
    color: white;
}

.w3t-accordion-icon {
    font-weight: bold;
    transition: transform 0.3s ease;
}

.w3t-accordion-header.active .w3t-accordion-icon {
    transform: rotate(0deg);
}

.w3t-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.w3t-accordion-content.open {
    display: block !important;
    max-height: 200px;
}

.w3t-accordion-body {
    padding: 15px 20px;
    background-color: white;
    line-height: 1.6;
}

/* Course description styling */
.w3t-course-description {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
    margin: 8px 0;
}

.w3t-course-description div {
    margin-bottom: 2px;
}

/* No content messages */
.no-curriculum,
.no-additional {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

/* Detail sections in modal */
.detail-section {
    margin-bottom: 15px;
}

.detail-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.detail-value {
    color: #666;
    line-height: 1.5;
}

/* Course card selected state */
.w3t-course-card.selected {
    border: 2px solid #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

/* Modal content max width */
.w3t-modal-content.w3t-course-details {
    margin-top: 100px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}


/* Suggestions section styling */
.w3t-suggestions-section {
 
  grid-column: 1 / -1;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #dee2e6;
}

.w3t-suggestions-section h4 {
    color: #6c757d;
    margin-bottom: 15px;
    font-size: 16px;
}

.w3t-suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Course card hover effects */
.w3t-course-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.w3t-course-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.w3t-course-card.selected:hover {
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

/* Course actions positioning */
.w3t-course-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    z-index: 2;
}

/* Ensure course cards have relative positioning for absolute actions */
.w3t-course-card {
    position: relative;
}

/* Loading state */
.w3t-loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-style: italic;
}

/* No courses state */
.w3t-no-courses {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #dee2e6;
}

/* Accordion styles */
.w3t-curriculum-accordion {
    margin-top: 15px;
}

.w3t-accordion-item {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.w3t-accordion-header {
    padding: 12px 15px;
    background-color: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.w3t-accordion-header.active {
    background-color: #e9ecef;
}

.w3t-accordion-header:hover {
    background-color: #e9ecef;
}

.w3t-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #fff;
}

.w3t-accordion-content.open {
    max-height: 500px;
}

.w3t-accordion-body {
    padding: 15px;
    border-top: 1px solid #eee;
}

.w3t-accordion-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.w3t-accordion-header.active .w3t-accordion-icon {
    transform: rotate(0deg);
}

/* Preview Section Course Cards */
.w3t-selected-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.w3t-selected-course-card {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
}

.w3t-selected-course-card .w3t-course-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.w3t-selected-course-card .w3t-action-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.w3t-selected-course-card .w3t-info-icon {
    background: #470170;
}

.w3t-selected-course-card .w3t-info-icon:hover {
    background: #be9bff;
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(42, 93, 177, 0.4);
}

.w3t-selected-course-card .w3t-course-image {
    height: 150px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border-radius: 4px;
    overflow: hidden;
}

.w3t-selected-course-card .w3t-course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.w3t-selected-course-card .w3t-course-image-placeholder {
    color: #999;
    font-size: 14px;
}

.w3t-selected-course-details {
    flex: 1;
}

.w3t-selected-course-card .w3t-course-title {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 16px;
}

.w3t-selected-course-card .w3t-course-level {
    color: #666;
    font-size: 13px;
    margin-bottom: 10px;
}

.w3t-selected-course-card .w3t-course-description {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.4;
}

.w3t-selected-course-card .w3t-course-price {
    font-weight: bold;
    color: #2a5db1;
    margin-top: auto;
}

.w3t-no-selection {
    text-align: center;
    padding: 30px;
    color: #666;
    font-size: 16px;
}

.w3t-course-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.w3t-price-combo {
    display: flex;
    gap: 8px;
    align-items: center;
}

.w3t-price-combo strong {
    color: #9A21AE;
}

.w3t-course-price {
    font-weight: 600;
}

.w3t-price-combo span {
    font-size: 16px;
    text-decoration: line-through;
    color: #BE9BFF;
    display: flex;
    align-items: center;
}


.w3t-curriculum-sections h4 { margin: 12px 0 6px; }
.w3t-lessons, .w3t-quizzes, .w3t-assignments { list-style: none; padding-left: 0; }
.w3t-lessons li, .w3t-quizzes li, .w3t-assignments li {
  border: 1px solid #eee; border-radius: 8px; padding: 10px; margin-bottom: 8px;
}
.w3t-item-title { font-weight: 600; margin-bottom: 6px; }
.w3t-item-meta span { margin-right: 10px; font-size: 12px; opacity: 0.8; }
.w3t-row { display: flex; gap: 12px; align-items: flex-start; }
.w3t-col.w3t-media img { max-width: 140px; height: auto; border-radius: 6px; display: block; }
.w3t-empty { font-style: italic; opacity: .8; }
.w3t-sep::before { content: "·"; margin: 0 8px; }