/* Files Gallery - Sidebar Component Styles */

.fg-sidebar {
    width: var(--sidebar-width);
    height: 100%;
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    border-radius: 0 0 0 var(--border-radius);
    margin: 0;
    flex-shrink: 0;
    transition: width 0.3s ease;
    min-width: 250px;
    max-width: 25vw;
}

/* Sidebar Header */
.fg-sidebar-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fg-sidebar-header h2 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fg-sidebar-refresh {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.fg-sidebar-refresh:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(180deg);
}

/* Storage Info */
.fg-storage-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-small);
    padding: 12px;
    margin-top: 10px;
}

.fg-storage-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    margin: 8px 0;
    overflow: hidden;
}

.fg-storage-used {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.fg-storage-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    display: flex;
    justify-content: space-between;
}

/* Navigation Menu */
.fg-sidebar-nav {
    margin-bottom: 25px;
}

.fg-nav-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 5px;
    border-radius: var(--border-radius-small);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.fg-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.fg-nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.fg-nav-item i {
    width: 20px;
    margin-right: 12px;
    text-align: center;
}

.fg-nav-item span {
    font-size: 14px;
    font-weight: 500;
}

.fg-nav-badge {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

/* Folder Tree */
.fg-folder-tree {
    color: white;
}

.fg-folder-tree-title {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    padding-left: 5px;
}

.fg-tree-item {
    position: relative;
    margin-bottom: 2px;
}

.fg-tree-item-content {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
}

.fg-tree-item-content:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.fg-tree-item-content.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.fg-tree-toggle {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
    transition: transform 0.3s ease;
}

.fg-tree-toggle i {
    font-size: 10px;
}

.fg-tree-item.expanded > .fg-tree-item-content .fg-tree-toggle {
    transform: rotate(90deg);
}

.fg-tree-icon {
    margin-right: 8px;
    font-size: 14px;
}

.fg-tree-label {
    font-size: 14px;
    flex: 1;
}

.fg-tree-count {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 5px;
}

.fg-tree-children {
    margin-left: 20px;
    display: none;
}

.fg-tree-item.expanded > .fg-tree-children {
    display: block;
}

/* Quick Actions */
.fg-sidebar-actions {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.fg-action-button {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-small);
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.fg-action-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.fg-action-button i {
    font-size: 16px;
}