/* AgriNovel App Ecosystem Styles */
:root {
    --aae-bg: rgba(20, 20, 20, 0.8);
    --aae-glass: rgba(255, 255, 255, 0.1);
    --aae-border: rgba(255, 255, 255, 0.2);
    --aae-text: #fff;
    --aae-glow-default: #00d084;
}

#aae-ecosystem-container {
    background: var(--aae-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid var(--aae-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    color: var(--aae-text);
    font-family: 'Roboto', sans-serif;
}

/* Header */
.aae-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--aae-border);
}

.aae-profile-widget {
    display: flex;
    align-items: center;
    gap: 10px;
}

.aae-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--aae-glow-default);
    object-fit: cover;
}

.aae-welcome {
    font-size: 14px;
    font-weight: bold;
}

.aae-login-btn {
    background: #fff;
    color: #333;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Grid */
.aae-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 20px;
    justify-items: center;
}

/* App Item */
.aae-app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--aae-text);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 80px;
}

.aae-app-item:hover {
    transform: scale(1.1);
}

.aae-app-item:active {
    transform: scale(0.95);
}

.aae-app-icon {
    width: 60px;
    height: 60px;
    background: var(--aae-glass);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    border: 1px solid var(--aae-border);
    box-shadow: 0 0 15px var(--app-color, var(--aae-glow-default));
    overflow: hidden;
}

.aae-app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.aae-app-title {
    font-size: 11px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .aae-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .aae-app-item {
        width: 100%;
    }

    .aae-app-icon {
        width: 50px;
        height: 50px;
    }
}