* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #2b8707 0%, #43ad18 100%);
    min-height: 100vh;
    padding: 20px;
}

#menu-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    padding-bottom: 60px;
}

header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.user-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-selector label {
    font-size: 0.9rem;
    font-weight: 500;
}

.user-selector select {
    padding: 8px 16px;
    font-size: 0.95rem;
    border: none;
    border-radius: 6px;
    background: white;
    color: #2c3e50;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-selector select:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.user-selector select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

#breadcrumbs-wrapper {
    background: #f8f9fa;
    padding: 15px 30px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

#breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    flex: 1;
}

.search-control {
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
}

.search-control input {
    padding: 8px 35px 8px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 0.9rem;
    min-width: 200px;
    transition: all 0.2s;
}

.search-control input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-control button {
    position: absolute;
    right: 5px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.search-control button:hover {
    background: #c0392b;
}

.breadcrumb-item {
    display: inline-block;
    padding: 5px 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 0.9rem;
    color: #555;
}

.breadcrumb-item:hover {
    background: #e0e0e0;
    color: #2c3e50;
}

.breadcrumb-item.active {
    background: #667eea;
    color: white;
    cursor: default;
}

.breadcrumb-separator {
    color: #999;
    padding: 0 5px;
}

#menu-content {
    padding: 30px;
    min-height: 400px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.menu-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #667eea;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.menu-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.menu-item-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
}

.menu-item-icon img {
    max-width: 32px;
    max-height: 32px;
}

.menu-item-content {
    flex: 1;
}

.menu-item-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.menu-item-type {
    font-size: 0.85rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.menu-item-path {
    font-size: 0.8rem;
    color: #95a5a6;
    margin-top: 2px;
    font-style: italic;
}

.search-results-header {
    padding: 10px 0 20px 0;
    font-size: 1rem;
    color: #555;
    font-weight: 500;
}

.menu-item-indicator {
    font-size: 1.2rem;
    color: #bdc3c7;
    font-weight: bold;
}

.empty-message,
.error {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
    font-size: 1.1rem;
}

.error {
    color: #e74c3c;
}

#ardi-link {
    position: absolute;
    bottom: 10px;
    left: 20px;
    font-size: 0.75rem;
}

#ardi-link a {
    color: #7f8c8d;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

#ardi-link a:hover {
    color: #667eea;
    text-decoration: underline;
}

#type-filters {
    position: absolute;
    bottom: 10px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    flex-wrap: wrap;
    max-width: 400px;
    justify-content: flex-end;
}

.type-filters-label {
    color: #7f8c8d;
    font-weight: 500;
    margin-right: 5px;
}

.type-filter {
    padding: 4px 10px;
    border: 1px solid;
    border-radius: 12px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    opacity: 0.4;
    background: white;
}

.type-filter.active {
    opacity: 1;
    background: white;    
}

.type-filter:hover {
    opacity: 0.7;
    transform: scale(1.05);
}

.folder-popup-menu {
    position: fixed;
    background: white;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 8px;
    z-index: 10000;
    min-width: 250px;
    max-width: 400px;
    max-height: 500px;
    overflow-y: auto;
}

.popup-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
    border-radius: 6px;
    border-left: 3px solid #667eea;
    margin-bottom: 6px;
    transition: all 0.2s;
    background: #f8f9fa;
}

.popup-menu-item:last-child {
    margin-bottom: 0;
}

.popup-menu-item:hover {
    background: #e8f0fe;
    transform: translateX(4px);
}

.popup-menu-item-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 6px;
    flex-shrink: 0;
}

.popup-menu-item-icon img {
    max-width: 24px;
    max-height: 24px;
}

.popup-menu-item-content {
    flex: 1;
    min-width: 0;
}

.popup-menu-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.popup-menu-item-type {
    font-size: 0.75rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

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

    header {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .user-selector {
        width: 100%;
        justify-content: center;
    }

    #breadcrumbs-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .search-control {
        width: 100%;
    }

    .search-control input {
        width: 100%;
        min-width: unset;
    }

    #menu-content {
        padding: 20px;
    }

    #ardi-link {
        position: static;
        padding: 10px 20px;
        text-align: center;
        border-top: 1px solid #e0e0e0;
        background: #f8f9fa;
    }

    #type-filters {
        position: static;
        padding: 10px 20px;
        justify-content: center;
        max-width: 100%;
        border-top: 1px solid #e0e0e0;
        background: #f8f9fa;
		color: black;
    }
}
