/**
 * YOOPixel Portal - Dashboard Styles
 * 
 * @package YOOPixel Portal
 */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* Variables */
:root {
    --yoo-primary: #faa61a;
    --yoo-primary-dark: #e89510;
    --yoo-success: #00a32a;
    --yoo-warning: #dba617;
    --yoo-danger: #d63638;
    --yoo-gray-50: #f8fafc;
    --yoo-gray-100: #e5e7eb;
    --yoo-gray-200: #d1d5db;
    --yoo-gray-600: #64748b;
    --yoo-gray-900: #5A5A59;
    --yoo-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --yoo-shadow-md: 0 10px 30px rgba(15, 23, 42, 0.12);
    --yoo-radius: 10px;
    --yoo-radius-lg: 14px;
    --yoo-transition: all 0.2s ease;
    --yoo-font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Global Portal Styles */
body.yooportal-page {
    background: #fff;
    font-family: var(--yoo-font-family);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Portal Header */
.yoo-portal-header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--yoo-gray-100);
    padding: 12px 48px;
    box-sizing: border-box;
}

.yoo-portal-header-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.yoo-portal-logo img {
    max-width: 140px;
    height: auto;
}

/* Portal Navigation */
.yoo-portal-topbar {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--yoo-gray-100);
    padding: 1px 48px;
    box-shadow: 0 12px 24px -12px rgba(17, 24, 39, 0.15);
    box-sizing: border-box;
}

.yoo-portal-topbar-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.yoo-portal-nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    background: transparent;
    flex: 1;
}

.yoo-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    text-decoration: none;
    color: #5A5A59;
    font-weight: 500;
    font-size: 15px;
    transition: var(--yoo-transition);
    white-space: nowrap;
    position: relative;
    letter-spacing: 0.01em;
}

.yoo-nav-item .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: inherit;
}

.yoo-nav-item:not(:first-child)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 16px;
    background: rgba(15, 23, 42, 0.12);
    transform: translate(-50%, -50%);
}

.yoo-nav-item:hover,
.yoo-nav-item.active {
    color: var(--yoo-primary);
}

.yoo-portal-header .yoo-portal-account {
    position: relative;
    display: flex;
    align-items: center;
}

.yoo-portal-topbar .yoo-portal-account {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: auto;
}

.yoo-account-trigger {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 8px;
    transition: var(--yoo-transition);
}

.yoo-account-trigger:hover {
    background: var(--yoo-gray-50);
}

.yoo-account-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
}

.yoo-account-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.yoo-account-greeting {
    font-size: 11px;
    font-weight: 500;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.yoo-account-name {
    font-size: 15px;
    font-weight: 600;
    color: #5A5A59;
    line-height: 1;
}

.yoo-account-dropdown {
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    background: #fff;
    border: 1px solid var(--yoo-gray-100);
    border-radius: var(--yoo-radius);
    min-width: 190px;
    box-shadow: var(--yoo-shadow-sm);
    padding: 8px 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: var(--yoo-transition);
    z-index: 10;
}

.yoo-portal-account:hover .yoo-account-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.yoo-account-dropdown a {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--yoo-gray-900);
    font-size: 14px;
    transition: var(--yoo-transition);
}

.yoo-account-dropdown a:hover {
    background: var(--yoo-gray-50);
    color: var(--yoo-primary);
}

.yooportal-wrapper {
    width: 100%;
    max-width: calc(1280px + 96px);
    margin: 0 auto;
    font-family: var(--yoo-font-family);
    padding: 32px 48px 64px;
    min-height: calc(100vh - 400px);
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Portal Footer */
.yoo-portal-footer {
    width: 100%;
    background: #f8fafc;
    border-top: 1px solid var(--yoo-gray-100);
    padding: 24px 48px;
    margin-top: 40px;
    box-sizing: border-box;
}

.yoo-portal-footer-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

.yoo-portal-footer p {
    margin: 0;
    color: var(--yoo-gray-600);
    font-size: 14px;
}

/* Dashboard Overview */
.yoo-overview-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
    padding: 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 32px;
    margin-bottom: 32px;
}

.yoo-overview-user {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1 1 300px;
    min-width: 260px;
}

.yoo-overview-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #c3c3c3;
}

.yoo-overview-text h2 {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 700;
    color: #5A5A59;
}

.yoo-overview-text p {
    margin: 0;
    color: #6c7781;
    font-size: 15px;
}

.yoo-overview-stats {
    flex: 1 1 520px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.yoo-stat-box {
    position: relative;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border: 1px solid transparent;
}

.yoo-stat-box.yoo-stat-gray {
    background: #f4f5f7;
    border-color: #e8eaed;
}

.yoo-stat-box.yoo-stat-yellow {
    background: #ffefd3;
    border-color: #ffe3b2;
}

.yoo-stat-box.yoo-stat-green {
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.yoo-stat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.yoo-stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #5A5A59;
    line-height: 1;
}

.yoo-stat-label {
    font-size: 13px;
    color: #6c7781;
    font-weight: 500;
}

.yoo-stat-btn {
    display: inline-block;
    padding: 8px 16px;
    background: var(--yoo-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: var(--yoo-transition);
}

.yoo-stat-btn:hover {
    background: var(--yoo-primary-dark);
    transform: translateY(-1px);
}

/* Section */
.yoo-section {
    margin-bottom: 32px;
}

.yoo-section h2 {
    font-size: 20px;
    font-weight: 700;
    color: #5A5A59;
    margin: 0 0 20px;
}

/* Programs Container */
.yoo-programs-container {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
    padding: 32px;
}

.yoo-section-title-inside {
    font-size: 22px;
    font-weight: 700;
    color: #5A5A59;
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

/* Progress Section */
.yoo-progress-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
    padding: 24px;
}

.yoo-progress-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 20px;
}

.yoo-progress-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.yoo-progress-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--yoo-primary);
}

.yoo-progress-label {
    font-size: 13px;
    color: #6c7781;
    font-weight: 500;
}

.yoo-progress-bar-wrapper {
    width: 100%;
}

.yoo-progress-bar {
    height: 40px;
    background: #f0f0f0;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.yoo-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--yoo-primary) 0%, var(--yoo-primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.5s ease;
}

.yoo-progress-text {
    color: white;
    font-weight: 700;
    font-size: 16px;
}

/* Quick Actions */
.yoo-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.yoo-action-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.yoo-action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
    border-color: var(--yoo-primary);
}

.yoo-action-card .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: var(--yoo-primary);
    margin-bottom: 16px;
}

.yoo-action-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: #5A5A59;
}

.yoo-action-card p {
    margin: 0;
    font-size: 14px;
    color: #6c7781;
}

/* Responsive */
@media (max-width: 768px) {
    .yooportal-wrapper {
        padding: 20px;
    }
    
    .yoo-overview-card {
        padding: 20px;
        gap: 20px;
    }
    
    .yoo-overview-stats {
        grid-template-columns: 1fr;
    }
    
    .yoo-overview-avatar {
        width: 80px;
        height: 80px;
    }
    
    .yoo-overview-text h2 {
        font-size: 22px;
    }
}

/* Program Progress Cards */
.yoo-program-progress-card {
    background: #f8fafc;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.yoo-program-progress-card:last-child {
    margin-bottom: 0;
}

.yoo-program-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.yoo-program-header h3 {
    margin: 0;
    font-size: 20px;
    color: #1a1a1a;
    font-weight: 700;
}

.yoo-program-percentage {
    font-size: 28px;
    font-weight: 700;
    color: var(--yoo-primary);
}

.yoo-program-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.yoo-program-stat {
    text-align: center;
}

.yoo-program-stat .yoo-stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--yoo-primary);
    margin-bottom: 5px;
}

.yoo-program-stat .yoo-stat-label {
    display: block;
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Next Step Card - Note Style */
.dashboard-card.next-step-card {
    margin-top: 20px;
    padding: 16px 20px;
    background: #fffbf0;
    border: 1px solid #ffe4a3;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    box-shadow: none;
}

.dashboard-card.next-step-card .card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.dashboard-card.next-step-card .card-icon {
    width: 24px;
    height: 24px;
    background: #ffc107;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dashboard-card.next-step-card .card-icon i {
    font-size: 14px;
    color: white;
}

.dashboard-card.next-step-card h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #856404;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-card.next-step-card .card-content {
    padding: 0;
}

.dashboard-card.next-step-card .next-step-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px;
    line-height: 1.4;
}

.dashboard-card.next-step-card .next-step-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.yoo-next-step.yoo-completed {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
}

.yoo-next-step.yoo-completed .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* No Programs */
.yoo-no-programs {
    background: #f8fafc;
    padding: 60px 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.yoo-no-programs .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #ccc;
    margin-bottom: 15px;
}

.yoo-no-programs p {
    margin: 0;
    color: #666;
    font-size: 16px;
}
