/* File Manager Specific Styles */

.file-manager-content {
    width: 100%;
    flex: 1;
    background: #9196a3;
    padding: 8px;
}

.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 80px);
    gap: 16px;
    padding: 8px;
}

.file-item {
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 4px;
    user-select: none;
    touch-action: manipulation; /* Disable double-tap zoom */
}

.file-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.file-item.selected {
    background: var(--cde-select-bg);
}

.file-item.selected .file-name {
    color: white;
    background: var(--cde-select-bg);
}

.file-icon {
    width: 48px;
    height: 48px;
    background: var(--cde-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    
    /* Icon raised border effect */
    border: var(--cde-border-width) solid;
    border-color: var(--cde-highlight) var(--cde-shadow-dark) var(--cde-shadow-dark) var(--cde-highlight);
    box-shadow: 
        inset 1px 1px 0 var(--cde-shadow-light),
        inset -1px -1px 0 var(--cde-shadow-dark);
}

.file-icon.folder {
    /* Remove gradient/box so folders display only the image */
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.file-icon.folder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border: none;
    background: transparent;
}

.file-icon.document {
    background: linear-gradient(180deg, #e4e4e4 0%, #d4d4d4 100%);
}

.file-name {
    font-size: 11px;
    text-align: center;
    word-wrap: break-word;
    max-width: 80px;
    padding: 2px 4px;
    background: transparent;
}

/* Help Content Styles */
.help-content {
    background: white;
    padding: 0;
}

.help-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.help-sidebar {
    width: 200px;
    background: var(--cde-bg-light);
    border-right: var(--cde-border-width) solid var(--cde-shadow-dark);
    padding: 8px;
    overflow-y: auto;
}

.help-volume {
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 8px;
    padding: 4px;
}

.help-topics {
    list-style: none;
    font-size: 11px;
}

.help-topics li {
    padding: 2px 4px;
    cursor: pointer;
    margin: 1px 0;
}

.help-topics li.expanded::before {
    content: '▼ ';
    font-size: 8px;
}

.help-topics li.indent {
    padding-left: 16px;
}

.help-topics li:hover {
    background: var(--cde-select-bg);
    color: white;
}

.help-main {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: white;
}

.help-icons {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    padding: 8px;
}

.help-icon {
    font-size: 32px;
}

.help-main h2 {
    font-size: 14px;
    margin-bottom: 8px;
}

.help-main h3 {
    font-size: 12px;
    font-weight: bold;
    margin: 12px 0 8px 0;
}

.help-main p {
    font-size: 11px;
    margin: 6px 0;
    line-height: 1.4;
}

.help-main strong {
    font-weight: bold;
}

.help-links {
    list-style: none;
    margin: 8px 0 16px 16px;
}

.help-links li {
    margin: 4px 0;
    font-size: 11px;
}

.help-instruction {
    margin-left: 16px;
    font-size: 11px;
}

.help-buttons {
    display: flex;
    gap: 8px;
    padding: 8px;
    background: var(--cde-bg-light);
    border-top: var(--cde-border-width) solid var(--cde-shadow-dark);
}

/* Project Detail Content */
.project-detail-content {
    padding: 16px;
    background: white;
    font-size: 12px;
    line-height: 1.6;
    flex: 1;
}

.project-detail-content h1 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--cde-titlebar-active);
}

.project-detail-content h2 {
    font-size: 14px;
    margin: 12px 0 8px 0;
}

.project-detail-content p {
    margin: 8px 0;
}

.project-detail-content ul {
    margin-left: 24px;
    margin-top: 8px;
}

.project-detail-content li {
    margin: 4px 0;
}