/* ===== Tab Navigation Styles ===== */
.tab-nav-container {
    background: rgb(43, 43, 43);
    border-radius: .5rem;
    padding: .5rem;
    margin: 2rem 0;
    box-shadow: 0 5px 1rem rgba(255, 255, 255, 0.1);
    display: flex;
    width: fit-content;
    justify-self: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    position: sticky;
    top: 80px;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.tab-nav-item {
    padding: 0.75rem 1.5rem;
    border-radius: .5rem;
    font-weight: 600;
    color: var(--white-text);
    cursor: pointer;
    transition: all .25s ease;
    white-space: nowrap;
    font-size: 0.95rem;
}

.tab-nav-item:hover {
    background: var(--light-jade);
    color: var(--jade);
}

.tab-nav-item.active {
    background: var(--jade);
    color: white;
}

/* ===== Tab Content Styles ===== */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Section Headers within Tabs ===== */
.tab-section h2 {
    text-align: left;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--white-text);
    border-left: 5px solid var(--jade);
    padding-left: 1rem;
}

.tab-section h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: var(--white-text);
}

.tab-section p {
    color: whitesmoke;
}

/* ===== Role sub-nav buttons ===== */
.sub-nav {
    display: flex;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 1rem;
}

.role-tab-btn {
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

/* ===== Role-Specific Feature Grids ===== */
.role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.role-card {
    background: linear-gradient(135deg, #0081a8 0%, #004280 100%);
    padding: 1.5rem;
    border-radius: 10px;
    color: white;
}

.role-card.manager {
    background: linear-gradient(135deg, #00A86B 0%, #00804F 100%);
}

.role-card.director {
    background: linear-gradient(135deg, #ffe600 0%, #ffd000 100%);
}

.role-card.admin {
    background: linear-gradient(135deg, #a80000 0%, #800000 100%);
}

.role-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* ===== Feature Boxes ===== */
.feature-grid {
    display: grid;
    grid-template-columns: 2fr 2fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-item {
    background: rgb(43, 43, 43);
    padding: 1.5rem 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-item h4 {
    color: var(--jade);
    font-size: 1.25rem;
}

.feature-item p {
    color: whitesmoke;
}

.feature-icon {
    font-size: 2rem;
    color: var(--jade);
    margin-bottom: 1rem;
}

.feature-img {
    display: block;
}

/* ===== Code Snippet Styling ===== */
.code-snippet {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1rem;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.code-comment {
    color: #6a9955;
}

/* ===== Architecture Diagram Placeholder ===== */
.architecture-diagram {
    background: #f0f0f0;
    border: 2px dashed var(--gray-text);
    padding: 3rem;
    text-align: center;
    border-radius: 10px;
    margin: 2rem 0;
}

/* ===== Metrics Display ===== */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(1rem, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.metric-card {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.metrics-grid .metric-card {
    background: rgb(43, 43, 43);
}

.metrics-grid .metric-label {
    color: whitesmoke;
}

.metric-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--jade);
}

.metric-label {
    color: var(--gray-text);
    margin-top: 0.5rem;
    font-size: 1.25rem;
}

/* ===== Timeline Styling ===== */
.timeline {
    position: relative;
    padding-left: 2rem;
    margin: 2rem 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.4rem;
    top: 0.25rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--jade);
    border: 2px solid white;
}

.timeline-date {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--jade);
    margin-bottom: 0.5rem;
    display: flex;
    align-content: center;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .tab-nav-container {
        top: 70px;
        border-radius: 20px;
        padding: 0.25rem;
    }

    .tab-nav-item {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

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