/**
 * Standardized Card Styles - SkillNest Template
 * Include this CSS to apply consistent card styling across the application
 */

/* ============================================
   Icon Circle Utility Sizes
   ============================================ */
.icon-circle-xs  { width: 32px; height: 32px; flex-shrink: 0; }
.icon-circle-sm  { width: 36px; height: 36px; flex-shrink: 0; }
.icon-circle-md  { width: 48px; height: 48px; flex-shrink: 0; }
.icon-circle-lg  { width: 56px; height: 56px; flex-shrink: 0; }
.icon-circle-xl  { width: 72px; height: 72px; flex-shrink: 0; }
.icon-circle-xxl { width: 88px; height: 88px; flex-shrink: 0; }

/* ============================================
   Letter-spacing Utilities
   ============================================ */
.ls-1 { letter-spacing: 0.06em; }
.ls-2 { letter-spacing: 0.09em; }
.ls-3 { letter-spacing: 0.12em; }

/* ============================================
   Interaction Utilities
   ============================================ */
.transition-all { transition: all 0.2s ease; }

/* ============================================
   Small Widget Cards (Stat Cards)
   ============================================ */
.small-widget {
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.small-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.small-widget .card-body {
    position: relative;
    padding: 1.25rem;
}

/* Border variants */
.border-b-primary {
    border-bottom: 3px solid var(--theme-deafult, #006666) !important;
}

.border-b-secondary {
    border-bottom: 3px solid var(--secondary-color, #6c757d) !important;
}

.border-b-success {
    border-bottom: 3px solid var(--success-color, #28a745) !important;
}

.border-b-warning {
    border-bottom: 3px solid var(--warning-color, #ffc107) !important;
}

.border-b-danger {
    border-bottom: 3px solid var(--danger-color, #dc3545) !important;
}

.border-b-info {
    border-bottom: 3px solid var(--info-color, #17a2b8) !important;
}

/* Project Details Layout */
.project-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
}

.project-counter h2 {
    margin-bottom: 0;
    font-size: 1.75rem;
    line-height: 1.2;
}

/* Product Sub Icon Container */
.product-sub {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-sub .invoice-icon,
.product-sub i.invoice-icon {
    font-size: 1.25rem;
}

/* Background Light Variants */
.bg-primary-light {
    background-color: rgba(0, 102, 102, 0.15) !important;
    color: var(--theme-deafult, #006666);
}

.bg-secondary-light {
    background-color: rgba(108, 117, 125, 0.15) !important;
    color: var(--secondary-color, #6c757d);
}

.bg-success-light {
    background-color: rgba(40, 167, 69, 0.15) !important;
    color: var(--success-color, #28a745);
}

.bg-warning-light {
    background-color: rgba(255, 193, 7, 0.15) !important;
    color: var(--warning-color, #ffc107);
}

.bg-danger-light {
    background-color: rgba(220, 53, 69, 0.15) !important;
    color: var(--danger-color, #dc3545);
}

.bg-info-light {
    background-color: rgba(23, 162, 184, 0.15) !important;
    color: var(--info-color, #17a2b8);
}

.bg-light-light {
    background-color: rgba(248, 249, 250, 0.5) !important;
}

/* Light background for cards */
.bg-light-primary {
    background-color: rgba(0, 102, 102, 0.08) !important;
}

.bg-light-success {
    background-color: rgba(40, 167, 69, 0.08) !important;
}

.bg-light-warning {
    background-color: rgba(255, 193, 7, 0.08) !important;
}

.bg-light-danger {
    background-color: rgba(220, 53, 69, 0.08) !important;
}

.bg-light-info {
    background-color: rgba(23, 162, 184, 0.08) !important;
}

.bg-light-secondary {
    background-color: rgba(108, 117, 125, 0.08) !important;
}

/* Bubbles Animation */
.bubbles {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    list-style: none;
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: rise 8s ease-in infinite;
}

.bubble:nth-child(1) { left: 10%; width: 40px; height: 40px; animation-delay: 0s; }
.bubble:nth-child(2) { left: 20%; width: 20px; height: 20px; animation-delay: 1s; }
.bubble:nth-child(3) { left: 35%; width: 60px; height: 60px; animation-delay: 2s; }
.bubble:nth-child(4) { left: 50%; width: 30px; height: 30px; animation-delay: 0.5s; }
.bubble:nth-child(5) { left: 65%; width: 25px; height: 25px; animation-delay: 3s; }
.bubble:nth-child(6) { left: 75%; width: 45px; height: 45px; animation-delay: 1.5s; }
.bubble:nth-child(7) { left: 85%; width: 35px; height: 35px; animation-delay: 2.5s; }
.bubble:nth-child(8) { left: 25%; width: 50px; height: 50px; animation-delay: 4s; }
.bubble:nth-child(9) { left: 55%; width: 15px; height: 15px; animation-delay: 3.5s; }

@keyframes rise {
    0% {
        bottom: -10px;
        opacity: 0.5;
        transform: translateX(0);
    }
    50% {
        opacity: 0.25;
        transform: translateX(20px);
    }
    100% {
        bottom: 100%;
        opacity: 0;
        transform: translateX(-20px);
    }
}

/* ============================================
   Card Header Styles
   ============================================ */
.card-header.card-no-border {
    border-bottom: none;
    background: transparent;
    padding-bottom: 0;
}

.card-header.total-revenue {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header.total-revenue h4,
.card-header.total-revenue h5 {
    margin-bottom: 0;
}

.card-header.total-revenue a {
    color: var(--body-color, #6c757d);
    text-decoration: none;
    font-size: 0.875rem;
}

.card-header.total-revenue a:hover {
    color: var(--theme-deafult, #006666);
}

.card-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Card title underline variant */
.card-title-underline h4,
.card-title-underline h5 {
    position: relative;
    padding-bottom: 0.5rem;
}

.card-title-underline h4::after,
.card-title-underline h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--theme-deafult, #006666);
}

/* ============================================
   Typography Utilities
   ============================================ */
.f-light {
    color: var(--body-color, #6c757d) !important;
}

.f-w-400 { font-weight: 400 !important; }
.f-w-500 { font-weight: 500 !important; }
.f-w-600 { font-weight: 600 !important; }
.f-w-700 { font-weight: 700 !important; }

.f-10 { font-size: 10px !important; }
.f-12 { font-size: 12px !important; }
.f-13 { font-size: 13px !important; }
.f-14 { font-size: 14px !important; }
.f-16 { font-size: 16px !important; }
.f-18 { font-size: 18px !important; }
.f-22 { font-size: 22px !important; }

/* ============================================
   Table Styles
   ============================================ */
.order-table {
    margin-bottom: 0;
}

.order-table thead th {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--body-color, #6c757d);
    border-bottom: 1px solid var(--border-color, #e9ecef);
    padding: 0.75rem;
}

.order-table tbody td {
    padding: 0.75rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color, #e9ecef);
}

.order-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Custom scrollbar */
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

/* ============================================
   Feature Cards
   ============================================ */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color, #e9ecef);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--theme-deafult, #006666);
}

/* ============================================
   Status Indicators
   ============================================ */
.pending {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.txt-primary { color: var(--theme-deafult, #006666) !important; }
.txt-secondary { color: var(--secondary-color, #6c757d) !important; }
.txt-success { color: var(--success-color, #28a745) !important; }
.txt-warning { color: var(--warning-color, #ffc107) !important; }
.txt-danger { color: var(--danger-color, #dc3545) !important; }
.txt-info { color: var(--info-color, #17a2b8) !important; }

/* ============================================
   Card Overflow Hidden
   ============================================ */
.o-hidden {
    overflow: hidden;
}

/* ============================================
   Recent Order Card
   ============================================ */
.recent-order .card-header {
    padding: 1rem 1.25rem;
}

/* ============================================
   Invoice Icon Size
   ============================================ */
.invoice-icon {
    width: 24px;
    height: 24px;
}

i.invoice-icon {
    font-size: 1.25rem;
}

/* ============================================
   Badge Light Variants
   ============================================ */
.badge-light-primary {
    background-color: rgba(0, 102, 102, 0.15);
    color: var(--theme-deafult, #006666);
}

.badge-light-secondary {
    background-color: rgba(108, 117, 125, 0.15);
    color: var(--secondary-color, #6c757d);
}

.badge-light-success {
    background-color: rgba(40, 167, 69, 0.15);
    color: var(--success-color, #28a745);
}

.badge-light-warning {
    background-color: rgba(255, 193, 7, 0.15);
    color: var(--warning-color, #ffc107);
}

.badge-light-danger {
    background-color: rgba(220, 53, 69, 0.15);
    color: var(--danger-color, #dc3545);
}

.badge-light-info {
    background-color: rgba(23, 162, 184, 0.15);
    color: var(--info-color, #17a2b8);
}

/* ============================================
   Total Project Card Variants
   ============================================ */
.total-project,
.total-Progress,
.total-Complete,
.total-upcoming {
    position: relative;
}

/* ============================================
   Dark Mode Support
   ============================================ */
[data-theme="dark"] .small-widget:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .bubble {
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .card-header.card-no-border {
    background: transparent;
}

[data-theme="dark"] .bg-light {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .order-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* ============================================
   Extended Table Styles (SkillNest Pattern)
   ============================================ */

/* Table row border color variants */
.border-bottom-primary {
    border-bottom: 1px solid var(--theme-deafult, #006666) !important;
}

.border-bottom-secondary {
    border-bottom: 1px solid var(--secondary-color, #6c757d) !important;
}

.border-bottom-success {
    border-bottom: 1px solid var(--success-color, #28a745) !important;
}

.border-bottom-warning {
    border-bottom: 1px solid var(--warning-color, #ffc107) !important;
}

.border-bottom-danger {
    border-bottom: 1px solid var(--danger-color, #dc3545) !important;
}

.border-bottom-info {
    border-bottom: 1px solid var(--info-color, #17a2b8) !important;
}

/* Table size variants */
.table-lg th,
.table-lg td {
    padding: 1rem 1.25rem !important;
}

.table-xl th,
.table-xl td {
    padding: 1.25rem 1.5rem !important;
}

.table-xs th,
.table-xs td {
    padding: 0.35rem 0.5rem !important;
    font-size: 0.8rem;
}

/* Table border style variants */
.table-dashed th,
.table-dashed td {
    border-style: dashed !important;
}

.table-dotted th,
.table-dotted td {
    border-style: dotted !important;
}

/* Light Card Table */
.light-card {
    background-color: var(--light-bg, #f8f9fa);
}

/* ============================================
   Alert Light Variants (SkillNest Pattern)
   ============================================ */
.alert-light-primary {
    background-color: rgba(0, 102, 102, 0.12) !important;
    border: 1px solid rgba(0, 102, 102, 0.3);
    color: var(--theme-deafult, #006666);
}

.alert-light-secondary {
    background-color: rgba(108, 117, 125, 0.12) !important;
    border: 1px solid rgba(108, 117, 125, 0.3);
    color: var(--secondary-color, #6c757d);
}

.alert-light-success {
    background-color: rgba(40, 167, 69, 0.12) !important;
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: var(--success-color, #28a745);
}

.alert-light-warning {
    background-color: rgba(255, 193, 7, 0.12) !important;
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #856404;
}

.alert-light-danger {
    background-color: rgba(220, 53, 69, 0.12) !important;
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: var(--danger-color, #dc3545);
}

.alert-light-info {
    background-color: rgba(23, 162, 184, 0.12) !important;
    border: 1px solid rgba(23, 162, 184, 0.3);
    color: var(--info-color, #17a2b8);
}

/* Alert with left border */
.border-left-wrapper {
    border-left: 4px solid currentColor !important;
}

/* ============================================
   Button Air Variants (SkillNest Pattern)
   ============================================ */
.btn-air-primary {
    box-shadow: 0 5px 10px 2px rgba(0, 102, 102, 0.2) !important;
}

.btn-air-primary:hover,
.btn-air-primary:active,
.btn-air-primary:focus {
    box-shadow: 0 5px 10px 2px rgba(0, 102, 102, 0.4) !important;
}

.btn-air-secondary {
    box-shadow: 0 5px 10px 2px rgba(108, 117, 125, 0.2) !important;
}

.btn-air-secondary:hover,
.btn-air-secondary:active,
.btn-air-secondary:focus {
    box-shadow: 0 5px 10px 2px rgba(108, 117, 125, 0.4) !important;
}

.btn-air-success {
    box-shadow: 0 5px 10px 2px rgba(40, 167, 69, 0.2) !important;
}

.btn-air-success:hover,
.btn-air-success:active,
.btn-air-success:focus {
    box-shadow: 0 5px 10px 2px rgba(40, 167, 69, 0.4) !important;
}

.btn-air-warning {
    box-shadow: 0 5px 10px 2px rgba(255, 193, 7, 0.2) !important;
}

.btn-air-warning:hover,
.btn-air-warning:active,
.btn-air-warning:focus {
    box-shadow: 0 5px 10px 2px rgba(255, 193, 7, 0.4) !important;
}

.btn-air-danger {
    box-shadow: 0 5px 10px 2px rgba(220, 53, 69, 0.2) !important;
}

.btn-air-danger:hover,
.btn-air-danger:active,
.btn-air-danger:focus {
    box-shadow: 0 5px 10px 2px rgba(220, 53, 69, 0.4) !important;
}

.btn-air-info {
    box-shadow: 0 5px 10px 2px rgba(23, 162, 184, 0.2) !important;
}

.btn-air-info:hover,
.btn-air-info:active,
.btn-air-info:focus {
    box-shadow: 0 5px 10px 2px rgba(23, 162, 184, 0.4) !important;
}

.btn-air-light {
    box-shadow: 0 5px 10px 2px rgba(248, 249, 250, 0.2) !important;
}

/* Button outline 2x variants */
.btn-outline-primary-2x {
    border-width: 2px !important;
}

.btn-outline-secondary-2x {
    border-width: 2px !important;
}

.btn-outline-success-2x {
    border-width: 2px !important;
}

.btn-outline-warning-2x {
    border-width: 2px !important;
}

.btn-outline-danger-2x {
    border-width: 2px !important;
}

.btn-outline-info-2x {
    border-width: 2px !important;
}

/* Pill buttons */
.btn-pill {
    border-radius: 50px !important;
}

/* ============================================
   Dark Mode - Extended Support
   ============================================ */
[data-theme="dark"] .alert-light-primary,
[data-theme="dark"] .alert-light-secondary,
[data-theme="dark"] .alert-light-success,
[data-theme="dark"] .alert-light-warning,
[data-theme="dark"] .alert-light-danger,
[data-theme="dark"] .alert-light-info {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/* ============================================
   Wallet Navigation Component
   ============================================ */
.wallet-nav {
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.wallet-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.wallet-nav-link {
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.3s, transform 0.3s;
    font-size: 14px;
}

.wallet-nav-link i { margin-right: 5px; }

.wallet-nav-link:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    transform: translateY(-2px);
}

.wallet-nav-link.active {
    background: rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

@media (max-width: 768px) {
    .wallet-nav-links {
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        scroll-snap-type: x proximity;
        padding-bottom: 4px;
        gap: 8px;
    }
    .wallet-nav-link {
        flex: 0 0 auto;
        min-width: 140px;
        text-align: center;
        scroll-snap-align: start;
        padding: 10px 14px;
    }
    .wallet-nav-links::-webkit-scrollbar { height: 6px; }
    .wallet-nav-links::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.35);
        border-radius: 10px;
    }
}

/* Amount preset buttons (wallet top-up) */
.amount-btn.active,
.js-amount-preset.active {
    background-color: #006666 !important;
    color: #fff !important;
    border-color: #006666 !important;
}

/* ============================================
   Global UX Utilities (loaded on non-light pages)
   ============================================ */
.page-body .card.shadow-sm,
.page-body .card.border-0.shadow-sm {
    box-shadow: 0 0.2rem 0.9rem rgba(17, 24, 39, 0.08) !important;
}

.page-body .col-md-12 > .card,
.page-body .col-lg-12 > .card {
    margin-bottom: 14px;
}

.ux-loading-message {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6c757d;
}

.ux-skeleton {
    border-radius: 8px;
    background: linear-gradient(90deg, #f1f3f5 25%, #e9ecef 37%, #f1f3f5 63%);
    background-size: 400% 100%;
    animation: uxShimmer 1.4s ease infinite;
}

@keyframes uxShimmer {
    0%   { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

/* ============================================
   Cursor & Hover Utilities
   ============================================ */
.cursor-pointer { cursor: pointer !important; }

.hover-lift {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.hover-lift-sm {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}
.hover-lift-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
}

/* ============================================
   Dashboard & Alert Utilities
   ============================================ */
.dashboard-skeleton-card {
    height: 86px;
}

.low-credit-banner {
    border-left: 4px solid;
    animation: fadeInDown 0.4s ease-out;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.banner-close-btn {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.banner-close-btn:hover {
    opacity: 1;
}

/* ============================================
   Pricing Card Emphasis
   ============================================ */
.pricingtable-featured {
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(255, 193, 7, 0.15) !important;
}

/* Pre-formatted AI output */
.ai-output-pre {
    white-space: pre-wrap;
    font-family: Arial, sans-serif;
    background: #f8f9fa;
    border-radius: 0.375rem;
    padding: 1rem;
}

/* Profile gradient header */
.profile-hero-card {
    background: linear-gradient(135deg, #006666, #004d4d);
}

[data-theme="dark"] .light-card {
    background-color: rgba(255, 255, 255, 0.05);
}
