﻿/* App Dashboard Layout */
.app-page-container {
    min-height: 100vh;
    background: #FCFAF7;
    display: flex;
    flex-direction: column;
}

/* App Header Styles */
.app-header {
    background: #FFFFFF;
    border: 3px solid #3C3D55;
    border-radius: 16px;
    margin: 32px auto;
    width: calc(100% - 64px);
    max-width: 1376px;
}

.app-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    gap: 52px;
}

.app-logo {
    width: 150px;
    display: flex;
    align-items: center;
}

.app-logo-text {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #20213D;
}

.app-main-nav {
    display: flex;
    gap: 52px;
}

.app-nav-link {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 30px;
    color: grey;
    text-decoration: none;
}
.app-nav-link:hover {
    color: grey;
}

    .app-nav-link.active {
        color: #20213D;
        position: relative;
    }

    .app-nav-link.active::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 8px;
        height: 8px;
        background-color: #1E88E5; /* Blue circle */
        border-radius: 50%;
        display: block;
    }

.app-user-controls {
    display: flex;
    gap: 16px;
}

.app-icon-button {
    width: 42px;
    height: 42px;
    border-radius: 100px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-user-button {
    background: #E7EDFB;
}

/* App Main Content */
.app-main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-grow: 1;
}

.app-welcome-text {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 38px;
    color: #20213D;
    margin-bottom: 32px;
}

/* App Content Grid */
.app-content-grid {
    display: grid;
    grid-template-columns: 1fr 316px;
    gap: 32px;
    margin-bottom: 32px;
}

/* App Card Styles */
.app-card {
    background: #FFFFFF;
    border: 3px solid #3C3D55;
    border-radius: 12px;
    padding: 24px;
}

.app-card-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 30px;
    color: #20213D;
    margin-bottom: 8px;
}

.app-card-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    line-height: 18px;
    color: #3C3D55;
    margin-bottom: 16px;
}

/* App Monthly Digest Section */
.app-digest-section {
    position: relative;
}

.app-digest-items {
    position: relative;
    padding-left: 42px;
}

.app-lock-line {
    position: absolute;
    left: 20px;
    top: 42px;
    bottom: 79px;
    width: 2px;
    border: 1px dashed #ABACB6;
}

.app-digest-item {
    position: relative;
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
}

.app-lock-icon {
    position: absolute;
    left: -42px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    margin-top: 25px;
}

    .app-lock-icon.unlocked {
        background: #F1E9E2;
    }

    .app-lock-icon.locked {
        background: #E3D4C4;
        opacity: 0.5;
    }

.app-digest-content {
    flex: 1;
    background: #FCFAF7;
    border-radius: 12px;
    padding: 12px;
    margin-left: 20px;
}

.app-item-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0px;
    gap: 4px;
    height: 18px;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
}

.app-item-type {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #667085;
}

    .app-item-type svg {
        margin-right: 4px;
    }

.app-view-all {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #667085;
    text-decoration: none;
}

.app-item-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    color: #20213D;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-logo-icon {
    width: 150px;
    max-width: 150px;
    height: 27.5px;
}

.app-arrow-icon {
    font-size: 20px;
    color: #20213D;
    width: 20px;
    height: 20px;
}

.app-item-description {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    line-height: 18px;
    color: #58596D;
    margin: 0;
}

.app-store-access .app-item-type {
    color: #747485;
}

.app-store-access .app-item-title {
    color: #58596D;
}

.app-store-access .app-arrow-icon {
    color: #58596D;
}

.app-store-access .app-item-description {
    color: #747485;
}

/* App Quick Links Section */
.app-quick-links {
    position: relative;
}

    .app-quick-links .app-card {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

.app-links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
    margin-top: 16px;
    flex: 1;
}

.app-quick-link-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #FCFAF7;
    border-radius: 12px;
    text-decoration: none;
    gap: 8px;
}

    .app-quick-link-item:hover {
        transform: scale(1.02);
        border-color: #6B7280;
    }

.app-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.app-mini-icon {
    width: 10px;
    height: 9px;
    object-fit: contain;
}

.app-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 4px;
}

    .app-link-icon.green {
        background: #C6D8D2;
    }

    .app-link-icon.gray {
        background: #C7C8CE;
    }

    .app-link-icon.red {
        background: #E6BAB3;
    }

    .app-link-icon.blue {
        background: #D0DBF7;
    }

.app-link-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .app-link-content h3 {
        font-family: 'Inter', sans-serif;
        font-weight: 700;
        font-size: 16px;
        line-height: 24px;
        color: #20213D;
        margin: 0;
    }

    .app-link-content p {
        font-family: 'Inter', sans-serif;
        font-size: 12px;
        line-height: 18px;
        color: #3C3D55;
        margin: 0;
    }

/* App Recommended Section */
.app-recommended-section {
    margin-top: 32px;
    border-top: 1px solid #3C3D55;
    padding-top: 32px;
}

.app-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

    .app-section-header h2 {
        font-family: 'Inter', sans-serif;
        font-weight: 600;
        font-size: 20px;
        line-height: 30px;
        color: #20213D;
        margin: 0;
    }

.app-nav-controls {
    display: flex;
    gap: 16px;
}

/* App Navigation Arrows */
.app-navigation-arrows {
    display: flex;
    gap: 16px;
    align-items: center;
}

.app-nav-arrow {
    width: 24px;
    height: 24px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .app-nav-arrow:hover {
        opacity: 0.8;
    }

.app-nav-button {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.app-recommended-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    position: relative;
}

.app-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

    .app-section-header h2 {
        font-family: 'Inter', sans-serif;
        font-weight: 600;
        font-size: 20px;
        line-height: 30px;
        color: #20213D;
        margin: 0;
    }

.app-recommended-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* App Article Card Components */
.app-article-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
    gap: 4px;
    width: 337px;
    height: 198px;
    background: #FFFFFF;
    border: 3px solid #3C3D55;
    border-radius: 12px;
    flex: none;
    order: 0;
    flex-grow: 0;
    cursor: pointer;
}

    .app-article-card:hover {
        transform: translateY(-2px);
    }

.app-article-icon {
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #EADED2;
    border-radius: 4px;
    margin-bottom: 8px;
}

    .app-article-icon i {
        font-size: 24px;
        color: #000000;
    }

.app-article-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.app-article-category {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    line-height: 18px;
    color: #58596D;
}

.app-article-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: #20213D;
    margin: 0;
}

/* App Footer */
.app-footer {
    margin-top: auto;
    padding: 0 120px;
}

.app-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 0;
    border-top: 2px solid #C7C8CE;
}

.app-footer-text {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #3C3D55;
    margin: 0;
}

.app-footer-nav {
    display: flex;
    gap: 16px;
}

    .app-footer-nav a {
        font-family: 'Inter', sans-serif;
        font-size: 16px;
        line-height: 24px;
        color: #3C3D55;
        text-decoration: none;
    }

        .app-footer-nav a:hover {
            text-decoration: underline;
        }

/* Mobile Navigation Toggle Button */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 1001;
}

.mobile-nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #3C3D55;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .app-header {
        margin: 16px auto;
        width: calc(100% - 32px);
    }

    .app-header-content {
        padding: 16px;
        gap: 20px;
    }

    .app-main-nav {
        gap: 30px;
    }

    .app-nav-link {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }

    .app-header-content {
        justify-content: space-between;
    }

    .app-main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #FFFFFF;
        flex-direction: column;
        padding: 80px 20px 20px;
        gap: 20px;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }

    .app-main-nav.show {
        left: 0;
    }

    .app-nav-link {
        font-size: 20px;
        padding: 10px 0;
    }

    .app-nav-link.active::after {
        bottom: -4px;
    }

    .app-content-grid {
        grid-template-columns: 1fr;
    }

    .app-recommended-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .app-article-card {
        width: 100%;
    }

    .app-welcome-text {
        font-size: 24px;
        line-height: 32px;
    }

    .app-header {
        position: sticky;
        top: 16px;
        z-index: 100;
    }

    /* Overlay when mobile menu is open */
    .mobile-nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }

    .mobile-nav-overlay.show {
        display: block;
    }
}

@media (max-width: 576px) {
    .app-header {
        margin: 10px auto;
        width: calc(100% - 20px);
    }

    .app-user-controls {
        gap: 8px;
    }

    .app-icon-button {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .app-recommended-grid {
        grid-template-columns: 1fr;
    }

    .app-footer {
        padding: 0 20px;
    }

    .app-footer-content {
        flex-direction: column;
        gap: 16px;
    }

    .app-digest-items {
        padding-left: 32px;
    }

    .app-lock-line {
        left: 15px;
    }

    .app-lock-icon {
        left: -32px;
        width: 32px;
        height: 32px;
    }

    .app-digest-content {
        margin-left: 10px;
    }
}

/* User Dropdown Styles */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 1000;
}

.user-dropdown-content.show {
    display: block;
}

.user-dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
}

.user-dropdown-content a:hover {
    background-color: #f8f9fa;
}

.dropdown-divider {
    height: 1px;
    background-color: #e9ecef;
    margin: 4px 0;
}

.logout-link {
    color: #dc3545 !important;
}
