body {
    background: linear-gradient(135deg,
            #0f172a 0%,
            #1e293b 50%,
            #0f172a 100%);
    color: #e2e8f0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

html {
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.header {
    background: linear-gradient(90deg, #1e293b 0%, #334155 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    padding: 1rem 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    z-index: 50;
    flex-shrink: 0;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.navbar-title {
    margin: 0;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    white-space: nowrap;
}

.logout-btn {
    background: linear-gradient(135deg,
            rgba(71, 85, 105, 0.4) 0%,
            rgba(51, 65, 85, 0.4) 100%);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: linear-gradient(135deg,
            rgba(71, 85, 105, 0.6) 0%,
            rgba(51, 65, 85, 0.6) 100%);
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.15);
}

.content {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;

    height: calc(100vh - 80px);
}

.grid-container {
    gap: 1rem;
    width: 95%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.header-section {
    margin-bottom: 2rem;
    flex-shrink: 0;
}

.header-section h2 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.subtitle {
    margin: 0;
    color: #94a3b8;
    font-size: 1rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    flex: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
    padding-bottom: 2.5rem;
}

.cards-grid::-webkit-scrollbar {
    width: 6px;
}

.cards-grid::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.1);
    border-radius: 10px;
}

.cards-grid::-webkit-scrollbar-thumb {
    background: rgba(96, 165, 250, 0.3);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.cards-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(96, 165, 250, 0.5);
}

.card {
    /* Reset button defaults */
    font-family: inherit;
    font-size: inherit;
    text-align: left;

    background: linear-gradient(135deg,
            rgba(71, 85, 105, 0.4) 0%,
            rgba(51, 65, 85, 0.4) 100%);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, #60a5fa 0%, #a78bfa 100%);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.card:hover {
    background: linear-gradient(135deg,
            rgba(71, 85, 105, 0.6) 0%,
            rgba(51, 65, 85, 0.6) 100%);
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 12px 24px rgba(96, 165, 250, 0.15);
    transform: translateY(-4px);
}

.card:hover::before {
    width: 100%;
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(96, 165, 250, 0.1);
    border: 2px solid rgba(96, 165, 250, 0.3);
    border-radius: 12px;
    color: #60a5fa;
    margin-bottom: 0.75rem;
}

.card-icon.health {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.card-icon.progression {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
    color: #a855f7;
}

.card h3 {
    margin: 0 0 0.35rem 0;
    font-size: 1.15rem;
    color: #f1f5f9;
    font-weight: 700;
}

.card p {
    margin: 0 0 0.75rem 0;
    color: #94a3b8;
    font-size: 0.9rem;
    flex: 1;
}

.card-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: #60a5fa;
    transition: all 0.3s ease;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.card:hover .card-action {
    transform: translateX(4px);
}

.card-action svg {
    stroke: currentColor;
}

@media (max-width: 768px) {
    .header {
        padding: 0.75rem 0;
    }

    .navbar-content {
        padding: 0 1rem;
    }

    .navbar-title {
        font-size: 1.2rem;
    }

    .content {
        padding: 1rem;
        height: calc(100vh - 70px);
    }

    .header-section h2 {
        font-size: 1.5rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 1.25rem;
    }
}