* { margin: 0; padding: 0; box-sizing: border-box; }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            background: #f5f5f7;
            padding: 20px;
            line-height: 1.6;
        }
        
        .container {
            max-width: 1400px;
            margin: 0 auto;
        }
        
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        
        h1 {
            color: #1d1d1f;
        }
        
        .view-toggle {
            display: flex;
            gap: 4px;
            background: #e5e5e7;
            padding: 4px;
            border-radius: 8px;
        }
        
        .view-btn {
            padding: 6px;
            border: none;
            background: transparent;
            border-radius: 6px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #1d1d1f;
            transition: all 0.2s;
        }

        .view-btn svg {
            stroke: #1d1d1f;
            fill: #1d1d1f;
        }
        
        .view-btn.active {
            background: white;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }

        .view-btn.active svg {
            stroke: #0071e3;
            fill: #0071e3;
        }
        
        .search-section {
            background: white;
            padding: 20px;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            margin-bottom: 30px;
        }
        
        .search-input {
            width: 100%;
            padding: 12px 16px;
            border: 2px solid #d2d2d7;
            border-radius: 8px;
            font-size: 16px;
            transition: border-color 0.2s;
        }
        
        .search-input:focus {
            outline: none;
            border-color: #0071e3;
        }
        
        .search-results {
            margin-top: 20px;
        }
        
        .search-result-item {
            padding: 12px;
            background: #fafafa;
            border-radius: 6px;
            margin-bottom: 8px;
            font-size: 14px;
        }
        
        .search-result-disk {
            font-weight: 600;
            color: #0071e3;
            margin-bottom: 4px;
        }
        
        .search-result-path {
            color: #1d1d1f;
            font-family: 'Menlo', 'Monaco', monospace;
            font-size: 12px;
        }
        
        .stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .stat-card {
            background: white;
            padding: 20px;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        
        .stat-card h3 {
            font-size: 14px;
            color: #86868b;
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .stat-card .value {
            font-size: 32px;
            font-weight: 600;
            color: #1d1d1f;
        }
        
        .disk-grid {
            display: grid;
            gap: 20px;
        }
        
        .disk-card {
            background: white;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            overflow: hidden;
            transition: transform 0.2s;
        }
        
        .disk-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 16px rgba(0,0,0,0.15);
        }
        
        .disk-header {
            padding: 20px;
            border-bottom: 1px solid #e5e5e7;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .disk-name {
            font-size: 18px;
            font-weight: 600;
            color: #1d1d1f;
        }
        
        .disk-meta {
            display: flex;
            gap: 15px;
            font-size: 14px;
            color: #86868b;
        }
        
        .disk-info {
            padding: 20px;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 15px;
        }
        
        .info-item label {
            display: block;
            font-size: 12px;
            color: #86868b;
            margin-bottom: 4px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .info-item .value {
            font-size: 16px;
            font-weight: 500;
            color: #1d1d1f;
        }
        
        .folders {
            padding: 20px;
            border-top: 1px solid #e5e5e7;
            background: #fafafa;
        }
        
        .folders h4 {
            font-size: 14px;
            color: #86868b;
            margin-bottom: 12px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .folder-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }
        
        .folder-list {
          display: flex;
          gap: 18px;
          flex-flow: wrap;
        }

        .folder-item {
          display: flex;
          align-items: center;
          padding: 16px;
          background: white;
          border-radius: 20px;
          font-size: 14px;
          flex: 1 1 calc(33.333% - 18px);
          cursor: pointer;
        }
        
        .folder-info {
            display: flex;
            gap: 12px;
            align-items: center;
            flex: 1;
        }
        
        .folder-name {
            color: #1d1d1f;
            font-weight: 500;
        }
        
        .folder-size {
            color: #86868b;
        }
        
        .folder-checkbox {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 12px;
            color: #86868b;
        }
        
        .folder-checkbox input[type="checkbox"] {
            width: 18px;
            height: 18px;
            cursor: pointer;
        }
        
        .actions {
            padding: 20px;
            border-top: 1px solid #e5e5e7;
            display: flex;
            gap: 15px;
            align-items: center;
        }
        
        .btn {
            padding: 8px 16px;
            border-radius: 6px;
            border: none;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s;
        }
        
        .btn-primary {
            background: #0071e3;
            color: white;
        }
        
        .btn-primary:hover {
            background: #0077ed;
        }
        
        .btn-secondary {
            background: #e5e5e7;
            color: #1d1d1f;
        }
        
        .btn-secondary:hover {
            background: #d2d2d7;
        }
        
        .notes {
            flex: 1;
        }
        
        .notes input {
            width: 100%;
            padding: 8px 12px;
            border: 1px solid #d2d2d7;
            border-radius: 6px;
            font-size: 14px;
        }

        .save-indicator {
            position: fixed;
            top: 20px;
            right: 20px;
            background: #34c759;
            color: white;
            padding: 12px 20px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            opacity: 0;
            transition: opacity 0.3s;
            pointer-events: none;
            z-index: 1000;
        }

        .save-indicator.show {
            opacity: 1;
        }

        /* Table view styles */
        .disk-table {
            background: white;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            overflow: hidden;
            display: none;
        }

        .disk-table.active {
            display: block;
        }

        .disk-grid.active {
            display: grid;
        }

        .disk-grid:not(.active) {
            display: none;
        }

        table {
            width: 100%;
            border-collapse: collapse;
        }

        thead {
            background: #fafafa;
            border-bottom: 2px solid #e5e5e7;
        }

        th {
            padding: 16px;
            text-align: left;
            font-size: 12px;
            color: #86868b;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 600;
        }

        td {
            padding: 16px;
            border-bottom: 1px solid #f0f0f0;
            font-size: 14px;
        }

        tbody tr:hover {
            background: #fafafa;
        }

        .table-disk-name {
            font-weight: 600;
            color: #1d1d1f;
        }

        .table-folders {
            font-size: 12px;
            color: #86868b;
        }

        .table-folder-row {
            display: flex;
            justify-content: space-between;
            padding: 4px 0;
        }

        .table-actions {
            display: flex;
            gap: 8px;
        }

        .table-actions .btn {
            padding: 6px 12px;
            font-size: 12px;
        }

        .expandable-folders {
            max-height: 105px;
            overflow: hidden;
            position: relative;
        }

        .expandable-folders.expanded {
            max-height: 100%;
        }

        .expand-btn {
            background: none;
            border: none;
            color: #0071e3;
            cursor: pointer;
            font-size: 12px;
            padding: 4px 0;
            margin-top: 4px;
        }

/* Styling for deleted disks */
.deleted-disks-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.deleted-disks-section h2 {
    color: #86868b;
    margin-bottom: 20px;
    text-align: center;
}

.deleted-disk {
    opacity: 0.6;
    pointer-events: none; /* Disable interactions */
    background-color: #f0f0f0;
    border-color: #e0e0e0;
}

.deleted-disk .btn {
    pointer-events: auto; /* Re-enable pointer events for buttons inside */
}

.deleted-disk .folder-checkbox {
    display: none; /* Hide checkboxes for deleted disks */
}

.deleted-disk input[type="text"] {
    background-color: #e0e0e0;
    border-color: #d0d0d0;
}

.deleted-disk-table {
    display: none;
}

.deleted-disk-table.active {
    display: block;
}

.deleted-disk-grid {
    display: none; /* Default to hidden */
}

.deleted-disk-grid.active {
    display: grid;
}

.deleted-disk-table.active table {
    display: table;
}

        .btn-danger {
            background: #dc3545; /* Red color for danger */
            color: white;
        }
        
        .btn-danger:hover {
            background: #c82333;
        }

        .disk-name-input,
        .table-disk-name-input {
            width: 100%;
            padding: 4px 8px;
            border: 1px solid #d2d2d7;
            border-radius: 4px;
            font-size: 16px;
            font-weight: 600;
            color: #1d1d1f;
        }

        .table-disk-name-input {
            font-size: 14px;
        }

        footer {
            position: fixed;
            bottom: 20px;
            right: 20px;
        }

        .btn-icon {
            background: #e5e5e7;
            color: #1d1d1f;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
        }

        .btn-icon.active {
            background: #0071e3;
            color: white;
        }

        .btn-icon.active svg {
            stroke: white;
        }
