/* Explorer Panel Styles */

.explorer-container {
    width: 250px;
    background-color: #252526;
    height: 100%;
    overflow: auto;
    user-select: none;
    border-right: 1px solid #3c3c3c;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: width 0.3s ease, transform 0.3s ease;
    z-index: 10;
  }
  
  .directory {
    list-style-type: none;
    flex: 1;
    overflow: auto;
    padding: 8px 0;
  }
  
  .directory-item {
    padding: 0;
    position: relative;
  }
  
  .item-content {
    display: flex;
    align-items: center;
    padding: 3px 0 3px 20px;
    cursor: pointer;
    color: #cccccc;
    font-size: 13px;
  }
  
  .item-content:hover {
    background-color: #2a2d2e;
  }
  
  .item-content.selected {
    background-color: #37373d;
  }
  
  .icon {
    margin-right: 6px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  
  .folder-icon::before {
    content: "📁";
  }
  
  .folder-open-icon::before {
    content: "📂";
  }
  
  .file-icon::before {
    content: "📄";
  }
  
  .js-icon::before {
    content: "📜";
  }
  
  .html-icon::before {
    content: "🌐";
  }
  
  .css-icon::before {
    content: "🎨";
  }
  
  .expand-icon {
    position: absolute;
    left: 6px;
    top: 6px;
    width: 10px;
    height: 10px;
    color: #838383;
    font-size: 10px;
    text-align: center;
    line-height: 1;
  }
  
  .directory-children {
    margin-left: 12px;
    height: 0;
    overflow: hidden;
    transition: height 0.2s ease;
  }
  
  .directory-children.expanded {
    height: auto;
  }
  
  .create-new {
    padding: 3px 0 3px 20px;
    margin-left: 12px;
  }
  
  .create-input, .edit-input {
    width: calc(100% - 30px);
    background-color: #3c3c3c;
    border: 1px solid #5e5e5e;
    padding: 3px 6px;
    color: #ffffff;
    outline: none;
    font-size: 13px;
  }
  
  .input-controls {
    display: flex;
    gap: 6px;
    margin-top: 5px;
  }
  
  .input-btn {
    background-color: #0e639c;
    border: none;
    color: white;
    padding: 3px 8px;
    font-size: 11px;
    cursor: pointer;
    border-radius: 2px;
  }
  
  .input-btn:hover {
    background-color: #1177bb;
  }
  
  .input-btn.cancel {
    background-color: #3a3a3a;
  }
  
  .input-btn.cancel:hover {
    background-color: #505050;
  }
  
  /* Context Menu */
  .context-menu {
    position: absolute;
    background-color: #252526;
    border: 1px solid #454545;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    z-index: 100;
    min-width: 150px;
  }
  
  .context-menu-item {
    padding: 6px 10px;
    cursor: pointer;
    font-size: 12px;
  }
  
  .context-menu-item:hover {
    background-color: #2a2d2e;
  }
  
  .context-menu-separator {
    height: 1px;
    background-color: #454545;
    margin: 4px 0;
  }
  
  /* Horizontal resizer */
  .h-resizer {
    width: 6px;
    background-color: #2d2d2d;
    cursor: col-resize;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 250px;
    z-index: 9;
    transition: background-color 0.2s ease;
  }
  
  .h-resizer:hover {
    background-color: #3c3c3c;
  }
  
  .h-resizer::after {
    content: "⋮";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #888;
  }
  
  /* File type indicators */
  .file-type-indicator {
    display: inline-block;
    padding: 2px 5px;
    font-size: 10px;
    border-radius: 3px;
    margin-left: 6px;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
  }
  
  .file-type-html {
    background-color: #e44d26;
  }
  
  .file-type-css {
    background-color: #264de4;
  }
  
  .file-type-js {
    background-color: #f7df1e;
    color: #333;
  }

  .actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
  }
  
  .action-btn {
    background-color: #333;
    border: 1px solid #555;
    border-radius: 4px;
    color: #c5c5c5;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 5px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 24px;
  }

  .mobile-close-btn {
    display: none;
    background: none;
    border: none;
    color: #bbbbbb;
    font-size: 20px;
    cursor: pointer;
    padding: 0 5px;
  }
  
  .mobile-close-btn:hover {
    color: white;
  }