/* Project Management Page Styles */
:root {
    --pm-primary: #0030DB;
    --pm-accent: #EF4444; 
    --pm-bg-light: #F8FAFC;
    --pm-text-dark: #0F172A;
    --pm-text-muted: #64748B;
    --pm-border: #E2E8F0;
    --pm-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.overflow-visible { overflow: visible !important; }

/* Hero Section */
.pm-hero-floating {
    position: relative;
    padding: 180px 0; /* More top/bottom breathing room */
    background: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(var(--pm-border) 1px, transparent 1px),
                      linear-gradient(90deg, var(--pm-border) 1px, transparent 1px);
    background-size: 100px 100px; /* Larger, cleaner grid */
    opacity: 0.3; /* Subtler */
    z-index: 0;
}

.hero-container-rel {
    position: relative;
    padding: 80px 0;
    min-height: 600px;
    z-index: 10;
    /* Ensure no horizontal scroll but allow widgets to be absolute */
}

/* Central Info - Strictly max 800px to avoid widget hits */
.hero-main-info {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
    text-align: center;
}

.hero-main-info h1 {
    font-size: 64px;
    font-weight: 800;
    color: var(--pm-text-dark);
    line-height: 1.1;
    margin-bottom: 35px;
    letter-spacing: -1.5px;
}

#typing-text {
    color: var(--pm-primary);
}

.user-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #FFFBEB;
    border: 1px solid #FEF3C7;
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #92400E;
}

.user-rating-badge .stars {
    color: #F59E0B;
    display: flex;
    gap: 2px;
}

@keyframes blink-cursor {
    from, to { border-color: transparent }
    50% { border-color: var(--pm-primary) }
}

.text-blue { color: var(--pm-primary); }

.hero-checklist {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 45px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--pm-text-dark);
}

.check-item i { color: #10B981; }

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 65px;
}

.btn-signup, .btn-request {
    padding: 22px 48px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-signup {
    background: var(--pm-primary);
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 48, 219, 0.3);
}

.btn-signup:hover {
    background: #001A72;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 48, 219, 0.4);
}

.btn-request {
    background: #F8FAFC;
    color: var(--pm-text-dark);
    border: 1px solid var(--pm-border);
}

.btn-request:hover { background: #F1F5F9; border-color: #CBD5E1; }

/* Social Proof */
.hero-social-proof {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.proof-label {
    font-size: 12px;
    font-weight: 800;
    color: #94A3B8;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.proof-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.proof-item {
    font-size: 17px;
    font-weight: 700;
    color: #475569;
}

.proof-divider {
    width: 1px;
    height: 16px;
    background: #CBD5E1;
}

/* Floating Widgets - Strict Outer Spacing */
.widget {
    position: absolute;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--pm-border);
    padding: 24px;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Position them based on container edges (Container is 1400px) */
/* Push them to the absolute left/right of the 1400px container */
.w-tl { top: -60px; left: -120px; width: 240px; }
.w-ml { top: 220px; left: -160px; width: 280px; }

.w-tr { top: -40px; right: -120px; width: 250px; }
.w-br { bottom: -40px; right: -100px; width: 260px; }

/* Hide/Reposition widgets on smaller screens to prevent overlap */
@media (max-width: 1600px) {
    .w-tl { left: 0px; }
    .w-ml { left: 0px; }
    .w-tr { right: 0px; }
    .w-br { right: 0px; }
}

@media (max-width: 1400px) {
    .widget { position: relative; margin: 20px auto; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important; width: 100% !important; max-width: 400px; }
    .hero-container-rel { display: flex; flex-direction: column; align-items: center; }
}

/* Widget Components */
.widget-header {
    font-size: 14px;
    font-weight: 800;
    color: var(--pm-text-dark);
    margin-bottom: 15px;
    text-align: left;
}

/* Board Widget */
.task-item-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #334155;
}

.tag {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.tag.done { background: #DCFCE7; color: #166534; }
.tag.review { background: #FEF9C3; color: #854D0E; }
.tag.live { background: #DBEAFE; color: #1E40AF; }

/* Blocker Widget */
.widget-blocker {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #FFF1F2;
    border-color: #FECDD3;
}

.blocker-icon {
    width: 40px;
    height: 40px;
    background: #EF4444;
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.blocker-info strong { display: block; font-size: 14px; color: #991B1B; }
.blocker-info span { font-size: 12px; color: #B91C1C; }

/* Employee Report */
.report-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.small-avatar { width: 32px; height: 32px; border-radius: 50%; }

.bar-bg { flex: 1; height: 8px; background: #F1F5F9; border-radius: 4px; }
.bar-fill { height: 100%; border-radius: 4px; }
.bar-fill.blue { background: var(--pm-primary); }
.bar-fill.orange { background: #F59E0B; }

/* Health Widget */
.health-meta { margin-bottom: 15px; }
.health-score { font-size: 32px; font-weight: 800; color: #10B981; }
.health-label { font-size: 12px; font-weight: 600; color: #64748B; }
.health-trend { font-size: 13px; font-weight: 700; color: #10B981; }

/* Velocity Widget */
.wave-container { height: 40px; margin-bottom: 10px; }
.velocity-val { font-size: 24px; font-weight: 800; color: var(--pm-text-dark); }

/* Prototype Dashboard Sections */
.pm-prototype-showcase {
    padding: 140px 0;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.prototype-intro {
    max-width: 800px;
    margin: 0 auto 100px;
    text-align: center;
}

.prototype-intro .section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: #E0F2FE;
    color: #0369A1;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 24px;
}

.prototype-intro h2 {
    font-size: 56px;
    font-weight: 800;
    color: var(--pm-text-dark);
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.prototype-intro p {
    font-size: 20px;
    color: var(--pm-text-muted);
    line-height: 1.6;
}

/* App Shell Mockup */
.prototype-app-shell {
    max-width: 1300px; /* Aligned with Jesto standard */
    margin: 0 auto;
    background: #fff;
    border-radius: 32px;
    box-shadow: 0 50px 120px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--pm-border);
    display: flex;
    min-height: 850px;
    overflow: hidden;
    position: relative;
    z-index: 5;
}

.proto-sidebar {
    width: 90px;
    background: #001A72;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.proto-logo-small {
    width: 44px;
    height: 44px;
    background: var(--pm-primary);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 80px;
}

.proto-nav {
    display: flex;
    flex-direction: column;
    gap: 36px;
    flex: 1;
}

.nav-item {
    color: rgba(255, 255, 255, 0.4);
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-item.active, .nav-item:hover { color: #fff; transform: scale(1.1); }

.proto-user-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Main Content Area */
.proto-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.proto-header {
    height: 100px;
    padding: 0 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--pm-border);
}

.proto-search {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--pm-text-muted);
    font-size: 16px;
}

.proto-header-actions {
    display: flex;
    align-items: center;
    gap: 40px;
}

.project-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.btn-proto-invite {
    background: var(--pm-primary);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
}

/* Dashboard Grid */
.proto-grid {
    flex: 1;
    padding: 48px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 32px;
    background: #F8FAFC;
}

.proto-tile {
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    border: 1px solid var(--pm-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
}

.proto-tile:hover { transform: translateY(-5px); }

.tile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.tile-header h3 { font-size: 18px; font-weight: 800; color: var(--pm-text-dark); }
.status-indicator { font-size: 10px; font-weight: 800; color: #10B981; background: rgba(16, 185, 129, 0.1); padding: 4px 10px; border-radius: 100px; }

/* Gantt Tile Styles */
.tile-gantt { grid-column: span 2; }

.gantt-viz { display: flex; flex-direction: column; gap: 24px; padding: 10px 0; }
.gantt-row { display: flex; align-items: center; position: relative; height: 32px; }
.g-label { width: 120px; font-size: 14px; font-weight: 600; color: var(--pm-text-muted); }
.g-bar { position: absolute; height: 14px; border-radius: 100px; transition: width 1s ease; }
.g-blue { background: var(--pm-primary); }
.g-purple { background: #A855F7; }
.g-blue-dark { background: #001A72; }
.g-milestone { position: absolute; color: var(--pm-accent); font-size: 16px; margin-top: -2px; }

/* Kanban Tile Styles */
.tile-kanban { grid-row: span 2; }
.kanban-cols { display: flex; flex-direction: column; gap: 20px; }
.k-card { background: #FFF; border-radius: 16px; padding: 20px; border: 1px solid var(--pm-border); box-shadow: 0 2px 8px rgba(0,0,0,0.02); }
.k-card p { font-size: 15px; font-weight: 700; color: var(--pm-text-dark); margin-bottom: 16px; }
.k-footer { display: flex; justify-content: space-between; align-items: center; }
.k-tag { font-size: 10px; font-weight: 800; padding: 3px 10px; border-radius: 6px; text-transform: uppercase; }
.k-tag.high { background: #FFE4E6; color: #E11D48; }
.k-tag.medium { background: #FEF3C7; color: #D97706; }
.k-footer img { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; }

/* Resource Tile Styles */
.resource-viz { display: flex; flex-direction: column; gap: 24px; }
.res-info { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; font-weight: 700; color: var(--pm-text-dark); }
.res-bar { height: 10px; background: #F1F5F9; border-radius: 10px; overflow: hidden; }
.res-fill { height: 100%; background: var(--pm-primary); border-radius: 10px; }
.res-fill.purple { background: #A855F7; }

/* Stats Tile Styles */
.stats-viz { text-align: center; padding: 30px 0; }
.stat-main { font-size: 48px; font-weight: 800; color: var(--pm-primary); margin-bottom: 12px; }
.stat-main i { font-size: 24px; color: #10B981; }
.stats-viz p { font-size: 14px; color: var(--pm-text-muted); font-weight: 600; }

/* Hover Animations for Charts */
.proto-tile:hover .g-bar { filter: brightness(1.2); }
.proto-tile:hover .res-fill { filter: brightness(1.2); }

@media (max-width: 1300px) {
    .prototype-app-shell { margin: 0 20px; }
}

@media (max-width: 1100px) {
    .proto-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .tile-gantt, .tile-kanban { grid-column: span 1; grid-row: span 1; }
    .prototype-app-shell { flex-direction: column; min-height: auto; }
    .proto-sidebar { width: 100%; height: 80px; flex-direction: row; padding: 0 30px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .proto-logo-small { margin-bottom: 0; margin-right: 40px; }
    .proto-nav { flex-direction: row; justify-content: center; gap: 40px; }
    .proto-user-avatar { margin-left: auto; }
}

@media (max-width: 768px) {
    .prototype-intro h2 { font-size: 38px; }
    .proto-grid { padding: 24px; gap: 24px; }
    .proto-header { padding: 0 24px; height: 80px; }
    .proto-header-actions { display: none; }
}
