﻿/* Container Layouts */
.packages-container {
    width: 100%;
    background-color: #1a1a1a;
}

.nuget-section-content {
    background-color: #1a1a1a;
}

.nuget-fullscreen-layout {
    display: flex;
    padding: 1rem;
    background-color: #1a1a1a;
    height: 100%;
}

    .nuget-fullscreen-layout .packages-container {
        flex: 1;
    }

    .nuget-fullscreen-layout .nuget-packages-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
        gap: 1rem;
        padding: 1rem;
        max-height: calc(100vh - 200px);
    }

/* Search Bar */
.nuget-search-container {
    position: relative;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #333;
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.nuget-search-input {
    width: 90%;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    background-color: #2d2d2d;
    border: 1px solid #404040;
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 0.9rem;
}

    .nuget-search-input:focus {
        outline: none;
        border-color: var(--primary-color);
    }

/* Packages List */
.nuget-packages-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

/* Package Items - Panel View */
.panel-section .package-item {
    background-color: #2d2d2d;
    border: 1px solid #404040;
    border-radius: 4px;
    margin: 0.25rem 0;
    transition: all 0.2s ease;
}

    .panel-section .package-item:hover {
        background-color: #363636;
        border-color: #505050;
    }

.panel-section .package-content {
    padding: 0.25rem 0.5rem;
}

.panel-section .package-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
}

.panel-section .package-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex: 1;
}

.panel-section .package-icon {
    color: #888;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.panel-section .package-title {
    color: #e0e0e0;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.panel-section .package-version {
    color: #888;
    font-size: 0.8rem;
    margin-left: 0.5rem;
    white-space: nowrap;
}

.panel-section .package-actions {
    display: flex;
    gap: 0.25rem;
    margin-left: 0.5rem;
}

/* Package Items - Fullscreen View */
.nuget-fullscreen-layout .package-item {
    background-color: #2d2d2d;
    border: 1px solid #404040;
    border-radius: 8px;
    margin: 0;
    height: 100%;
    transition: all 0.2s ease;
}

    .nuget-fullscreen-layout .package-item:hover {
        background-color: #363636;
        border-color: #505050;
    }

.nuget-fullscreen-layout .package-content {
    padding: 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.nuget-fullscreen-layout .package-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.nuget-fullscreen-layout .package-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.nuget-fullscreen-layout .package-title {
    font-size: 1rem;
    font-weight: 500;
    color: #e0e0e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nuget-fullscreen-layout .package-actions {
    display: flex;
    gap: 0.25rem;
    margin-left: 0.5rem;
}

/* Package Metadata */
.nuget-package-metadata {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #404040;
}

.nuget-metadata-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #888;
    font-size: 0.9rem;
    white-space: nowrap;
}

    .nuget-metadata-item i {
        font-size: 0.85rem;
    }

/* Buttons */
.nuget-icon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background-color: #363636;
    border: 1px solid #404040;
    color: #888;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

    .nuget-icon-button:hover {
        background-color: #404040;
        border-color: #505050;
        color: #e0e0e0;
    }

    .nuget-icon-button i {
        font-size: 0.8rem;
    }

/* Expand Button */
.nuget-expand-button {
    margin-left: auto;
    background: transparent;
    border: none;
    color: #e0e0e0;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

    .nuget-expand-button:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

/* Scrollbars */
.nuget-packages-list::-webkit-scrollbar {
    width: 5px;
}

.nuget-packages-list::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 0px;
}

.nuget-packages-list::-webkit-scrollbar-thumb {
    background: #404040;
    border-radius: 0px;
}

    .nuget-packages-list::-webkit-scrollbar-thumb:hover {
        background: #505050;
    }

.nuget-tab-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

    .nuget-tab-button:hover {
        background-color: #2d2d2d;
        color: #e0e0e0;
    }

    .nuget-tab-button.active {
        background-color: #2d2d2d;
        color: #e0e0e0;
    }
/* Responsive Adjustments */
.nuget-fullscreen-layout .nuget-packages-list {
    grid-template-columns: 1fr;
}

.nuget-metadata-item {
    font-size: 0.8rem;
}

.nuget-tabs {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #333;
    background-color: #1a1a1a;
}

.nuget-tab-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

    .nuget-tab-button:hover {
        background-color: #2d2d2d;
        color: #e0e0e0;
    }

    .nuget-tab-button.active {
        background-color: #2d2d2d;
        color: #e0e0e0;
    }
/* Search Results Loading */
.nuget-search-nuget-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    color: #888;
}

    .nuget-search-nuget-loading i {
        font-size: 1.5rem;
    }
/* Package Description */
.nuget-package-description {
    margin-top: 0.5rem;
    color: #888;
    font-size: 0.9rem;
    line-height: 1.4;
}

.nuget-primary-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color, #007acc);
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

    .nuget-primary-button:hover {
        background-color: var(--primary-color-dark, #005c99);
    }

    .nuget-primary-button i {
        font-size: 0.8rem;
    }

.nuget-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    color: #888;
    text-align: center;
}

    .nuget-no-results i {
        font-size: 2rem;
    }

.nuget-package-metadata {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #404040;
}

.nuget-package-description {
    margin-top: 0.75rem;
    color: #888;
    font-size: 0.9rem;
    line-height: 1.5;
    max-height: 4.5em;
    overflow: hidden;
    position: relative;
}

    .nuget-package-description::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 70%;
        height: 1.5em;
        background: linear-gradient(to right, transparent, #2d2d2d);
    }

/* VERSION SELECTOR MODAL */
.nuget-version-selector {
    padding: 1rem;
    text-align: center;
}

    .nuget-version-selector h3 {
        margin-bottom: 1rem;
    }

.version-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.version-item {
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

    .version-item:hover {
        background-color: #007bff;
        color: #fff;
    }

.nuget-modal-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.nuget-secondary-button {
    background-color: #6c757d;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .nuget-secondary-button:hover {
        background-color: #5a6268;
    }

/* LOADING INDICATOR */
.nuget-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    font-size: 0.9rem;
    color: #666;
}
