
:root {
    --hw-charcoal: #1e1e1e;
    --hw-dark: #2d2d2d;
    --hw-graphite: #4a4a4a;
    --hw-gray: #656f77;
    --hw-light-gray: #8c939a;
    --hw-silver: #b8bdc2;
    --hw-off-white: #f5f5f0;
    --hw-white: #ffffff;
    --hw-border: #e0e0e0;
    --hw-gold: #a89968;

    --fase0: #1e1e1e;
    --fase1: #2d2d2d;
    --fase2: #3a3a3a;
    --fase3: #4a4a4a;
    --fase4: #5a5a5a;
    --fase5: #656f77;
    --fase6: #8c939a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--hw-charcoal) 0%, var(--hw-dark) 50%, var(--hw-graphite) 100%);
    min-height: 100vh;
    color: var(--hw-white);
    line-height: 1.6;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 30px 20px;
}

header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.logo-img {
    width: 80px;
    height: 80px;
    background: var(--hw-white);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.logo-img img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.logo-fallback {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--hw-charcoal);
}

.logo-text h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--hw-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.institution {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.institution i {
    margin-right: 8px;
    color: var(--hw-silver);
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 20px 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 120px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--hw-white);
}

.stat-value.complete {
    color: var(--hw-silver);
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.team-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.team-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--hw-silver);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.team-avatar {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.team-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.team-info p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.team-hours {
    margin-left: auto;
    font-weight: 700;
    color: var(--hw-silver);
    font-size: 1rem;
}

.gantt-section {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    color: var(--hw-charcoal);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.gantt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.gantt-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hw-charcoal);
    display: flex;
    align-items: center;
    gap: 10px;
}

.gantt-title i {
    color: var(--hw-graphite);
}

.legend {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--hw-gray);
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 4px;
}

.legend-color.fase0 { background: var(--fase0); }
.legend-color.fase1 { background: var(--fase1); }
.legend-color.fase2 { background: var(--fase2); }
.legend-color.fase3 { background: var(--fase3); }
.legend-color.fase4 { background: var(--fase4); }
.legend-color.fase5 { background: var(--fase5); }
.legend-color.fase6 { background: var(--fase6); }
.legend-color.milestone {
    background: linear-gradient(135deg, var(--hw-gold), #8a7a4a);
    transform: rotate(45deg);
    width: 10px;
    height: 10px;
}

.timeline-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.timeline-table {
    width: 100%;
    min-width: 1200px;
    border-collapse: collapse;
}

.timeline-table th {
    background: var(--hw-charcoal);
    color: white;
    padding: 14px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    border: 1px solid var(--hw-dark);
    white-space: nowrap;
}

.timeline-table th.task-header {
    text-align: left;
    padding-left: 20px;
    min-width: 280px;
    width: 280px;
}

.phase-row td {
    background: linear-gradient(90deg, var(--hw-graphite), var(--hw-charcoal));
    color: white;
    font-weight: 700;
    padding: 12px 20px;
    font-size: 0.95rem;
    border: none;
}

.phase-row td i {
    margin-right: 10px;
}

.phase-hours {
    float: right;
    font-weight: 500;
    opacity: 0.9;
    background: rgba(255,255,255,0.2);
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.85rem;
}

.task-row td {
    padding: 0;
    border: 1px solid #e8e8e8;
    height: 48px;
    vertical-align: middle;
}

.task-row td:first-child {
    padding: 12px 20px;
    background: #fafafa;
    font-size: 0.9rem;
    color: #333;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.task-row td:first-child i {
    margin-right: 12px;
    color: var(--hw-graphite);
    width: 20px;
    text-align: center;
}

.task-row:hover td:first-child {
    background: #f0f4f8;
    border-left-color: var(--hw-charcoal);
}

.week-cell {
    position: relative;
    background: #fff;
    padding: 8px 4px;
}

.week-cell:nth-child(even) {
    background: #fafafa;
}

.task-bar {
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    min-width: 40px;
}

.task-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.3), transparent);
    border-radius: 6px 6px 0 0;
}

.task-bar:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    z-index: 10;
}

.milestone-marker {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--hw-gold), #8a7a4a);
    transform: rotate(45deg);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(168, 153, 104, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
}

.milestone-marker:hover {
    transform: rotate(45deg) scale(1.2);
    box-shadow: 0 6px 20px rgba(168, 153, 104, 0.6);
}

.milestone-marker i {
    transform: rotate(-45deg);
    font-size: 10px;
    color: white;
}

.hours-summary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hours-summary h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hours-summary h3 i {
    color: var(--hw-silver);
}

.hours-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hour-item {
    display: grid;
    grid-template-columns: 180px 1fr 50px;
    align-items: center;
    gap: 15px;
}

.hour-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.hour-bar {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
}

.hour-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease;
}

.hour-value {
    font-weight: 600;
    color: var(--hw-white);
    text-align: right;
}

.progress-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 30px;
}

.progress-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-title i {
    color: var(--hw-silver);
}

.progress-bar-bg {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    height: 28px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--hw-gray), var(--hw-graphite));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15px;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    transition: width 1.5s ease;
    box-shadow: 0 0 20px rgba(140, 147, 154, 0.4);
}

footer {
    text-align: center;
    padding: 25px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

footer a {
    color: var(--hw-silver);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--hw-white);
    text-decoration: underline;
}

.footer-team {
    margin-top: 10px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.tooltip {
    position: fixed;
    background: var(--hw-charcoal);
    color: white;
    border-radius: 12px;
    padding: 0;
    max-width: 300px;
    z-index: 99999;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    pointer-events: none;
    border: 2px solid var(--hw-gray);
}

.tooltip.active {
    opacity: 1;
    visibility: visible;
}

.tooltip-content {
    padding: 15px 18px;
}

.tooltip h4 {
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: var(--hw-silver);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 8px;
}

.tooltip p {
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tooltip p i {
    width: 16px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

@media (max-width: 1200px) {
    .team-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .logo-text h1 {
        font-size: 1.8rem;
    }

    .stats-grid {
        gap: 10px;
    }

    .stat-card {
        padding: 15px 20px;
        min-width: 100px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .team-section {
        grid-template-columns: 1fr;
    }

    .gantt-section {
        padding: 20px 15px;
    }

    .hour-item {
        grid-template-columns: 140px 1fr 45px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px 10px;
    }

    header {
        padding: 25px 15px;
    }

    .logo-section {
        flex-direction: column;
        gap: 15px;
    }

    .logo-text h1 {
        font-size: 1.5rem;
    }
}

@media print {
    body {
        background: white;
        color: black;
    }

    .container {
        max-width: 100%;
        padding: 10px;
    }

    header, .team-section, .hours-summary, .progress-section {
        background: #f5f5f5 !important;
        color: black !important;
        border: 1px solid #ccc;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .stat-card {
        background: white !important;
        border: 1px solid #ccc;
    }

    .stat-value, .stat-label, .logo-text h1, .team-info h4, .gantt-title {
        color: var(--hw-charcoal) !important;
    }

    .tooltip {
        display: none !important;
    }

    .task-bar, .phase-row td {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
