/* TELP Theme - Custom Styles */

/* ========================================
   CSS Reset for Header Elements
   ======================================== */
.telp-header,
.telp-header * {
    box-sizing: border-box;
}

/* ========================================
   Header Container
   ======================================== */
.telp-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.telp-header .telp-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.telp-header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 70px !important;
    gap: 20px;
}

/* ========================================
   Logo
   ======================================== */
.telp-logo {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    flex-shrink: 0;
}

.telp-logo-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.telp-logo-icon {
    width: 44px !important;
    height: 44px !important;
    background: linear-gradient(135deg, #6366F1 0%, #F59E0B 100%) !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.5rem !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3) !important;
}

.telp-logo-text-wrapper {
    display: flex !important;
    flex-direction: column !important;
}

.telp-logo-text {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.025em !important;
}

.telp-logo-tagline {
    font-size: 0.75rem !important;
    color: #6b7280 !important;
    font-weight: 400 !important;
}

/* ========================================
   Main Navigation
   ======================================== */
.telp-nav {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex: 1;
    justify-content: center;
}

.telp-nav-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    color: #4b5563 !important;
    font-weight: 500 !important;
    font-size: 0.9375rem !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

.telp-nav-link:hover {
    background: #f3f4f6 !important;
    color: #111827 !important;
}

.telp-nav-link.active {
    background: rgba(99, 102, 241, 0.1) !important;
    color: #6366F1 !important;
}

.telp-nav-icon {
    font-size: 1rem !important;
    line-height: 1 !important;
}

/* ========================================
   Header Actions (Right Side)
   ======================================== */
.telp-header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-shrink: 0;
}

/* ========================================
   User Dropdown
   ======================================== */
.telp-user-dropdown {
    position: relative !important;
    display: inline-block !important;
}

.telp-user-trigger {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 4px 8px 4px 4px !important;
    background: transparent !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.telp-user-trigger:hover {
    border-color: #6366F1 !important;
    background: #f9fafb !important;
}

.telp-user-avatar {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #6366F1 0%, #F59E0B 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.telp-user-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.telp-avatar-initials {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    text-transform: uppercase !important;
}

.telp-dropdown-arrow {
    width: 16px !important;
    height: 16px !important;
    color: #9ca3af !important;
    transition: transform 0.2s ease !important;
}

.telp-user-trigger[aria-expanded="true"] .telp-dropdown-arrow {
    transform: rotate(180deg) !important;
}

/* ========================================
   Dropdown Menu
   ======================================== */
.telp-dropdown-menu {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    width: 280px !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) scale(0.95) !important;
    transition: all 0.2s ease !important;
    z-index: 10000 !important;
    overflow: hidden !important;
}

.telp-dropdown-menu.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
}

.telp-dropdown-header {
    padding: 16px !important;
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%) !important;
    color: #ffffff !important;
}

.telp-dropdown-name {
    display: block !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    color: #ffffff !important;
    margin-bottom: 2px !important;
}

.telp-dropdown-email {
    display: block !important;
    font-size: 0.8125rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

.telp-dropdown-id {
    display: block !important;
    font-size: 0.75rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
    margin-top: 8px !important;
}

.telp-dropdown-id code {
    background: rgba(255, 255, 255, 0.2) !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    font-family: monospace !important;
    font-size: 0.75rem !important;
    color: #ffffff !important;
}

.telp-dropdown-role {
    display: inline-block !important;
    font-size: 0.6875rem !important;
    color: #ffffff !important;
    background: rgba(99, 102, 241, 0.8) !important;
    padding: 2px 8px !important;
    border-radius: 9999px !important;
    margin-top: 6px !important;
    text-transform: capitalize !important;
}

.telp-dropdown-divider {
    height: 1px !important;
    background: #e5e7eb !important;
    margin: 8px 0 !important;
}

.telp-dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 16px !important;
    text-decoration: none !important;
    color: #374151 !important;
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
    transition: all 0.15s ease !important;
}

.telp-dropdown-item:hover {
    background: #f3f4f6 !important;
    color: #111827 !important;
}

.telp-dropdown-icon {
    font-size: 1.125rem !important;
    width: 24px !important;
    text-align: center !important;
    flex-shrink: 0 !important;
}

.telp-dropdown-logout {
    color: #dc2626 !important;
}

.telp-dropdown-logout:hover {
    background: #fef2f2 !important;
    color: #991b1b !important;
}

/* ========================================
   Auth Buttons (Sign In / Start Free Trial)
   ======================================== */
.telp-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    border: none !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

.telp-btn-primary {
    background: #6366F1 !important;
    color: #ffffff !important;
}

.telp-btn-primary:hover {
    background: #4F46E5 !important;
}

.telp-btn-ghost {
    background: transparent !important;
    color: #4b5563 !important;
}

.telp-btn-ghost:hover {
    background: #f3f4f6 !important;
    color: #111827 !important;
}

.telp-btn-outline {
    background: transparent !important;
    border: 1px solid #d1d5db !important;
    color: #374151 !important;
}

.telp-btn-outline:hover {
    background: #f3f4f6 !important;
    border-color: #9ca3af !important;
}

/* ========================================
   Mobile Menu Toggle
   ======================================== */
.telp-menu-toggle {
    display: none !important;
    padding: 8px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    color: #374151 !important;
    border-radius: 8px !important;
}

.telp-menu-toggle:hover {
    background: #f3f4f6 !important;
}

.telp-menu-toggle svg {
    width: 24px !important;
    height: 24px !important;
}

/* ========================================
   Mobile Navigation
   ======================================== */
.telp-mobile-nav {
    display: none !important;
    flex-direction: column !important;
    padding: 16px 0 !important;
    background: #ffffff !important;
    border-top: 1px solid #e5e7eb !important;
}

.telp-mobile-nav.show {
    display: flex !important;
}

.telp-mobile-link {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 20px !important;
    text-decoration: none !important;
    color: #374151 !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
    transition: background 0.2s ease !important;
}

.telp-mobile-link:hover {
    background: #f3f4f6 !important;
}

.telp-mobile-divider {
    height: 1px !important;
    background: #e5e7eb !important;
    margin: 12px 20px !important;
}

.telp-mobile-logout {
    color: #dc2626 !important;
}

/* ========================================
   Main Content Offset
   ======================================== */
.telp-main {
    margin-top: 70px !important;
    min-height: calc(100vh - 70px);
}

/* ========================================
   Skip Link
   ======================================== */
.telp-skip-link {
    position: absolute !important;
    top: -100px !important;
    left: 0 !important;
    background: #6366F1 !important;
    color: #ffffff !important;
    padding: 8px 16px !important;
    z-index: 10001 !important;
    transition: top 0.2s ease !important;
}

.telp-skip-link:focus {
    top: 0 !important;
}

.telp-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ========================================
   Hide on Mobile
   ======================================== */
.telp-hide-mobile {
    display: inline-flex !important;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1200px) {
    .telp-nav-link {
        padding: 8px 12px !important;
        font-size: 0.875rem !important;
    }
}

@media (max-width: 1024px) {
    .telp-nav {
        display: none !important;
    }
    
    .telp-menu-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .telp-hide-mobile {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .telp-header-inner {
        height: 60px !important;
    }
    
    .telp-main {
        margin-top: 60px !important;
    }
    
    .telp-logo-tagline {
        display: none !important;
    }
    
    .telp-logo-icon {
        width: 38px !important;
        height: 38px !important;
    }
    
    .telp-logo-text {
        font-size: 1.25rem !important;
    }
    
    .telp-dropdown-menu {
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        border-radius: 0 0 12px 12px !important;
        max-height: calc(100vh - 60px) !important;
        overflow-y: auto !important;
    }
}

/* ========================================
   Container
   ======================================== */
.telp-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Additional Page Styles
   ======================================== */

/* Form styles */
.telp-form-group {
    margin-bottom: 1.25rem;
}

.telp-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.telp-form-group input,
.telp-form-group textarea,
.telp-form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9375rem;
    background: #ffffff;
    transition: all 0.2s ease;
}

.telp-form-group input:focus,
.telp-form-group textarea:focus,
.telp-form-group select:focus {
    outline: none;
    border-color: #6366F1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Alert styles */
.telp-alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.telp-alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.telp-alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.telp-alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.telp-alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Empty State */
.telp-empty-state {
    text-align: center;
    padding: 3rem 2rem;
}

.telp-empty-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.telp-empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #374151;
}

.telp-empty-state p {
    color: #6b7280;
    margin: 0 0 1rem 0;
}

/* ========================================
   Dashboard Welcome Badges
   ======================================== */
.telp-user-badges {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-top: 16px !important;
}

.telp-customer-badge,
.telp-role-badge,
.telp-school-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 14px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 8px !important;
    font-size: 0.875rem !important;
    color: #ffffff !important;
    font-weight: 500 !important;
}

.telp-customer-badge strong,
.telp-role-badge strong {
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace !important;
    letter-spacing: 0.5px !important;
}

/* Welcome Banner Role Colors */
.telp-welcome-banner.student-welcome {
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%) !important;
}

.telp-welcome-banner.guardian-welcome {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%) !important;
}

.telp-welcome-banner.teacher-welcome {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
}

.telp-welcome-banner.admin-welcome {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
}

.telp-welcome-banner.esa-welcome {
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%) !important;
}

.telp-welcome-banner {
    border-radius: 16px !important;
    padding: 2rem !important;
    margin-bottom: 1.5rem !important;
    position: relative !important;
    overflow: hidden !important;
}

.telp-welcome-banner::before {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    right: -50% !important;
    width: 100% !important;
    height: 200% !important;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%) !important;
    pointer-events: none !important;
}

.telp-welcome-banner h1 {
    color: #ffffff !important;
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    margin: 0 0 8px 0 !important;
    position: relative !important;
    z-index: 1 !important;
}

.telp-welcome-banner p {
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0 !important;
    font-size: 1rem !important;
    position: relative !important;
    z-index: 1 !important;
}

/* ========================================
   Dashboard Layout
   ======================================== */
.telp-dashboard-page {
    padding-top: 75px;
    min-height: 100vh;
    background: #f8fafc;
}

.telp-dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    padding: 2rem 0;
}

@media (max-width: 991px) {
    .telp-dashboard-layout {
        grid-template-columns: 1fr;
    }
}

/* Dashboard Sidebar */
.telp-dashboard-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.telp-dashboard-nav {
    background: #ffffff;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.telp-dashboard-nav-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    padding: 0.5rem 1rem;
    margin: 0;
}

.telp-dashboard-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.telp-dashboard-nav-item:hover {
    background: #f3f4f6;
    color: #111827;
}

.telp-dashboard-nav-item.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.05));
    color: #6366F1;
}

.telp-dashboard-nav-icon {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

/* Dashboard Main Content */
.telp-dashboard-main {
    min-width: 0;
}

/* Stats Row */
.telp-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.telp-stat-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.telp-stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.telp-stat-box.stat-children::before,
.telp-stat-box.stat-users::before { background: #3B82F6; }
.telp-stat-box.stat-students::before,
.telp-stat-box.stat-completed::before { background: #10B981; }
.telp-stat-box.stat-points::before,
.telp-stat-box.stat-subscription::before { background: #F59E0B; }
.telp-stat-box.stat-streak::before,
.telp-stat-box.stat-activities::before { background: #8B5CF6; }
.telp-stat-box.stat-level::before,
.telp-stat-box.stat-status::before { background: #EC4899; }
.telp-stat-box.stat-classes::before { background: #14B8A6; }
.telp-stat-box.stat-grades::before { background: #6366F1; }
.telp-stat-box.stat-schools::before { background: #EF4444; }
.telp-stat-box.stat-tickets::before { background: #F97316; }
.telp-stat-box.stat-families::before { background: #06B6D4; }
.telp-stat-box.stat-funds::before { background: #84CC16; }
.telp-stat-box.stat-pending::before { background: #A855F7; }

.telp-stat-box-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.telp-stat-box-value {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}

.telp-stat-box-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 4px;
}

/* Dashboard Cards */
.telp-dashboard-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.telp-dashboard-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.telp-dashboard-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Progress Bar */
.telp-progress-section {
    margin-bottom: 1rem;
}

.telp-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.875rem;
    color: #374151;
}

.telp-progress-bar-wrapper {
    height: 10px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.telp-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366F1, #8B5CF6);
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* Children List */
.telp-children-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.telp-child-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    flex-wrap: wrap;
}

.telp-child-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
}

.telp-child-info {
    flex: 1;
    min-width: 200px;
}

.telp-child-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.telp-child-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 8px;
}

/* Activity Grid */
.telp-activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.telp-activity-card {
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.telp-activity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.telp-activity-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.telp-activity-content {
    padding: 1rem;
}

.telp-activity-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #111827;
}

.telp-activity-excerpt {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 12px 0;
}

.telp-activity-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.telp-activity-time {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Quick Actions */
.telp-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.telp-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 1.5rem 1rem;
    background: #f8fafc;
    border-radius: 12px;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s ease;
}

.telp-action-card:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.05));
    color: #6366F1;
    transform: translateY(-2px);
}

.telp-action-icon {
    font-size: 2rem;
}

.telp-action-label {
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}

/* Admin Navigation Grid */
.telp-admin-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.telp-admin-nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s ease;
    position: relative;
}

.telp-admin-nav-card:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.05));
    color: #6366F1;
    transform: translateY(-2px);
}

.telp-admin-nav-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.telp-admin-nav-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.telp-admin-nav-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: #6366F1;
}

/* Achievements Grid */
.telp-achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.telp-achievement {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    text-align: center;
}

.telp-achievement.unlocked {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
}

.telp-achievement.locked {
    opacity: 0.5;
}

.telp-achievement-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.telp-achievement-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #111827;
    margin-bottom: 4px;
}

.telp-achievement-desc {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Empty State */
.telp-empty-state {
    text-align: center;
    padding: 3rem 2rem;
}

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

.telp-empty-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.telp-empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px 0;
}

.telp-empty-state p {
    color: #6b7280;
    margin: 0 0 1.5rem 0;
}

/* Badges */
.telp-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.telp-badge-success { background: #dcfce7; color: #166534; }
.telp-badge-warning { background: #fef3c7; color: #92400e; }
.telp-badge-error { background: #fee2e2; color: #991b1b; }
.telp-badge-info { background: #dbeafe; color: #1e40af; }
.telp-badge-beginner { background: #dcfce7; color: #166534; }
.telp-badge-intermediate { background: #fef3c7; color: #92400e; }
.telp-badge-advanced { background: #fee2e2; color: #991b1b; }

/* Buttons */
.telp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.telp-btn-primary {
    background: linear-gradient(135deg, #6366F1, #4F46E5);
    color: #ffffff;
}

.telp-btn-primary:hover {
    background: linear-gradient(135deg, #4F46E5, #4338CA);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.telp-btn-outline {
    background: transparent;
    border: 2px solid #e5e7eb;
    color: #374151;
}

.telp-btn-outline:hover {
    border-color: #6366F1;
    color: #6366F1;
    background: rgba(99, 102, 241, 0.05);
}

.telp-btn-sm {
    padding: 6px 14px;
    font-size: 0.875rem;
}

.telp-btn-xs {
    padding: 4px 10px;
    font-size: 0.75rem;
}

.telp-btn-block {
    width: 100%;
}

/* Tables */
.telp-students-table {
    overflow-x: auto;
}

.telp-students-table table {
    width: 100%;
    border-collapse: collapse;
}

.telp-students-table th,
.telp-students-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.telp-students-table th {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6b7280;
    background: #f8fafc;
}

.telp-student-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.telp-student-cell img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

/* Mini Progress Bar */
.telp-mini-progress {
    width: 80px;
    height: 6px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

.telp-mini-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10B981, #34D399);
    border-radius: 6px;
}

.telp-progress-text {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Activity Feed */
.telp-activity-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.telp-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 10px;
}

.telp-activity-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.telp-activity-content p {
    margin: 0 0 4px 0;
    font-size: 0.9375rem;
}

.telp-activity-time {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Subscription Info */
.telp-subscription-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.telp-subscription-details {
    flex: 1;
    min-width: 200px;
}

.telp-subscription-plan {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.telp-plan-name {
    font-size: 1.25rem;
    font-weight: 600;
}

.telp-subscription-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.telp-subscription-features li {
    padding: 4px 0;
    color: #4b5563;
}

/* User Breakdown */
.telp-user-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.telp-user-role-stat {
    display: grid;
    grid-template-columns: 100px 1fr 60px;
    align-items: center;
    gap: 1rem;
}

.telp-role-name {
    font-weight: 500;
    color: #374151;
}

.telp-role-count {
    font-weight: 700;
    color: #6366F1;
    text-align: right;
}

.telp-role-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.telp-role-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366F1, #8B5CF6);
    border-radius: 8px;
}

/* User Badges in Welcome Banner */
.telp-user-badges {
    display: flex;
    gap: 12px;
    margin-top: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.telp-customer-badge,
.telp-role-badge,
.telp-school-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.875rem;
    backdrop-filter: blur(4px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .telp-dashboard-sidebar {
        position: static;
    }
    
    .telp-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .telp-quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .telp-admin-nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .telp-achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .telp-activity-grid {
        grid-template-columns: 1fr;
    }
    
    .telp-user-role-stat {
        grid-template-columns: 1fr 1fr;
    }
    
    .telp-role-bar {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .telp-dashboard-page {
        padding-top: 65px;
    }
    
    .telp-dashboard-layout {
        padding: 1rem 0;
    }
    
    .telp-dashboard-card {
        padding: 1rem;
    }
    
    .telp-stats-row {
        grid-template-columns: 1fr;
    }
    
    .telp-child-card {
        flex-direction: column;
        text-align: center;
    }
    
    .telp-child-stats {
        justify-content: center;
    }
}
