/* Tutor Live Classes Dashboard CSS */

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f7fa;
    color: #1a1a1a;
}

.tlc-dashboard-wrapper {
    min-height: 100vh;
    background: #f5f7fa;
}

.tlc-container {
    display: flex;
    min-height: 100vh;
}

/* Dashboard Custom Header */
.tlc-dashboard-body {
    background: #f5f7fa;
}

.tlc-dashboard-site-header {
    background: #ffffff;
    border-bottom: 1px solid #e6e8ef;
    box-shadow: 0 3px 12px rgba(20, 20, 43, 0.06);
    position: sticky;
    top: 0;
    z-index: 50;
}

.tlc-dashboard-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 5vw;
    background: #101828;
    color: #f2f4f7;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.tlc-top-bar-left,
.tlc-top-bar-right {
    display: flex;
    gap: 18px;
    align-items: center;
}

.tlc-dashboard-main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 5vw;
    gap: 30px;
}

.tlc-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tlc-role-pill {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #475467;
    padding: 6px 14px;
    border-radius: 999px;
}

.tlc-btn-outline,
.tlc-btn-solid {
    border-radius: 999px;
    padding: 10px 22px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tlc-btn-outline {
    border: 1px solid #d0d5dd;
    color: #101828;
    background: #ffffff;
}

.tlc-btn-solid {
    background: linear-gradient(135deg, #5c5c8a 0%, #4a4a6e 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 8px 20px rgba(76, 29, 149, 0.2);
}

.tlc-btn-outline:hover,
.tlc-btn-solid:hover {
    transform: translateY(-1px);
}

.tlc-btn-outline:focus,
.tlc-btn-solid:focus {
    outline: 2px solid rgba(76, 29, 149, 0.4);
    outline-offset: 2px;
}

.tlc-header-logo img {
    max-height: 60px;
    width: auto;
}

.tlc-header-nav {
    display: flex;
    gap: 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tlc-header-nav a {
    color: #101828;
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}

.tlc-header-nav a:hover,
.tlc-header-nav a:focus {
    color: #5c5c8a;
    border-color: #5c5c8a;
}

.tlc-header-user-menu select {
    border: 1px solid #d0d5dd;
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #101828;
    background: #f8fafc;
}

.tlc-header-user-menu select:focus {
    outline: none;
    border-color: #5c5c8a;
    box-shadow: 0 0 0 3px rgba(92, 92, 138, 0.15);
}

@media (max-width: 1024px) {
    .tlc-dashboard-main-header {
        flex-direction: column;
    }

    .tlc-header-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .tlc-dashboard-top-bar {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }

    .tlc-dashboard-main-header {
        padding: 16px 24px;
    }

    .tlc-header-nav {
        flex-direction: column;
        width: 100%;
    }

    .tlc-header-user-menu select {
        width: 100%;
    }
}

/* Sidebar Styles */
.tlc-dashboard-sidebar {
    width: 280px;
    background: #ffffff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 30px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.user-avatar-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 3px solid #5c5c8a;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #4caf50;
    border: 2px solid #ffffff;
    border-radius: 50%;
}

.user-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #1a1a1a;
}

.user-rating {
    display: flex;
    gap: 2px;
}

.user-rating .star {
    font-size: 14px;
}

.user-rating .star.empty {
    opacity: 0.3;
}

/* Navigation Menu */
.dashboard-nav {
    padding: 20px 0;
}

.nav-menu {
    list-style: none;
}

.nav-menu li {
    margin-bottom: 5px;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #757575;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-menu a:hover {
    background: #f5f5f5;
    color: #5c5c8a;
}

.nav-menu a.active {
    background: linear-gradient(135deg, #5c5c8a 0%, #4a4a6e 100%);
    color: #ffffff;
    border-right: 4px solid #764ba2;
}

.menu-icon {
    font-size: 20px;
}

.nav-section-title {
    padding: 20px 20px 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #9e9e9e;
    letter-spacing: 1px;
}

.logout-link {
    color: #f44336 !important;
}

.logout-link:hover {
    background: #ffebee !important;
}

/* Main Content Area */
.tlc-dashboard-main {
    flex: 1;
    padding: 30px 40px;
    overflow-x: hidden;
}

/* Dashboard Header */
.tlc-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.dashboard-title h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #1a1a1a;
}

.tlc-user-rating {
    display: flex;
    gap: 3px;
}

.tlc-btn-primary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #5c5c8a 0%, #4a4a6e 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(92, 92, 138, 0.3);
}

.tlc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(92, 92, 138, 0.4);
}

/* Profile Completion Widget */
.tlc-profile-completion {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.tlc-profile-completion::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.completion-content {
    flex: 1;
    z-index: 1;
}

.completion-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.progress-bar-wrapper {
    margin: 15px 0;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #ffffff;
    border-radius: 20px;
    transition: width 0.5s;
}

.completion-text {
    margin: 10px 0 0 0;
    font-size: 14px;
    opacity: 0.9;
}

.completion-tasks {
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.task-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.task-icon.complete {
    background: #4caf50;
}

.task-icon.pending {
    background: rgba(255, 255, 255, 0.3);
}

.completion-trophy {
    font-size: 80px;
    opacity: 0.2;
    z-index: 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.payment-status-card {
    position: relative;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
}

.stat-icon.blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-icon.purple {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-icon.orange {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.stat-icon.teal {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.stat-icon.green {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.stat-icon.indigo {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.stat-label {
    color: #757575;
    font-size: 14px;
}

.stat-number.payment-status {
    font-size: 28px;
}

.stat-number.payment-status.pending {
    color: #b54708;
}

.stat-number.payment-status.approved {
    color: #027a48;
}

.stat-number.payment-status.empty {
    color: #98a2b3;
}

.stat-status-text {
    margin-top: 10px;
    font-size: 14px;
    color: #667085;
}

.stat-status-text.pending {
    color: #b54708;
}

.stat-status-text.approved {
    color: #027a48;
}

.stat-status-text.empty {
    color: #98a2b3;
}

/* Table Styles */
.tlc-table-wrapper {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tlc-table {
    width: 100%;
    border-collapse: collapse;
}

.tlc-table thead {
    background: #f9f9f9;
}

.tlc-table th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    color: #1a1a1a;
    border-bottom: 1px solid #e0e0e0;
}

.tlc-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.tlc-table tbody tr:hover {
    background: #f9f9f9;
}

.tlc-table a {
    color: #5c5c8a;
    text-decoration: none;
    font-weight: 600;
}

.tlc-table a:hover {
    text-decoration: underline;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-warning {
    background: #fff3e0;
    color: #ef6c00;
}

.badge-danger {
    background: #ffebee;
    color: #c62828;
}

/* Classes Grid */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.class-card.is-sample {
    border: 1px dashed #cbd5f5;
}

.class-card .sample-pill {
    font-size: 10px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    background: #eef2ff;
    color: #4f46e5;
    padding: 4px 8px;
    border-radius: 999px;
    margin-left: 6px;
}

.class-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.class-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.class-thumbnail {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.class-info {
    padding: 20px;
}

.class-info h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #1a1a1a;
}

.class-date,
.class-time {
    font-size: 14px;
    color: #757575;
    margin: 5px 0;
}

.btn-view-class {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #5c5c8a;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-view-class:hover {
    background: #4a4a6e;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tlc-dashboard-sidebar {
        width: 240px;
    }

    .tlc-dashboard-main {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .tlc-container {
        flex-direction: column;
    }

    .tlc-dashboard-sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .tlc-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .tlc-profile-completion {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .classes-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Menu Toggle */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 1000;
        background: #5c5c8a;
        color: #ffffff;
        border: none;
        padding: 10px 15px;
        border-radius: 8px;
        cursor: pointer;
        font-size: 20px;
    }

    .tlc-dashboard-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
        position: fixed;
        z-index: 999;
    }

    .tlc-dashboard-sidebar.active {
        transform: translateX(0);
    }
}

/* ========================================
   INSTRUCTOR PAYMENT SETTINGS STYLES
   ======================================== */

.tlc-payment-settings-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    margin-top: 20px;
}

/* Payment Form Section */
.tlc-payment-form-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tlc-payment-method-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.tlc-payment-method-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.tlc-method-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
}

.tlc-method-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 24px;
}

.tlc-method-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.tlc-method-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
}

.tlc-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.tlc-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tlc-form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
}

.tlc-field-hint {
    font-size: 12px;
    color: #a0aec0;
    font-weight: 400;
}

.tlc-form-group input {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tlc-form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.tlc-form-group input.error {
    border-color: #f56565;
}

.tlc-form-actions {
    margin-top: 10px;
}

.tlc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tlc-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.tlc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.tlc-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Preview Section */
.tlc-payment-preview-section {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.tlc-preview-header {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px 12px 0 0;
    padding: 20px;
}

.tlc-preview-header h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
}

.tlc-preview-header p {
    margin: 0;
    font-size: 13px;
    color: #718096;
}

.tlc-payment-preview {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 20px;
    min-height: 200px;
}

.preview-empty {
    text-align: center;
    padding: 40px 20px;
}

.preview-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.preview-empty p {
    margin: 8px 0;
    color: #a0aec0;
    font-size: 14px;
}

.preview-empty-hint {
    font-size: 12px !important;
}

.preview-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.preview-method {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
}

.preview-method-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.preview-method-header strong {
    font-size: 14px;
    color: #2d3748;
}

.preview-method-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preview-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.preview-label {
    color: #718096;
    font-weight: 500;
}

.preview-value {
    color: #2d3748;
    font-weight: 600;
}

/* Notification */
.tlc-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.tlc-notification.show {
    transform: translateX(0);
}

.tlc-notification-success {
    border-left: 4px solid #48bb78;
    color: #22543d;
}

.tlc-notification-error {
    border-left: 4px solid #f56565;
    color: #742a2a;
}

/* Incomplete Profile Banner */
.tlc-incomplete-profile-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.tlc-incomplete-profile-banner .banner-icon {
    font-size: 32px;
}

.tlc-incomplete-profile-banner .banner-content {
    flex: 1;
}

.tlc-incomplete-profile-banner h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #92400e;
}

.tlc-incomplete-profile-banner p {
    margin: 0;
    font-size: 14px;
    color: #78350f;
}

.tlc-incomplete-profile-banner .banner-action {
    padding: 10px 20px;
    background: #f59e0b;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tlc-incomplete-profile-banner .banner-action:hover {
    background: #d97706;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
    .tlc-payment-settings-container {
        grid-template-columns: 1fr;
    }

    .tlc-payment-preview-section {
        position: static;
    }
}

@media (max-width: 768px) {
    .tlc-form-row {
        grid-template-columns: 1fr;
    }

    .tlc-payment-method-card {
        padding: 16px;
    }

    .tlc-method-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========================================
   PAYMENT SUMMARY CARD ON DASHBOARD
   ======================================== */

.tlc-payment-summary-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.payment-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(14, 165, 233, 0.2);
}

.payment-summary-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #0c4a6e;
}

.payment-summary-header .edit-link {
    color: #0ea5e9;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 16px;
    background: white;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.payment-summary-header .edit-link:hover {
    background: #0ea5e9;
    color: white;
    transform: translateY(-1px);
}

.payment-methods-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-method-item {
    background: white;
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.method-badge {
    font-size: 14px;
    font-weight: 600;
    color: #0c4a6e;
}

.method-value {
    font-size: 14px;
    font-weight: 600;
    color: #0369a1;
    font-family: monospace;
}

@media (max-width: 768px) {
    .payment-method-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}