/*
 * One Stop Mart - Customer Account Scoped Stylesheet
 */

.one-stop-mart-storefront .osm-customer-account-page,
.one-stop-mart-storefront .osm-order-tracking-page,
.one-stop-mart-storefront .osm-purchased-content-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1a1a1a;
    background-color: #fcfcfc;
    padding: 40px 0;
    min-height: 80vh;
}

.one-stop-mart-storefront .osm-account-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.one-stop-mart-storefront .osm-account-breadcrumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.one-stop-mart-storefront .osm-account-breadcrumb a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}

.one-stop-mart-storefront .osm-account-breadcrumb a:hover {
    color: #e0a800;
}

.one-stop-mart-storefront .osm-account-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media(min-width: 992px) {
    .one-stop-mart-storefront .osm-account-shell {
        grid-template-columns: 280px 1fr;
    }
}

/* Sidebar Navigation */
.one-stop-mart-storefront .osm-account-sidebar {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.one-stop-mart-storefront .osm-account-user-info {
    text-align: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.one-stop-mart-storefront .osm-account-avatar {
    width: 60px;
    height: 60px;
    background-color: #fef9c3;
    color: #a16207;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 12px;
}

.one-stop-mart-storefront .osm-account-name {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.one-stop-mart-storefront .osm-account-email {
    font-size: 13px;
    color: #6b7280;
    margin: 4px 0 0;
    word-break: break-all;
}

.one-stop-mart-storefront .osm-account-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.one-stop-mart-storefront .osm-account-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
}

.one-stop-mart-storefront .osm-account-nav-link:hover {
    background-color: #f9fafb;
    color: #111827;
}

.one-stop-mart-storefront .osm-account-nav-link--active {
    background-color: #fef9c3;
    color: #854d0e;
}

.one-stop-mart-storefront .osm-account-nav-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Dashboard & Cards */
.one-stop-mart-storefront .osm-account-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.one-stop-mart-storefront .osm-account-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.one-stop-mart-storefront .osm-account-header {
    margin-bottom: 24px;
}

.one-stop-mart-storefront .osm-account-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.one-stop-mart-storefront .osm-account-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 6px 0 0;
}

.one-stop-mart-storefront .osm-account-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.one-stop-mart-storefront .osm-account-stat-card {
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.one-stop-mart-storefront .osm-account-stat-num {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    line-height: 1;
}

.one-stop-mart-storefront .osm-account-stat-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-uppercase: uppercase;
    letter-spacing: 0.05em;
    margin-top: 6px;
}

.one-stop-mart-storefront .osm-account-stat-icon {
    width: 44px;
    height: 44px;
    background: #fef3c7;
    color: #d97706;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.one-stop-mart-storefront .osm-account-stat-icon svg {
    width: 20px;
    height: 20px;
}

/* Lists and Tables */
.one-stop-mart-storefront .osm-account-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-top: 0;
    margin-bottom: 16px;
}

.one-stop-mart-storefront .osm-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.one-stop-mart-storefront .osm-course-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s, box-shadow 0.2s;
}

.one-stop-mart-storefront .osm-course-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.one-stop-mart-storefront .osm-course-image {
    width: 100%;
    height: 160px;
    background-color: #f3f4f6;
    position: relative;
}

.one-stop-mart-storefront .osm-course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.one-stop-mart-storefront .osm-course-type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: #111827;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.one-stop-mart-storefront .osm-course-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.one-stop-mart-storefront .osm-course-name {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 42px;
}

.one-stop-mart-storefront .osm-course-meta {
    font-size: 13px;
    color: #6b7280;
    margin-top: 8px;
    margin-bottom: 16px;
}

.one-stop-mart-storefront .osm-course-actions {
    margin-top: auto;
}

/* Orders and Details */
.one-stop-mart-storefront .osm-table-wrapper {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.one-stop-mart-storefront .osm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
}

.one-stop-mart-storefront .osm-table th {
    background: #f9fafb;
    color: #4b5563;
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.one-stop-mart-storefront .osm-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
    color: #111827;
}

.one-stop-mart-storefront .osm-table tr:last-child td {
    border-bottom: none;
}

.one-stop-mart-storefront .osm-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.one-stop-mart-storefront .osm-badge--green {
    background-color: #dcfce7;
    color: #15803d;
}

.one-stop-mart-storefront .osm-badge--amber {
    background-color: #fef3c7;
    color: #b45309;
}

.one-stop-mart-storefront .osm-badge--red {
    background-color: #fee2e2;
    color: #b91c1c;
}

.one-stop-mart-storefront .osm-badge--grey {
    background-color: #f3f4f6;
    color: #4b5563;
}

/* Buttons */
.one-stop-mart-storefront .osm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    gap: 8px;
}

.one-stop-mart-storefront .osm-btn--sm {
    padding: 6px 12px;
    font-size: 12px;
}

.one-stop-mart-storefront .osm-btn--primary {
    background-color: #f5c004;
    color: #1a1a1a;
}

.one-stop-mart-storefront .osm-btn--primary:hover {
    background-color: #e0a800;
}

.one-stop-mart-storefront .osm-btn--secondary {
    background-color: #ffffff;
    color: #4b5563;
    border: 1px solid #d1d5db;
}

.one-stop-mart-storefront .osm-btn--secondary:hover {
    background-color: #f9fafb;
    border-color: #c7d2fe;
}

.one-stop-mart-storefront .osm-btn--danger {
    background-color: #fee2e2;
    color: #b91c1c;
}

.one-stop-mart-storefront .osm-btn--danger:hover {
    background-color: #fca5a5;
}

.one-stop-mart-storefront .osm-empty-state {
    text-align: center;
    padding: 40px 20px;
    background: #ffffff;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    color: #6b7280;
}

.one-stop-mart-storefront .osm-empty-icon {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
}

/* Purchased Course View Sidebar layout */
.one-stop-mart-storefront .osm-purchased-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media(min-width: 992px) {
    .one-stop-mart-storefront .osm-purchased-layout {
        grid-template-columns: 320px 1fr;
    }
}

.one-stop-mart-storefront .osm-purchased-sidebar {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.one-stop-mart-storefront .osm-purchased-main {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.one-stop-mart-storefront .osm-lecture-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.one-stop-mart-storefront .osm-lecture-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s;
}

.one-stop-mart-storefront .osm-lecture-link:hover {
    background: #fdf6b2;
    color: #723b13;
    border-color: #fef08a;
}

.one-stop-mart-storefront .osm-lecture-link--active {
    background: #fef9c3;
    color: #854d0e;
    border-color: #fef08a;
}

/* Video Wrapper */
.one-stop-mart-storefront .osm-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
    margin-bottom: 24px;
}

.one-stop-mart-storefront .osm-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Tracking Form and Timeline */
.one-stop-mart-storefront .osm-tracking-box {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.one-stop-mart-storefront .osm-form-group {
    margin-bottom: 20px;
}

.one-stop-mart-storefront .osm-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.one-stop-mart-storefront .osm-form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background-color: #ffffff;
    color: #111827;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.one-stop-mart-storefront .osm-form-input:focus {
    border-color: #f5c004;
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 192, 4, 0.15);
}

.one-stop-mart-storefront .osm-tracking-timeline {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    padding-left: 24px;
}

.one-stop-mart-storefront .osm-tracking-timeline::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 7px;
    bottom: 8px;
    width: 2px;
    background-color: #e5e7eb;
}

.one-stop-mart-storefront .osm-tracking-step {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.one-stop-mart-storefront .osm-tracking-step::before {
    content: '';
    position: absolute;
    top: 5px;
    left: -21px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #e5e7eb;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px #e5e7eb;
}

.one-stop-mart-storefront .osm-tracking-step--complete::before {
    background-color: #10b981;
    box-shadow: 0 0 0 2px #10b981;
}

.one-stop-mart-storefront .osm-tracking-step--active::before {
    background-color: #f5c004;
    box-shadow: 0 0 0 2px #f5c004;
}

.one-stop-mart-storefront .osm-tracking-step--failed::before {
    background-color: #ef4444;
    box-shadow: 0 0 0 2px #ef4444;
}

.one-stop-mart-storefront .osm-tracking-step-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.one-stop-mart-storefront .osm-tracking-step-desc {
    font-size: 13px;
    color: #6b7280;
}
