/**
 * Info Panel CSS
 * Styles for the right-side info panel and resizable panels
 */

/* Info Panel Container */
.info-panel {
    width: 220px;
    background-color: #f5f5f7;
    border-left: 1px solid #e0e0e0;
    padding: 15px;
    overflow-y: auto;
    display: none;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 12px;
    color: #333;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    z-index: 10;
}

.info-panel.visible {
    display: flex;
}

/* Info Panel Header */
.info-panel-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.info-panel-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.info-panel-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    flex: 1;
}

/* Info Panel Content */
.info-panel-section {
    margin-bottom: 15px;
}

.info-panel-section-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: #666;
    font-size: 11px;
    text-transform: uppercase;
}

.info-panel-row {
    display: flex;
    margin-bottom: 8px;
}

.info-panel-label {
    width: 80px;
    color: #666;
}

.info-panel-value {
    flex: 1;
    color: #333;
}

/* Panel Resizers */
.panel-resizer {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 5px;
    cursor: col-resize;
    z-index: 10;
    background-color: transparent;
    transition: background-color 0.2s;
}

.panel-resizer:hover,
.panel-resizer.resizing {
    background-color: rgba(0, 122, 255, 0.2);
}

.sidebar-resizer {
    right: 0;
}

.info-panel-resizer {
    left: 0;
}

/* Adjust the main container to accommodate the info panel */
.window-content {
    position: relative;
    display: flex;
    flex-direction: row;
    height: calc(100% - 38px); /* Subtract header height */
    overflow: hidden;
}

.folder-view-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
}

/* When info panel is visible */
.window-content.with-info-panel .folder-view {
    width: calc(100% - 220px);
}
