
    body {
        margin: 0;
        background: #f8f9fa;
    }
    .green {
        color: green;
        font-weight: bold;
    }

    .red {
        color: red;
        font-weight: bold;
    }

    .upload-group {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 10px 0;
    }

    form {
        display: inline-block;
        margin: 0;
    }

    .path-nav {
        padding: 15px;
        border: 1px solid #ddd;
        font-family: Arial, sans-serif;
    }

    .path-nav a {
        color: #007bff;
        text-decoration: none;
    }

    .path-nav a:hover {
        text-decoration: underline;
    }

    .file-list {
        max-width: none;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        background: white;
    }

    .file-item {
        display: flex;
        align-items: center;
        padding: 8px;
        margin: 2px 0;
        background: #f5f5f5;
        border-radius: 3px;
        gap: 10px;
    }

    .file-item:hover {
        background: #e0e0e0;
    }

    .file-item::before {
        content: '📄';
        margin-right: 8px;
    }

    .file-item.dir::before {
        content: '📁';
    }

    .file-name {
        flex-grow: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .permissions {
        display: inline-flex;
        gap: 8px;
        margin-left: auto;
    }

    .permissions span {
        margin-right: 0;
    }
    .file-content {
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

    .file-content-header {
        padding: 12px 20px;
        background: #f8f9fa;
        border-bottom: 1px solid #e0e0e0;
        font-weight: bold;
        color: #2c3e50;
        border-radius: 8px 8px 0 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .file-content pre {
        margin: 0;
        padding: 20px;
        font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
        font-size: 14px;
        line-height: 1.6;
        color: #333;
        white-space: pre-wrap;
        word-break: break-word;
        overflow-x: auto;
        max-height: 70vh;
    }

    pre::-webkit-scrollbar {
        height: 8px;
        background: #f8f9fa;
    }

    pre::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 4px;
    }

    .file-type-icon {
        margin-right: 8px;
        font-size: 1.1em;
    }

    .code-line {
    display: flex;
    padding: 2px 0;
    }

    .line-number {
        color: #999;
        min-width: 40px;
        padding-right: 12px;
        text-align: right;
        user-select: none;
        border-right: 1px solid #eee;
        margin-right: 12px;
    }
    code {
        white-space: pre-wrap;
        word-break: break-word;
        flex-grow: 1;
    }

    .file-size {
    width: 120px;
    text-align: right;
    color: #666;
    font-family: monospace;
    }

    .size-dir {
        color: #007bff;
        font-weight: bold;
    }
    
    .save-btn {
        background: #4CAF50;
        color: white;
        border: none;
        padding: 5px 15px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
    }
    
    .save-btn:hover {
        background: #45a049;
    }
    
    .file-editor {
        width: 100%;
        height: 500px;
        font-family: monospace;
        padding: 15px;
        box-sizing: border-box;
        border: none;
        resize: vertical;
        background: #f8f8f8;
        border-top: 1px solid #e0e0e0;
    }
    
    .save-form {
        display: none;
    }
    
    .file-actions {
        display: flex;
        gap: 5px;
        margin-left: 10px;
    }
    
    .delete-btn, .rename-btn {
        padding: 3px 8px;
        border: none;
        border-radius: 3px;
        cursor: pointer;
        font-size: 12px;
    }
    
    .delete-btn {
        background: #f44336;
        color: white;
    }
    
    .rename-btn {
        background: #2196F3;
        color: white;
    }