/**
 * WeSource Dashboard - Frontend Styles
 * WeSource Pharma branding and design - Matching website aesthetic
 */

/* Main Dashboard Container */
.wesource-user-dashboard {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.wesource-dashboard-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    max-width: 100%;
    margin: 0;
    min-height: 100vh;
    gap: 0;
    background: #f8f9fa;
}

/* ========================================
   LEFT SIDEBAR NAVIGATION
   ======================================== */

aside.wesource-sidebar,
.wesource-sidebar,
aside[class*="wesource-sidebar"] {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    color: #2c3e50 !important;
    min-height: 100vh;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    transition: all 0.3s ease;
    z-index: 100;
    margin: 0;
    padding: 0;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.08);
    border-right: 1px solid #e9ecef;
}

.wesource-sidebar.collapsed {
    width: 60px;
}

.wesource-sidebar-toggle {
    background: #f8f9fa;
    border: none;
    border-bottom: 1px solid #e9ecef;
    color: #2c3e50;
    padding: 15px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.wesource-sidebar-toggle:hover {
    background: #e9ecef;
}

.wesource-toggle-icon {
    font-size: 20px;
    font-weight: bold;
}

.wesource-sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wesource-menu-item {
    border-bottom: 1px solid #f0f0f0;
    margin: 2px 0;
}

.wesource-menu-link {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 14px;
    position: relative;
    font-weight: 500;
    letter-spacing: 0.3px;
    cursor: pointer;
    user-select: none;
}

.wesource-menu-link:hover {
    background: #fef6ed;
    color: #F7941D;
    padding-left: 28px;
}

.wesource-menu-link.active {
    background: #fff3e0 !important;
    color: #F7941D;
    font-weight: 600;
    border-left: 4px solid #F7941D;
    padding-left: 24px;
}

.wesource-menu-icon {
    width: 20px;
    font-size: 18px;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.8;
}

.wesource-menu-text {
    flex: 1;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
}

.wesource-menu-badge {
    background: #FFA929;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.wesource-submenu-arrow {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.2s;
}

.wesource-menu-item.has-submenu.open .wesource-submenu-arrow {
    transform: rotate(90deg);
}

/* Submenu */
.wesource-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.wesource-menu-item.has-submenu.open .wesource-submenu {
    max-height: 500px;
}

.wesource-submenu-link {
    display: block;
    padding: 12px 24px 12px 56px;
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    font-weight: 400;
    cursor: pointer;
    user-select: none;
}

.wesource-submenu-link:hover {
    background: #ffffff;
    color: #F7941D;
    padding-left: 60px;
}

.wesource-submenu-link.active {
    background: #ffffff;
    color: #F7941D;
    font-weight: 600;
    border-left: 3px solid #F7941D;
}

/* ========================================
   MAIN CONTENT AREA
   ======================================== */

.wesource-main-content {
    background: #f8f9fa;
    padding: 30px 40px;
    overflow-y: auto;
    max-width: 1400px;
}

/* Notification Banners */
.wesource-notifications {
    margin-bottom: 20px;
}

.wesource-notification-banner {
    background: #fff;
    border-left: 4px solid #ffc107;
    padding: 12px 20px;
    margin-bottom: 10px;
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    gap: 15px;
}

.wesource-banner-warning {
    background: #fffbf0;
    border-color: #ffc107;
}

.wesource-banner-info {
    background: #f0f8ff;
    border-color: #2196f3;
}

.wesource-banner-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.wesource-banner-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.wesource-banner-content div {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.wesource-banner-content strong {
    display: block;
    margin-bottom: 4px;
    color: #000;
}

.wesource-banner-content a,
.wesource-banner-link {
    color: #2196f3;
    text-decoration: none;
    font-weight: 500;
}

.wesource-banner-content a:hover {
    text-decoration: underline;
}

.wesource-notification-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    opacity: 0.6;
    transition: opacity 0.2s;
    padding: 0;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.wesource-notification-close:hover {
    opacity: 1;
}

/* Section Containers - Match website card style */
.wesource-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 0;
    margin-bottom: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid rgba(247, 148, 29, 0.1);
    transition: all 0.3s ease;
}

.wesource-section:hover {
    box-shadow: 0 4px 20px rgba(247, 148, 29, 0.12);
    transform: translateY(-2px);
}

.wesource-section-header {
    padding: 25px 30px;
    border-bottom: 2px solid #f8f9fa;
    background: linear-gradient(135deg, #fff 0%, #fafbfc 100%);
}

.wesource-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #F7941D;
    margin: 0;
    letter-spacing: -0.5px;
}

/* Tabs */
.wesource-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #e0e0e0;
    padding: 0 25px;
    background: #fafafa;
}

.wesource-tab {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: -1px;
    font-size: 14px;
}

.wesource-tab:hover {
    color: #F7941D;
    background: rgba(212, 165, 116, 0.05);
}

.wesource-tab.active {
    color: #F7941D;
    border-bottom-color: #E8A55C;
    background: #fff;
}

.wesource-tab-content {
    padding: 0;
}

.wesource-tab-content.active {
    display: block;
}

/* Orders Table */
.wesource-table-wrapper {
    overflow-x: auto;
}

.wesource-orders-table {
    width: 100%;
    border-collapse: collapse;
}

.wesource-orders-table th,
.wesource-orders-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    font-size: 13px;
}

.wesource-orders-table th {
    background: #fafafa;
    font-weight: 600;
    color: #666;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wesource-orders-table th.wesource-sortable {
    cursor: pointer;
    user-select: none;
}

.wesource-orders-table th.wesource-sortable:hover {
    background: #f0f0f0;
}

.wesource-sort-icon {
    margin-left: 5px;
    opacity: 0.4;
    font-size: 10px;
}

.wesource-orders-table tbody tr {
    transition: background 0.2s;
}

.wesource-orders-table tbody tr:hover {
    background: #f8f9fa;
}

.wesource-order-link {
    color: #2196f3;
    text-decoration: none;
    font-weight: 500;
}

.wesource-order-link:hover {
    text-decoration: underline;
}

.wesource-order-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

.wesource-order-status.wesource-status-completed,
.wesource-order-status.wesource-status-complete {
    background: #e8f5e9;
    color: #939598;
}

.wesource-order-status.wesource-status-processing,
.wesource-order-status.wesource-status-in-progress {
    background: #fff3e0;
    color: #e65100;
}

.wesource-order-status.wesource-status-pending {
    background: #e3f2fd;
    color: #1565c0;
}

.wesource-order-total {
    font-weight: 600;
    color: #333;
}

.wesource-no-orders,
.wesource-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

/* Service Cards - Match website style */
.wesource-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 30px;
}

.wesource-service-card {
    background: #ffffff;
    border: 1px solid #efefef;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.wesource-service-card:hover {
    box-shadow: 0 8px 30px rgba(247, 148, 29, 0.12);
    transform: translateY(-5px);
    border-color: #F7941D;
}

.wesource-service-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.wesource-service-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wesource-service-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wesource-service-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
}

.wesource-service-desc {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 15px 0;
    flex: 1;
}

/* Product Search */
.wesource-search-section {
    padding: 25px;
}

.wesource-search-form {
    margin-bottom: 20px;
}

.wesource-search-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.wesource-search-input {
    flex: 2;
    min-width: 250px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.wesource-search-input:focus {
    outline: none;
    border-color: #F7941D;
    box-shadow: 0 0 0 2px rgba(212, 165, 116, 0.1);
}

.wesource-search-select {
    flex: 1;
    min-width: 180px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.wesource-search-btn {
    padding: 10px 25px;
    white-space: nowrap;
}

.wesource-search-results {
    margin-top: 20px;
}

/* Product Grid - Match website product cards */
.wesource-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 30px;
}

.wesource-product-card {
    background: #ffffff;
    border: 1px solid #efefef;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.wesource-product-card:hover {
    box-shadow: 0 8px 30px rgba(247, 148, 29, 0.15);
    transform: translateY(-5px);
    border-color: #F7941D;
}

.wesource-product-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.wesource-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.wesource-product-card:hover .wesource-product-image img {
    transform: scale(1.05);
}

.wesource-no-image {
    color: #999;
    font-size: 13px;
}

.wesource-product-info {
    padding: 20px;
}

.wesource-product-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.4;
    min-height: 44px;
    color: #2c3e50;
}

.wesource-product-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.wesource-product-title a:hover {
    color: #F7941D;
}

.wesource-product-price {
    font-size: 20px;
    font-weight: 700;
    color: #F7941D;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.wesource-product-stock {
    font-size: 12px;
    margin: 0 0 12px 0;
    font-weight: 500;
}

.wesource-product-stock.in-stock {
    color: #FFA929;
}

.wesource-product-stock.out-of-stock {
    color: #f44336;
}

.wesource-product-meta {
    font-size: 12px;
    color: #999;
    margin: 0 0 12px 0;
}

.wesource-product-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Button styling removed - handled by WordPress theme */

/* ========================================
   RIGHT SIDEBAR WIDGETS
   ======================================== */

.wesource-right-sidebar {
    background: #f5f7fa;
    padding: 20px 15px;
    overflow-y: auto;
    height: 100vh;
    position: sticky;
    top: 0;
}

.wesource-sidebar-widget {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.wesource-widget-title {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #F7941D;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

/* What's New */
.wesource-news-title {
    font-size: 14px;
    margin: 0 0 8px 0;
    color: #333;
    line-height: 1.4;
    font-weight: 500;
}

.wesource-news-date {
    font-size: 12px;
    color: #999;
    font-style: italic;
    margin: 0 0 12px 0;
}

.wesource-news-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-top: 10px;
}

/* My Team */
.wesource-team-member {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.wesource-team-member:last-child {
    border-bottom: none;
}

.wesource-team-name {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.wesource-team-title {
    margin: 0 0 4px 0;
    font-size: 12px;
    color: #666;
}

.wesource-team-contact {
    margin: 0;
    font-size: 13px;
}

.wesource-team-contact a {
    color: #F7941D;
    text-decoration: none;
    font-weight: 500;
}

.wesource-team-contact a:hover {
    text-decoration: underline;
}

/* Recommended Products */
.wesource-recommended-item {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.wesource-recommended-item:last-child {
    border-bottom: none;
}

.wesource-recommended-item a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.wesource-recommended-item a:hover {
    color: #F7941D;
}

/* Events & Seminars */
.wesource-event-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.wesource-event-item:last-child {
    border-bottom: none;
}

.wesource-event-title {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.wesource-event-date {
    margin: 0 0 3px 0;
    font-size: 12px;
    color: #999;
}

.wesource-event-location {
    margin: 0;
    font-size: 12px;
    color: #2196f3;
    font-weight: 500;
}

/* Loading State */
.wesource-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.wesource-loading .spinner {
        display: inline-block;
        width: 20px;
        height: 20px;
        border: 3px solid rgba(212, 165, 116, 0.2);
        border-radius: 50%;
        border-top-color: #F7941D;
        animation: spin 1s ease-in-out infinite;
    }

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Notices */
.wesource-notice {
    padding: 12px 20px;
    margin: 15px 0;
    border-radius: 4px;
    border-left: 4px solid;
}

.wesource-notice.success {
    background: #e8f5e9;
    border-color: #FFA929;
    color: #939598;
}

.wesource-notice.error {
    background: #ffebee;
    border-color: #f44336;
    color: #c62828;
}

.wesource-notice.info {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #1565c0;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
    .wesource-dashboard-container {
        grid-template-columns: 220px 1fr;
    }
}

@media (max-width: 1024px) {
    .wesource-dashboard-container {
        grid-template-columns: 1fr;
    }

    .wesource-sidebar {
        position: relative;
        min-height: auto;
        height: auto;
    }
}

@media (max-width: 768px) {
    .wesource-services-grid {
        grid-template-columns: 1fr;
    }

    .wesource-orders-table {
        font-size: 12px;
    }

    .wesource-orders-table th,
    .wesource-orders-table td {
        padding: 10px 8px;
    }

    .wesource-search-row {
        flex-direction: column;
    }

    .wesource-search-input,
    .wesource-search-select {
        width: 100%;
    }

    .wesource-products-grid {
        grid-template-columns: 1fr;
    }
    
    .wesource-main-content {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .wesource-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .wesource-tab {
        white-space: nowrap;
    }
}

/* ========================================
   INLINE LOGIN FORM - Match website style
   ======================================== */

.wesource-inline-login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.wesource-login-container {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(247, 148, 29, 0.12);
    overflow: hidden;
    border: 1px solid rgba(247, 148, 29, 0.1);
}

.wesource-login-header {
    text-align: center;
    padding: 40px 40px 30px;
    background: linear-gradient(135deg, #F7941D 0%, #FF8800 100%);
    color: #ffffff;
}

.wesource-login-header h2 {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.wesource-login-header p {
    margin: 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
}

/* Login Form Styling */
#wesource_loginform {
    padding: 40px;
}

#wesource_loginform p {
    margin-bottom: 24px;
}

#wesource_loginform label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

#wesource_loginform input[type="text"],
#wesource_loginform input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.5;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

#wesource_loginform input[type="text"]:focus,
#wesource_loginform input[type="password"]:focus {
    outline: none;
    border-color: #F7941D;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(247, 148, 29, 0.1);
}

#wesource_loginform input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
}

#wesource_loginform input[type="checkbox"]:checked {
    background-color: #F7941D;
    border-color: #F7941D;
}

#wesource_loginform .login-remember {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

#wesource_loginform .login-remember label {
    margin-bottom: 0;
    font-weight: 500;
    font-size: 14px;
    color: #6b7280;
}

#wesource-submit,
#wesource_loginform input[type="submit"] {
    width: 100%;
    padding: 16px 32px;
    margin-top: 10px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #F7941D 0%, #FF8800 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 50px !important;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(247, 148, 29, 0.25);
    text-transform: none;
    letter-spacing: 0.3px;
    text-shadow: none;
    height: auto;
    line-height: 1.5;
}

#wesource-submit:hover,
#wesource_loginform input[type="submit"]:hover {
    background: linear-gradient(135deg, #E87A15 0%, #E67700 100%);
    box-shadow: 0 6px 24px rgba(247, 148, 29, 0.35);
    transform: translateY(-2px);
}

#wesource-submit:active,
#wesource_loginform input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 12px rgba(247, 148, 29, 0.3);
}

.wesource-login-footer {
    padding: 0 40px 40px;
    text-align: center;
}

.wesource-login-footer p {
    margin: 8px 0;
}

.wesource-login-footer a {
    color: #F7941D;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s;
}

.wesource-login-footer a:hover {
    color: #E87A15;
    text-decoration: underline;
}

/* Old Login Prompt Styles (keep for backward compatibility) */
.wesource-login-prompt,
.wesource-admin-redirect {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 40px 20px;
}

.wesource-login-card,
.wesource-redirect-card {
    text-align: center;
    max-width: 500px;
    padding: 40px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.wesource-login-icon,
.wesource-redirect-icon {
    font-size: 64px;
    color: #F7941D;
    margin-bottom: 20px;
}

.wesource-login-card h2,
.wesource-redirect-card h2 {
    margin: 0 0 15px;
    font-size: 26px;
    font-weight: 700;
    color: #2c3e50;
}

.wesource-login-card p,
.wesource-redirect-card p {
    margin: 15px 0;
    color: #6b7280;
}

/* ========================================
   SECTION NAVIGATION
   ======================================== */

.wesource-content-section {
    display: none !important;
    width: 100%;
}

.wesource-content-section.active {
    display: block !important;
}

/* All elements with data-section should be clickable */
[data-section] {
    cursor: pointer !important;
}

/* Quick Actions */
.wesource-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.wesource-quick-action {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 24px 28px;
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.wesource-quick-action:hover {
    background: #fff3e0;
    border-color: #F7941D;
    color: #F7941D;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(247, 148, 29, 0.2);
}

.wesource-action-icon {
    font-size: 24px;
}

.wesource-action-text {
    font-size: 15px;
}

/* Stats Dashboard */
.wesource-stats-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.wesource-stat-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.wesource-stat-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.wesource-stat-box.primary {
    border-color: #F7941D;
    background: linear-gradient(135deg, #fff3e0 0%, #ffffff 100%);
}

.wesource-stat-box.success {
    border-color: #28a745;
    background: linear-gradient(135deg, #e8f5e9 0%, #ffffff 100%);
}

.wesource-stat-box.warning {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fff8e1 0%, #ffffff 100%);
}

.wesource-stat-box.info {
    border-color: #17a2b8;
    background: linear-gradient(135deg, #e0f7fa 0%, #ffffff 100%);
}

.wesource-stat-icon-wrap {
    font-size: 36px;
    margin-bottom: 12px;
}

.wesource-stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin: 10px 0;
}

.wesource-stat-label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wesource-page-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 30px 0;
    letter-spacing: -0.5px;
}

/* Ensure main content area doesn't have conflicting display rules */
.wesource-main-content {
    position: relative;
    overflow-x: hidden;
}

/* Section transitions */
.wesource-content-section {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
