/* App Page Layout */
.app-container {
    min-height: 100vh;
}

/* Title Bar */
.app-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem 0;
}

.app-title-bar-left {
    display: flex;
    align-items: center;
}

.app-title-bar-logo-link {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.app-title-bar-logo-link:hover {
    opacity: 0.8;
}

.app-title-bar-mascot {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-title-bar-mascot svg {
    width: 100%;
    height: 100%;
}

.app-title-bar-company-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.app-title-bar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.app-title-bar-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--surface-primary);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 24px var(--shadow-color);
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

/* Reset button defaults when button element has this class */
button.app-title-bar-button {
    background-color: var(--surface-primary);
    border: 1px solid var(--border-color);
    outline: none;
}

.app-title-bar-button:hover {
    background-color: var(--surface-strong);
    transform: scale(1.05);
}

.app-title-bar-button-logout:hover {
    background-color: color-mix(in srgb, #b91c1c 16%, var(--surface-primary));
}

.app-title-bar-button i {
    font-size: 1.125rem;
}

.app-main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Page Header */
.app-header {
    text-align: center;
    margin-bottom: 3rem;
}

.app-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.app-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

/* App Grid */
.app-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* App Card */
.app-card {
    background-color: var(--surface-primary);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 18px 40px var(--shadow-color);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: calc(100vw/5);
    justify-content: center;
    height: -webkit-fill-available;
}

.app-card:hover {
    transform: translateY(-4px);
    background-color: var(--surface-secondary);
    box-shadow: 0 24px 44px var(--shadow-color);
}

.app-card-disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.app-card-disabled:hover {
    transform: none;
    background-color: var(--surface-primary);
    box-shadow: 0 18px 40px var(--shadow-color);
}

/* App Card Icon */
.app-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    font-size: 2.5rem;
    color: white;
}

.app-card-icon i {
    display: block;
}

.app-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0;
}

.app-card-description {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Coming Soon Badge */
.app-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #fbbf24;
    color: #111827;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dark .app-card-disabled {
    opacity: 0.6;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {

    .app-title-bar {
        padding: 0.75rem 1rem;
    }

    .app-title-bar-mascot {
        width: 48px;
        height: 48px;
    }

    .app-title-bar-company-name {
        font-size: 1.25rem;
    }

    .app-title-bar-button {
        width: 36px;
        height: 36px;
    }

    .app-title-bar-button i {
        font-size: 1rem;
    }

    .app-main-content {
        padding: 1.5rem 1rem;
    }

    .app-title {
        font-size: 2rem;
    }

    .app-subtitle {
        font-size: 1rem;
    }

    .app-grid {
        gap: 4px;
    }

    .app-card {
        padding: 1.5rem;
        width: calc(100vw/3);
    }

    .app-card-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .app-card-title {
        font-size: 1.25rem;
    }

    .app-card-description {
        font-size: 0.875rem;
    }
}


