*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:linear-gradient(135deg,#667eea,#764ba2);min-height:100vh}#root{min-height:100vh}.loading{text-align:center;padding:2rem;color:#666;font-size:1.1rem}.login-container{display:flex;justify-content:center;align-items:center;min-height:100vh;padding:1rem}.login-box{background:#fff;border-radius:12px;padding:2.5rem;box-shadow:0 10px 40px #0003;width:100%;max-width:400px}.login-box h1{margin-bottom:1.5rem;color:#333;text-align:center;font-size:2rem}.form-group{margin-bottom:1.5rem}.form-group label{display:block;margin-bottom:.5rem;color:#555;font-weight:500}.form-group input{width:100%;padding:.75rem;border:2px solid #e0e0e0;border-radius:8px;font-size:1rem;transition:border-color .3s}.form-group input:focus{outline:none;border-color:#667eea}.error-message{background:#fee;color:#c33;padding:.75rem;border-radius:8px;margin-bottom:1rem;border:1px solid #fcc}.submit-button{width:100%;padding:.75rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:transform .2s,box-shadow .2s}.submit-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 5px 15px #667eea66}.submit-button:disabled{opacity:.6;cursor:not-allowed}.switch-mode{margin-top:1.5rem;text-align:center}.link-button{background:none;border:none;color:#667eea;cursor:pointer;text-decoration:underline;font-size:.9rem}.link-button:hover{color:#764ba2}.file-browser{min-height:100vh;background:#f5f5f5}.browser-header{background:#fff;padding:1.5rem 2rem;box-shadow:0 2px 10px #0000001a;display:flex;justify-content:space-between;align-items:center}.browser-header h1{color:#333;font-size:1.8rem}.user-info{display:flex;align-items:center;gap:1rem}.user-info span{color:#666}.logout-btn{padding:.5rem 1rem;background:#dc3545;color:#fff;border:none;border-radius:6px;cursor:pointer;font-weight:500;transition:background .2s}.logout-btn:hover{background:#c82333}.browser-content{max-width:1400px;margin:0 auto;padding:2rem}.file-upload{margin-bottom:2rem}.upload-zone{border:3px dashed #ccc;border-radius:12px;padding:3rem;text-align:center;background:#fff;cursor:pointer;transition:all .3s}.upload-zone:hover{border-color:#667eea;background:#f8f9ff}.upload-zone.dragging{border-color:#667eea;background:#f0f4ff;transform:scale(1.02)}.upload-zone.uploading{cursor:not-allowed}.upload-icon{font-size:3rem;margin-bottom:1rem}.upload-zone p{color:#666;margin:.5rem 0}.upload-hint{font-size:.9rem;color:#999}.upload-progress{width:100%}.progress-bar{width:100%;height:8px;background:#e0e0e0;border-radius:4px;overflow:hidden;margin-bottom:1rem}.progress-fill{height:100%;background:linear-gradient(90deg,#667eea,#764ba2);transition:width .3s}.upload-options{margin-top:1rem;text-align:center}.checkbox-label{display:inline-flex;align-items:center;gap:.5rem;cursor:pointer;color:#666}.checkbox-label input[type=checkbox]{width:18px;height:18px;cursor:pointer}.files-section{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 2px 10px #0000001a}.files-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}.files-header h2{color:#333;font-size:1.5rem}.refresh-btn{padding:.5rem 1rem;background:#667eea;color:#fff;border:none;border-radius:6px;cursor:pointer;font-weight:500;transition:background .2s}.refresh-btn:hover:not(:disabled){background:#5568d3}.refresh-btn:disabled{opacity:.6;cursor:not-allowed}.empty-state{text-align:center;padding:3rem;color:#999;font-size:1.1rem}.files-table-container{overflow-x:auto}.files-table{width:100%;border-collapse:collapse}.files-table thead{background:#f8f9fa}.files-table th{padding:1rem;text-align:left;font-weight:600;color:#555;border-bottom:2px solid #e0e0e0}.files-table th.sortable{cursor:pointer;-webkit-user-select:none;user-select:none;transition:background .2s}.files-table th.sortable:hover{background:#e9ecef}.files-table td{padding:1rem;border-bottom:1px solid #f0f0f0}.file-item{transition:background .2s}.file-item:hover{background:#f8f9ff}.file-item.temporary{background:#fff9e6}.file-item.temporary:hover{background:#fff5d1}.file-icon{font-size:1.5rem;text-align:center;width:50px}.file-name{font-weight:500;color:#333;max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.temp-badge{display:inline-block;margin-left:.5rem;padding:.2rem .5rem;background:#ffc107;color:#333;border-radius:4px;font-size:.75rem;font-weight:600}.file-size{color:#666}.file-date{color:#666;font-size:.9rem}.file-actions{display:flex;gap:.5rem}.action-btn{background:none;border:none;font-size:1.2rem;cursor:pointer;padding:.25rem .5rem;border-radius:4px;transition:background .2s}.action-btn:hover:not(:disabled){background:#e9ecef}.action-btn:disabled{opacity:.5;cursor:not-allowed}.file-item.renaming{background:#f0f4ff}.rename-input{display:flex;gap:.5rem;align-items:center}.rename-input input{flex:1;padding:.5rem;border:2px solid #667eea;border-radius:6px;font-size:1rem}.rename-input button{padding:.5rem 1rem;border:none;border-radius:6px;cursor:pointer;font-weight:600}.rename-input button:first-of-type{background:#28a745;color:#fff}.rename-input button:last-of-type{background:#dc3545;color:#fff}.file-viewer-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000c;display:flex;justify-content:center;align-items:center;z-index:1000;padding:2rem}.file-viewer-modal{background:#fff;border-radius:12px;width:100%;max-width:1200px;max-height:90vh;display:flex;flex-direction:column;box-shadow:0 20px 60px #0000004d}.viewer-header{padding:1.5rem;border-bottom:1px solid #e0e0e0;display:flex;justify-content:space-between;align-items:center}.viewer-header h3{color:#333;font-size:1.3rem;margin:0}.viewer-actions{display:flex;gap:.5rem}.viewer-actions button{padding:.5rem 1rem;border:none;border-radius:6px;cursor:pointer;font-weight:500;transition:background .2s}.edit-btn{background:#667eea;color:#fff}.edit-btn:hover{background:#5568d3}.save-btn{background:#28a745;color:#fff}.save-btn:hover:not(:disabled){background:#218838}.cancel-btn{background:#6c757d;color:#fff}.cancel-btn:hover{background:#5a6268}.close-btn{background:#dc3545;color:#fff}.close-btn:hover{background:#c82333}.viewer-content{flex:1;overflow:auto;padding:1.5rem;display:flex;justify-content:center;align-items:center}.viewer-image{max-width:100%;max-height:70vh;object-fit:contain}.viewer-iframe{width:100%;height:70vh;border:none}.viewer-textarea{width:100%;height:70vh;padding:1rem;border:2px solid #e0e0e0;border-radius:8px;font-family:Courier New,monospace;font-size:.9rem;resize:none}.viewer-text{width:100%;padding:1rem;background:#f8f9fa;border-radius:8px;font-family:Courier New,monospace;font-size:.9rem;white-space:pre-wrap;word-wrap:break-word;max-height:70vh;overflow:auto}.viewer-unsupported{text-align:center;padding:3rem}.viewer-unsupported p{color:#666;margin:1rem 0}.file-info{font-size:.9rem;color:#999}.download-link{display:inline-block;margin-top:1rem;padding:.75rem 1.5rem;background:#667eea;color:#fff;text-decoration:none;border-radius:8px;font-weight:500;transition:background .2s}.download-link:hover{background:#5568d3}.main-nav{background:#fff;padding:.5rem 2rem;box-shadow:0 2px 5px #0000001a;display:flex;gap:.5rem;flex-wrap:wrap}.nav-btn{padding:.75rem 1.5rem;background:#f8f9fa;border:none;border-radius:8px;cursor:pointer;font-weight:500;color:#666;transition:all .2s}.nav-btn:hover{background:#e9ecef;color:#333}.nav-btn.active{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.viewing-friend-header{background:#fff3cd;padding:1rem 2rem;margin-bottom:1rem;border-radius:8px;display:flex;align-items:center;gap:1rem}.back-btn{padding:.5rem 1rem;background:#667eea;color:#fff;border:none;border-radius:6px;cursor:pointer;font-weight:500}.back-btn:hover{background:#5568d3}.viewing-label{color:#856404;font-weight:500}.friends-section{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 2px 10px #0000001a}.friends-section h2{margin-bottom:1.5rem;color:#333}.pending-requests{margin-bottom:2rem;padding-bottom:1.5rem;border-bottom:2px solid #e0e0e0}.pending-requests h3{margin-bottom:1rem;color:#666;font-size:1.1rem}.friends-list,.pending-requests{display:flex;flex-direction:column;gap:1rem}.friend-item{display:flex;justify-content:space-between;align-items:center;padding:1rem;background:#f8f9fa;border-radius:8px;transition:background .2s}.friend-item:hover{background:#e9ecef}.friend-name{font-weight:500;color:#333;font-size:1.1rem}.friend-actions{display:flex;gap:.5rem}.accept-btn{padding:.5rem 1rem;background:#28a745;color:#fff;border:none;border-radius:6px;cursor:pointer;font-weight:500}.accept-btn:hover{background:#218838}.user-search{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 2px 10px #0000001a}.user-search h2{margin-bottom:1.5rem;color:#333}.search-box{display:flex;gap:1rem;margin-bottom:2rem}.search-input{flex:1;padding:.75rem;border:2px solid #e0e0e0;border-radius:8px;font-size:1rem}.search-input:focus{outline:none;border-color:#667eea}.search-btn{padding:.75rem 1.5rem;background:#667eea;color:#fff;border:none;border-radius:8px;cursor:pointer;font-weight:500}.search-btn:hover:not(:disabled){background:#5568d3}.search-results{margin-top:1.5rem}.users-list{display:flex;flex-direction:column;gap:1rem}.user-item{display:flex;justify-content:space-between;align-items:center;padding:1rem;background:#f8f9fa;border-radius:8px}.user-name{font-weight:500;color:#333;font-size:1.1rem}.status-badge{padding:.25rem .75rem;background:#28a745;color:#fff;border-radius:4px;font-size:.9rem;font-weight:500}.status-badge.pending{background:#ffc107;color:#333}.add-friend-btn{padding:.5rem 1rem;background:#667eea;color:#fff;border:none;border-radius:6px;cursor:pointer;font-weight:500}.add-friend-btn:hover{background:#5568d3}.pagination{display:flex;justify-content:center;align-items:center;gap:1rem;margin-top:2rem}.page-btn{padding:.5rem 1rem;background:#667eea;color:#fff;border:none;border-radius:6px;cursor:pointer}.page-btn:hover:not(:disabled){background:#5568d3}.page-btn:disabled{opacity:.5;cursor:not-allowed}.page-info{color:#666;font-weight:500}.notes-section{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 2px 10px #0000001a}.notes-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}.notes-header h2{color:#333}.create-btn{padding:.75rem 1.5rem;background:#28a745;color:#fff;border:none;border-radius:8px;cursor:pointer;font-weight:500}.create-btn:hover{background:#218838}.note-form{margin-bottom:2rem;padding:1.5rem;background:#f8f9fa;border-radius:8px}.note-title-input{width:100%;padding:.75rem;border:2px solid #e0e0e0;border-radius:8px;font-size:1.1rem;font-weight:500;margin-bottom:1rem}.note-title-input:focus{outline:none;border-color:#667eea}.note-content-input{width:100%;padding:.75rem;border:2px solid #e0e0e0;border-radius:8px;font-size:1rem;font-family:inherit;resize:vertical;margin-bottom:1rem}.note-content-input:focus{outline:none;border-color:#667eea}.note-form-actions{display:flex;gap:.5rem}.notes-list{display:flex;flex-direction:column;gap:1.5rem}.note-item{padding:1.5rem;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea}.note-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.note-title{color:#333;font-size:1.3rem;margin:0}.note-actions{display:flex;gap:.5rem}.note-content{color:#666;line-height:1.6;margin-bottom:.5rem;white-space:pre-wrap}.note-date{color:#999;font-size:.9rem}.settings-section{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 2px 10px #0000001a}.settings-section h2{margin-bottom:1.5rem;color:#333}.settings-form{display:flex;flex-direction:column;gap:1.5rem}.setting-item{padding:1rem;background:#f8f9fa;border-radius:8px}.save-settings-btn{padding:.75rem 1.5rem;background:#28a745;color:#fff;border:none;border-radius:8px;cursor:pointer;font-weight:500;font-size:1rem;align-self:flex-start}.save-settings-btn:hover:not(:disabled){background:#218838}.app-footer{background:#333;color:#fff;padding:1rem 2rem;margin-top:2rem}.footer-content{max-width:1400px;margin:0 auto}.disk-info{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.disk-label{font-weight:500}.disk-value{color:#4caf50;font-weight:600;font-size:1.1rem}.disk-separator{color:#999}.disk-total{color:#ccc}.disk-bar{flex:1;min-width:200px;height:8px;background:#555;border-radius:4px;overflow:hidden}.disk-bar-fill{height:100%;background:linear-gradient(90deg,#4caf50,#8bc34a);transition:width .3s}.disk-percent{color:#ccc;font-size:.9rem}@media (max-width: 768px){.browser-header{flex-direction:column;gap:1rem;text-align:center}.main-nav{padding:.5rem 1rem}.nav-btn{padding:.5rem 1rem;font-size:.9rem}.files-table{font-size:.9rem}.file-actions{flex-wrap:wrap}.viewer-header{flex-direction:column;gap:1rem;align-items:flex-start}.friend-item,.user-item{flex-direction:column;align-items:flex-start;gap:1rem}.friend-actions,.user-actions{width:100%;justify-content:flex-start}.search-box{flex-direction:column}.disk-info{flex-direction:column;align-items:flex-start}.disk-bar{width:100%}}.file-preview-tooltip{position:fixed;z-index:10000;background:#fff;border-radius:12px;box-shadow:0 10px 40px #0000004d;max-width:500px;min-width:300px;max-height:400px;overflow:hidden;display:flex;flex-direction:column;pointer-events:auto;animation:tooltipFadeIn .2s ease-in}@keyframes tooltipFadeIn{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.preview-header{display:flex;justify-content:space-between;align-items:center;padding:.75rem 1rem;background:#f8f9fa;border-bottom:1px solid #e0e0e0}.preview-filename{font-weight:500;color:#333;font-size:.9rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.preview-close{background:none;border:none;font-size:1.5rem;color:#666;cursor:pointer;padding:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center;line-height:1}.preview-close:hover{color:#333}.preview-content{padding:1rem;overflow:auto;max-height:350px}.preview-loading,.preview-error{padding:2rem;text-align:center;color:#666}.preview-error{color:#dc3545}.preview-image{max-width:100%;max-height:300px;object-fit:contain;display:block;margin:0 auto}.preview-text{max-height:300px;overflow:auto}.preview-text pre{margin:0;padding:.5rem;background:#f8f9fa;border-radius:4px;font-family:Courier New,monospace;font-size:.85rem;white-space:pre-wrap;word-wrap:break-word;color:#333}.preview-unsupported{text-align:center;padding:2rem;color:#666}.preview-unsupported p{margin:.5rem 0}.preview-hint{font-size:.85rem;color:#999;font-style:italic}.file-item{position:relative}
