/* --- PORTAL SHARED STYLES (UPDATED) --- */
.portal-container {
    padding: 120px 5% 50px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.portal-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.client-name {
    font-family: var(--font-heading);
    color: var(--quantum-cyan);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.project-title {
    font-family: var(--font-main);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* --- SECTIONS LAYOUT --- */
.section-wrapper {
    width: 100%;
}

.section-label {
    font-family: var(--font-mono);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
    border-left: 2px solid var(--quantum-magenta);
    padding-left: 10px;
}

/* --- DASHBOARD GRID --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.dashboard-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 242, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card-title {
    font-family: var(--font-mono);
    color: var(--quantum-magenta);
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Specific Cards Layout */
/* Top Row: Focus & Resources */
.card-focus {
    grid-column: span 8;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
    border-color: rgba(255, 255, 255, 0.15);
}

.card-resources {
    grid-column: span 4;
}

/* Middle Row: Timeline & Logs */
.card-timeline {
    grid-column: span 6;
    min-height: 250px;
}

.card-log {
    grid-column: span 6;
}

/* Bottom: Finance (Foldable/Discrete) */
.finance-section {
    grid-column: span 12;
    margin-top: 2rem;
    border-top: 1px dashed var(--glass-border);
    padding-top: 2rem;
}

.finance-toggle {
    background: transparent;
    border: 1px solid var(--mouse-gray, #444);
    color: #888;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    transition: var(--transition);
}

.finance-toggle:hover {
    border-color: var(--quantum-gold);
    color: var(--quantum-gold);
}

.finance-content {
    display: none;
    margin-top: 1rem;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.finance-content.visible {
    display: grid;
    animation: fadeIn 0.4s ease;
}

/* List Styles */
.resource-list,
.agreement-list,
.task-list {
    list-style: none;
    overflow-y: auto;
    /* max-height: 250px; managed by cards usually */
}

.resource-list li,
.agreement-list li,
.task-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.resource-link {
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
    font-family: var(--font-main);
}

.resource-link:hover {
    color: var(--quantum-cyan);
    padding-left: 5px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.task-check {
    width: 18px;
    height: 18px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: var(--quantum-cyan);
    font-size: 0.8rem;
}

.agreement-date {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--quantum-gold);
    min-width: 80px;
}

.agreement-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 968px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .card-focus,
    .card-resources,
    .card-timeline,
    .card-log,
    .finance-content {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }
}