Files
Oxicloud/static/css/style.css
T

2244 lines
40 KiB
CSS
Raw Normal View History

/* Reset and base styles */
2025-03-19 23:28:29 +01:00
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
body {
display: flex;
height: 100vh;
background-color: #f5f7fa;
overflow: hidden;
}
2026-02-03 17:59:04 +01:00
/* Custom scrollbar styling */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background-color: rgba(0, 0, 0, 0.2);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background-color: rgba(0, 0, 0, 0.3);
}
/* Firefox scrollbar */
* {
scrollbar-width: thin;
scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}
/* Global select styling */
select {
padding: 8px 32px 8px 12px;
border: 1px solid #e2e8f0;
border-radius: 8px;
background-color: white;
font-size: 14px;
color: #2d3748;
cursor: pointer;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 10px center;
transition: border-color 0.15s ease, box-shadow 0.15s ease;
font-family: inherit;
}
select:hover {
border-color: #cbd5e0;
}
select:focus {
outline: none;
border-color: #ff5e3a;
box-shadow: 0 0 0 3px rgba(255, 94, 58, 0.1);
}
/* Sidebar */
2025-03-19 23:28:29 +01:00
.sidebar {
width: 250px;
background-color: #2a3042;
color: #fff;
display: flex;
flex-direction: column;
height: 100%;
flex-shrink: 0;
}
.logo-container {
padding: 20px;
display: flex;
align-items: center;
margin-bottom: 20px;
}
.logo {
width: 40px;
height: 40px;
background-color: #ff5e3a;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin-right: 10px;
}
.logo svg {
width: 24px;
height: 24px;
fill: white;
}
.app-name {
font-size: 18px;
font-weight: bold;
color: white;
}
.nav-menu {
display: flex;
flex-direction: column;
flex-grow: 1;
padding: 0 15px;
}
.nav-item {
display: flex;
align-items: center;
padding: 12px 15px;
margin-bottom: 5px;
border-radius: 8px;
cursor: pointer;
color: white;
font-size: 16px;
}
.nav-item:hover {
background-color: #3a4157;
}
.nav-item.active {
background-color: #374e65;
}
.nav-item i {
margin-right: 15px;
width: 20px;
text-align: center;
}
/* Storage indicator */
2025-03-19 23:28:29 +01:00
.storage-container {
margin: 20px 15px;
background-color: #374e65;
border-radius: 8px;
padding: 15px;
}
.storage-title {
text-align: center;
margin-bottom: 10px;
font-size: 14px;
}
.storage-bar {
height: 10px;
background-color: #6b7e8f;
border-radius: 5px;
overflow: hidden;
margin-bottom: 10px;
}
.storage-fill {
height: 100%;
background-color: #ff5e3a;
2025-04-09 00:21:20 +02:00
width: 0%; /* Will be set dynamically via JavaScript */
2025-03-19 23:28:29 +01:00
}
.storage-info {
text-align: center;
font-size: 12px;
color: #f5f5f5;
}
/* Main content */
2025-03-19 23:28:29 +01:00
.main-content {
flex-grow: 1;
display: flex;
flex-direction: column;
overflow: hidden;
}
/* Top bar */
2025-03-19 23:28:29 +01:00
.top-bar {
height: 70px;
2026-02-03 17:59:04 +01:00
min-height: 70px;
max-height: 70px;
2025-03-19 23:28:29 +01:00
background-color: white;
border-bottom: 1px solid #e6e6e6;
display: flex;
align-items: center;
padding: 0 30px;
justify-content: space-between;
2026-02-03 17:59:04 +01:00
flex-shrink: 0;
2025-03-19 23:28:29 +01:00
}
.search-container {
flex-grow: 1;
2026-02-03 17:59:04 +01:00
max-width: 600px;
2025-03-19 23:28:29 +01:00
position: relative;
margin-right: 20px;
2025-03-27 01:13:34 +01:00
display: flex;
align-items: center;
2025-03-19 23:28:29 +01:00
}
.search-container input {
width: 100%;
2026-02-03 17:59:04 +01:00
padding: 12px 50px 12px 44px;
border-radius: 12px;
border: 2px solid #e2e8f0;
background-color: #f8fafc;
2025-03-19 23:28:29 +01:00
font-size: 14px;
2026-02-03 17:59:04 +01:00
height: 46px;
color: #1a202c;
transition: all 0.2s ease;
}
.search-container input:hover {
border-color: #cbd5e0;
background-color: #fff;
}
.search-container input:focus {
outline: none;
border-color: #ff5e3a;
background-color: #fff;
box-shadow: 0 0 0 4px rgba(255, 94, 58, 0.1);
}
.search-container input::placeholder {
color: #a0aec0;
2025-03-19 23:28:29 +01:00
}
.search-icon {
position: absolute;
2026-02-03 17:59:04 +01:00
left: 16px;
2025-03-19 23:28:29 +01:00
top: 50%;
transform: translateY(-50%);
2026-02-03 17:59:04 +01:00
color: #a0aec0;
2025-03-19 23:28:29 +01:00
font-size: 16px;
2026-02-03 17:59:04 +01:00
pointer-events: none;
transition: color 0.2s ease;
}
.search-container input:focus + .search-icon,
.search-container:focus-within .search-icon {
color: #ff5e3a;
2025-03-19 23:28:29 +01:00
}
2025-03-27 01:13:34 +01:00
.search-button {
2026-02-03 17:59:04 +01:00
position: absolute;
right: 6px;
top: 50%;
transform: translateY(-50%);
background: linear-gradient(135deg, #ff5e3a 0%, #ff2d55 100%);
2025-03-27 01:13:34 +01:00
color: white;
border: none;
2026-02-03 17:59:04 +01:00
border-radius: 10px;
2025-03-27 01:13:34 +01:00
width: 36px;
height: 36px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
2026-02-03 17:59:04 +01:00
transition: all 0.2s ease;
box-shadow: 0 2px 8px rgba(255, 94, 58, 0.3);
2025-03-27 01:13:34 +01:00
}
.search-button:hover {
2026-02-03 17:59:04 +01:00
transform: translateY(-50%) scale(1.05);
box-shadow: 0 4px 12px rgba(255, 94, 58, 0.4);
}
.search-button:active {
transform: translateY(-50%) scale(0.98);
}
.search-button i {
font-size: 14px;
2025-03-27 01:13:34 +01:00
}
/* Styles for search results */
2025-03-27 01:13:34 +01:00
.search-results-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 0;
margin-bottom: 15px;
border-bottom: 1px solid #eee;
width: 100%;
}
.search-results-header h3 {
margin: 0;
font-size: 16px;
color: #555;
}
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 40px;
text-align: center;
color: #888;
width: 100%;
}
2025-03-19 23:28:29 +01:00
.user-controls {
display: flex;
align-items: center;
2026-02-03 17:59:04 +01:00
gap: 12px;
2025-03-19 23:28:29 +01:00
}
2025-03-20 09:22:31 +01:00
.logout-btn {
2026-02-03 17:59:04 +01:00
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
background-color: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 10px;
2025-03-20 09:22:31 +01:00
color: #64748b;
cursor: pointer;
2026-02-03 17:59:04 +01:00
font-size: 16px;
transition: all 0.2s ease;
2025-03-20 09:22:31 +01:00
}
.logout-btn:hover {
2026-02-03 17:59:04 +01:00
background-color: #fef2f2;
border-color: #fecaca;
color: #ef4444;
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
2025-03-20 09:22:31 +01:00
}
2026-02-03 17:59:04 +01:00
.logout-btn:active {
transform: translateY(0);
}
/* Language Selector - Custom Dropdown */
2025-03-19 23:28:29 +01:00
.language-selector {
2026-02-03 17:59:04 +01:00
position: relative;
2025-03-19 23:28:29 +01:00
margin-right: 15px;
2026-02-03 17:59:04 +01:00
}
.language-selector-toggle {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 14px;
2025-03-19 23:28:29 +01:00
background-color: #f0f3f7;
2026-02-03 17:59:04 +01:00
border: 1px solid #e2e8f0;
border-radius: 50px;
2025-03-19 23:28:29 +01:00
cursor: pointer;
font-size: 14px;
2026-02-03 17:59:04 +01:00
font-weight: 500;
color: #4a5568;
transition: all 0.2s ease;
user-select: none;
}
.language-selector-toggle:hover {
background-color: #e2e8f0;
border-color: #cbd5e0;
}
.language-selector-toggle i {
font-size: 14px;
color: #718096;
}
.language-selector-toggle .lang-code {
font-weight: 600;
color: #2d3748;
}
.language-selector-toggle .dropdown-arrow {
font-size: 10px;
color: #718096;
transition: transform 0.2s ease;
margin-left: 2px;
}
.language-selector.open .dropdown-arrow {
transform: rotate(180deg);
}
.language-selector-dropdown {
position: absolute;
top: calc(100% + 8px);
right: 0;
min-width: 160px;
background-color: white;
border-radius: 12px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
border: 1px solid #e2e8f0;
opacity: 0;
visibility: hidden;
transform: translateY(-10px);
transition: all 0.2s ease;
z-index: 1000;
overflow: hidden;
}
.language-selector.open .language-selector-dropdown {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
.language-option {
2025-03-19 23:28:29 +01:00
display: flex;
align-items: center;
2026-02-03 17:59:04 +01:00
gap: 10px;
padding: 12px 16px;
cursor: pointer;
font-size: 14px;
color: #4a5568;
transition: background-color 0.15s ease;
2025-03-19 23:28:29 +01:00
}
2026-02-03 17:59:04 +01:00
.language-option:hover {
background-color: #f7fafc;
}
.language-option.active {
background-color: #fff5f3;
color: #ff5e3a;
}
.language-option .lang-flag {
font-size: 18px;
line-height: 1;
}
.language-option .lang-name {
flex: 1;
}
.language-option .lang-check {
color: #ff5e3a;
font-size: 12px;
opacity: 0;
}
.language-option.active .lang-check {
opacity: 1;
2025-03-19 23:28:29 +01:00
}
.user-avatar {
width: 40px;
height: 40px;
background-color: #ff5e3a;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-weight: bold;
}
/* Content area */
2025-03-19 23:28:29 +01:00
.content-area {
flex-grow: 1;
padding: 20px;
2026-02-03 17:59:04 +01:00
overflow-y: scroll;
scrollbar-gutter: stable;
2025-03-19 23:28:29 +01:00
}
.page-title {
font-size: 24px;
font-weight: bold;
margin-bottom: 20px;
color: #2d3748;
}
.actions-bar {
display: flex;
justify-content: space-between;
margin-bottom: 20px;
}
.action-buttons {
display: flex;
2026-02-03 17:59:04 +01:00
gap: 12px;
2025-03-19 23:28:29 +01:00
}
.btn {
2026-02-03 17:59:04 +01:00
padding: 12px 24px;
border-radius: 12px;
2025-03-19 23:28:29 +01:00
border: none;
cursor: pointer;
display: flex;
align-items: center;
2026-02-03 17:59:04 +01:00
justify-content: center;
2025-03-19 23:28:29 +01:00
font-size: 14px;
2026-02-03 17:59:04 +01:00
font-weight: 500;
gap: 8px;
transition: all 0.2s ease;
}
.btn i {
font-size: 15px;
2025-03-19 23:28:29 +01:00
}
.btn-primary {
2026-02-03 17:59:04 +01:00
background: linear-gradient(135deg, #ff5e3a 0%, #ff2d55 100%);
2025-03-19 23:28:29 +01:00
color: white;
2026-02-03 17:59:04 +01:00
box-shadow: 0 4px 15px rgba(255, 94, 58, 0.3);
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(255, 94, 58, 0.4);
}
.btn-primary:active {
transform: translateY(0);
box-shadow: 0 2px 10px rgba(255, 94, 58, 0.3);
2025-03-19 23:28:29 +01:00
}
.btn-secondary {
2026-02-03 17:59:04 +01:00
background-color: #f8fafc;
color: #4a5568;
border: 2px solid #e2e8f0;
}
.btn-secondary:hover {
background-color: #edf2f7;
border-color: #cbd5e0;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.btn-secondary:active {
transform: translateY(0);
background-color: #e2e8f0;
}
.btn-danger {
background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
color: white;
box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}
.btn-danger:active {
transform: translateY(0);
box-shadow: 0 2px 10px rgba(239, 68, 68, 0.3);
2025-03-19 23:28:29 +01:00
}
2026-02-03 17:59:04 +01:00
/* View Toggle Buttons */
2025-03-19 23:28:29 +01:00
.view-toggle {
display: flex;
2026-02-03 17:59:04 +01:00
gap: 6px;
padding: 4px;
background-color: #f0f3f7;
border-radius: 12px;
border: 1px solid #e2e8f0;
2025-03-19 23:28:29 +01:00
}
.toggle-btn {
2026-02-03 17:59:04 +01:00
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 36px;
background-color: transparent;
2025-03-19 23:28:29 +01:00
border: none;
2026-02-03 17:59:04 +01:00
border-radius: 8px;
2025-03-19 23:28:29 +01:00
cursor: pointer;
2026-02-03 17:59:04 +01:00
color: #64748b;
font-size: 16px;
transition: all 0.2s ease;
}
.toggle-btn:hover {
background-color: #e2e8f0;
color: #4a5568;
2025-03-19 23:28:29 +01:00
}
.toggle-btn.active {
2026-02-03 17:59:04 +01:00
background-color: white;
color: #ff5e3a;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.toggle-btn i {
pointer-events: none;
2025-03-19 23:28:29 +01:00
}
/* Files grid */
.files-grid {
display: grid;
2026-02-03 17:59:04 +01:00
grid-template-columns: repeat(auto-fill, minmax(200px, 240px));
2025-03-19 23:28:29 +01:00
gap: 20px;
2026-02-03 17:59:04 +01:00
justify-content: start;
2025-03-19 23:28:29 +01:00
}
.file-card {
background-color: white;
border-radius: 8px;
2026-02-03 17:59:04 +01:00
border: 1px solid #e2e8f0;
2025-03-19 23:28:29 +01:00
padding: 20px;
display: flex;
flex-direction: column;
align-items: center;
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
cursor: pointer;
2026-02-03 17:59:04 +01:00
transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
width: 100%;
min-height: 180px;
2025-03-19 23:28:29 +01:00
}
.file-card:hover {
transform: translateY(-2px);
2026-02-03 17:59:04 +01:00
box-shadow: 0 5px 15px rgba(0,0,0,0.08);
border-color: #cbd5e0;
2025-03-19 23:28:29 +01:00
}
.file-card.dragging {
opacity: 0.5;
transform: scale(0.95);
box-shadow: none;
}
.file-card.drop-target {
background-color: rgba(255, 193, 7, 0.1);
border: 2px dashed #ffc107;
}
/* Styles for folders as in the mockup */
2025-03-19 23:28:29 +01:00
.file-icon.folder-icon {
width: 100px;
height: 70px;
background-color: #ffeaa7; /* Light yellow color */
2025-03-19 23:28:29 +01:00
border-radius: 8px;
position: relative;
margin-bottom: 10px;
display: flex;
align-items: center;
justify-content: center;
}
.file-icon.folder-icon::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
height: 20px;
background-color: #fdcb6e; /* Darker yellow color for the tab */
2025-03-19 23:28:29 +01:00
border-radius: 8px 8px 0 0;
}
.file-icon.folder-icon i {
display: none; /* Hide Font Awesome icon */
2025-03-19 23:28:29 +01:00
}
/* Style for documents */
2025-03-19 23:28:29 +01:00
.file-icon.doc-icon {
width: 100px;
height: 70px;
background-color: #e2e8f0; /* Fondo gris claro */
border-radius: 4px;
position: relative;
margin-bottom: 10px;
}
.file-icon.doc-icon::before {
content: "";
position: absolute;
top: 15px;
left: 20px;
right: 20px;
height: 4px;
background-color: #a0aec0;
border-radius: 2px;
}
.file-icon.doc-icon::after {
content: "";
position: absolute;
top: 25px;
left: 20px;
right: 30px;
height: 4px;
background-color: #a0aec0;
border-radius: 2px;
}
/* Style for images */
2025-03-19 23:28:29 +01:00
.file-icon.image-icon {
width: 100px;
height: 70px;
background-color: #74b9ff; /* Light blue background */
2025-03-19 23:28:29 +01:00
border-radius: 4px;
position: relative;
margin-bottom: 10px;
overflow: hidden;
}
.file-icon.image-icon::before {
content: "";
position: absolute;
top: 10px;
left: 15px;
width: 20px;
height: 20px;
background-color: #ffda79; /* Yellow circle like a sun */
2025-03-19 23:28:29 +01:00
border-radius: 50%;
}
/* Style for videos */
2025-03-19 23:28:29 +01:00
.file-icon.video-icon {
width: 100px;
height: 70px;
background-color: #111; /* Black background */
2025-03-19 23:28:29 +01:00
border-radius: 4px;
position: relative;
margin-bottom: 10px;
display: flex;
align-items: center;
justify-content: center;
}
.file-icon.video-icon::before {
content: "";
width: 0;
height: 0;
border-top: 15px solid transparent;
border-bottom: 15px solid transparent;
border-left: 20px solid white; /* Play triangle */
2025-03-19 23:28:29 +01:00
}
/* Styles for code files */
2025-03-19 23:28:29 +01:00
.file-icon.code-icon {
width: 100px;
height: 70px;
background-color: #e2e8f0; /* Fondo gris claro */
border-radius: 4px;
position: relative;
margin-bottom: 10px;
border-top: 3px solid #556ee6; /* Blue top border */
2025-03-19 23:28:29 +01:00
overflow: hidden;
}
/* Lines that simulate code */
2025-03-19 23:28:29 +01:00
.file-icon.code-icon::before,
.file-icon.code-icon::after {
content: "";
position: absolute;
left: 10px;
right: 10px;
height: 2px;
background-color: #556ee6; /* Blue color for code */
2025-03-19 23:28:29 +01:00
}
.file-icon.code-icon::before {
top: 15px;
width: 80%;
}
.file-icon.code-icon::after {
top: 25px;
width: 60%;
}
/* Add additional lines to simulate code */
2025-03-19 23:28:29 +01:00
.file-icon.code-icon .code-line-1,
.file-icon.code-icon .code-line-2,
.file-icon.code-icon .code-line-3 {
position: absolute;
left: 10px;
height: 2px;
background-color: #a0aec0; /* Gray color for code */
2025-03-19 23:28:29 +01:00
}
.file-icon.code-icon .code-line-1 {
top: 35px;
width: 70%;
}
.file-icon.code-icon .code-line-2 {
top: 45px;
width: 85%;
}
.file-icon.code-icon .code-line-3 {
top: 55px;
width: 50%;
}
/* Specific colors for different code file types */
2025-03-19 23:28:29 +01:00
.file-icon.json-icon {
border-top-color: #ffb86c; /* Orange for JSON */
2025-03-19 23:28:29 +01:00
}
.file-icon.json-icon::before,
.file-icon.json-icon::after {
background-color: #ffb86c;
}
.file-icon.js-icon {
border-top-color: #ffd43b; /* Yellow for JavaScript */
2025-03-19 23:28:29 +01:00
}
.file-icon.js-icon::before,
.file-icon.js-icon::after {
background-color: #ffd43b;
}
.file-icon.html-icon {
border-top-color: #e34c26; /* Red for HTML */
2025-03-19 23:28:29 +01:00
}
.file-icon.html-icon::before,
.file-icon.html-icon::after {
background-color: #e34c26;
}
.file-icon.css-icon {
border-top-color: #2965f1; /* Blue for CSS */
2025-03-19 23:28:29 +01:00
}
.file-icon.css-icon::before,
.file-icon.css-icon::after {
background-color: #2965f1;
}
.file-icon.py-icon {
border-top-color: #3776ab; /* Dark blue for Python */
2025-03-19 23:28:29 +01:00
}
.file-icon.py-icon::before,
.file-icon.py-icon::after {
background-color: #3776ab;
}
.file-name {
font-size: 14px;
font-weight: 500;
text-align: center;
margin-bottom: 5px;
color: #2d3748;
}
.file-info {
font-size: 12px;
color: #718096;
text-align: center;
}
/* Lista de archivos - Estilo mejorado */
.files-list-view {
display: flex;
flex-direction: column;
width: 100%;
border-radius: 10px;
overflow: hidden;
background-color: white;
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.list-header {
display: grid;
grid-template-columns: minmax(200px, 2fr) 1fr 1fr 120px;
padding: 15px;
font-weight: 600;
color: #2d3748;
background-color: #f8f9fa;
border-bottom: 1px solid #e0e6ed;
}
.file-item {
display: grid;
grid-template-columns: minmax(200px, 2fr) 1fr 1fr 120px;
padding: 12px 15px;
border-bottom: 1px solid #f0f0f0;
align-items: center;
cursor: pointer;
transition: background-color 0.2s;
background-color: white;
}
2025-03-24 17:49:53 +01:00
/* Para modo papelera, ajustar columnas */
.trash-item.file-item {
grid-template-columns: minmax(180px, 1.5fr) 0.5fr 1fr 120px 100px;
}
2025-03-19 23:28:29 +01:00
.file-item:hover {
background-color: #f0f8ff;
}
.file-item .name-cell {
display: flex;
align-items: center;
gap: 12px;
}
.file-item .file-icon {
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 8px;
font-size: 20px;
margin-bottom: 0;
}
.file-item .file-icon.folder-icon {
background-color: #ffeaa7;
position: relative;
width: 36px;
height: 36px;
margin-bottom: 0;
}
.file-item .file-icon.folder-icon::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
height: 8px;
background-color: #fdcb6e;
border-radius: 8px 8px 0 0;
}
.file-item .file-icon.folder-icon i {
display: none;
}
/* Iconos específicos para archivos en vista de lista */
.file-item .file-icon.pdf-icon {
background-color: #fee2e2;
}
.file-item .file-icon.pdf-icon i {
color: #e53e3e;
}
.file-item .file-icon.image-icon {
background-color: #e0f2fe;
}
.file-item .file-icon.image-icon i {
color: #3b82f6;
}
.file-item .file-icon.video-icon {
background-color: #e2e8f0;
}
.file-item .file-icon.video-icon i {
color: #ef4444;
}
.file-item .file-icon.audio-icon {
background-color: #fef3c7;
}
.file-item .file-icon.audio-icon i {
color: #f59e0b;
}
.file-item .file-icon.text-icon {
background-color: #f3f4f6;
}
.file-item .file-icon.text-icon i {
color: #6b7280;
}
.file-item .date-cell {
color: #718096;
font-size: 14px;
}
.file-item .size-cell {
color: #718096;
font-size: 14px;
text-align: right;
}
.file-item .type-cell {
color: #4b5563;
font-weight: 500;
font-size: 14px;
}
.file-item.dragging {
opacity: 0.5;
background-color: #f9fafb;
}
.file-item.drop-target {
background-color: rgba(255, 193, 7, 0.1);
border: 2px dashed #ffc107;
}
/* Breadcrumb */
.breadcrumb {
display: flex;
align-items: center;
margin-bottom: 15px;
font-size: 14px;
color: #666;
}
.breadcrumb-item {
cursor: pointer;
}
.breadcrumb-item:hover {
text-decoration: underline;
}
.breadcrumb-separator {
margin: 0 8px;
}
/* Context menu */
.context-menu {
position: absolute;
background-color: white;
border: 1px solid #ddd;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
padding: 5px 0;
min-width: 150px;
z-index: 1000;
display: none;
}
.context-menu-item {
padding: 8px 15px;
cursor: pointer;
display: flex;
align-items: center;
color: #333;
}
.context-menu-item:hover {
background-color: #f0f8ff;
}
.context-menu-item i {
margin-right: 8px;
width: 16px;
text-align: center;
}
/* Dialog */
.rename-dialog {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 2000;
display: none;
}
.rename-dialog-content {
background-color: white;
border-radius: 8px;
padding: 20px;
width: 400px;
max-width: 90%;
}
.rename-dialog-header {
font-size: 18px;
font-weight: bold;
margin-bottom: 15px;
}
.rename-dialog input {
width: 100%;
padding: 10px;
margin-bottom: 15px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
}
.rename-dialog-buttons {
display: flex;
justify-content: flex-end;
gap: 10px;
}
/* Dropzone */
.dropzone {
border: 2px dashed #ddd;
border-radius: 8px;
padding: 20px;
text-align: center;
margin: 20px 0;
color: #666;
display: none;
}
.dropzone.active {
border-color: #ff5e3a;
background-color: rgba(255, 94, 58, 0.05);
}
.upload-progress {
margin-top: 15px;
width: 100%;
display: none;
}
.progress-bar {
background-color: #f0f0f0;
height: 6px;
border-radius: 3px;
overflow: hidden;
}
.progress-fill {
height: 100%;
background-color: #ff5e3a;
width: 0%;
transition: width 0.3s;
}
/* Notificación */
.notification {
position: absolute;
top: 70px;
right: 20px;
background-color: white;
width: 250px;
border-radius: 8px;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
padding: 15px;
border-left: 4px solid #ff5e3a;
z-index: 1000;
display: none;
}
.notification-title {
font-weight: bold;
font-size: 14px;
margin-bottom: 5px;
color: #2d3748;
}
.notification-message {
font-size: 12px;
color: #718096;
}
2026-02-03 17:59:04 +01:00
/* Modern Modal Overlay */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
display: none;
justify-content: center;
align-items: center;
z-index: 3000;
opacity: 0;
transition: opacity 0.2s ease;
}
.modal-overlay.active {
display: flex;
opacity: 1;
}
.modal-container {
background-color: white;
border-radius: 16px;
width: 420px;
max-width: 90%;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
transform: scale(0.9) translateY(-20px);
transition: transform 0.2s ease;
overflow: hidden;
}
.modal-overlay.active .modal-container {
transform: scale(1) translateY(0);
}
.modal-header {
display: flex;
align-items: center;
padding: 20px 24px;
border-bottom: 1px solid #e2e8f0;
position: relative;
}
.modal-icon {
width: 44px;
height: 44px;
background: linear-gradient(135deg, #ff5e3a 0%, #ff2d55 100%);
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
margin-right: 14px;
flex-shrink: 0;
}
.modal-icon i {
color: white;
font-size: 20px;
}
.modal-header h3 {
font-size: 18px;
font-weight: 600;
color: #1a202c;
margin: 0;
flex: 1;
}
.modal-close-btn {
position: absolute;
top: 16px;
right: 16px;
width: 32px;
height: 32px;
border: none;
background: #f0f3f7;
border-radius: 8px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
color: #64748b;
transition: all 0.15s ease;
}
.modal-close-btn:hover {
background: #e2e8f0;
color: #1a202c;
}
.modal-body {
padding: 24px;
}
.modal-body label {
display: block;
font-size: 14px;
font-weight: 500;
color: #4a5568;
margin-bottom: 8px;
}
.modal-input {
width: 100%;
padding: 12px 16px;
font-size: 15px;
border: 2px solid #e2e8f0;
border-radius: 10px;
background: #f8fafc;
color: #1a202c;
transition: all 0.15s ease;
outline: none;
}
.modal-input:focus {
border-color: #ff5e3a;
background: white;
box-shadow: 0 0 0 3px rgba(255, 94, 58, 0.1);
}
.modal-input::placeholder {
color: #a0aec0;
}
.modal-footer {
display: flex;
justify-content: flex-end;
gap: 12px;
padding: 16px 24px;
background: #f8fafc;
border-top: 1px solid #e2e8f0;
}
.modal-footer .btn {
padding: 10px 20px;
font-size: 14px;
font-weight: 500;
border-radius: 10px;
cursor: pointer;
transition: all 0.15s ease;
}
.modal-footer .btn-secondary {
background: white;
border: 1px solid #e2e8f0;
color: #4a5568;
}
.modal-footer .btn-secondary:hover {
background: #f0f3f7;
border-color: #cbd5e0;
}
.modal-footer .btn-primary {
background: linear-gradient(135deg, #ff5e3a 0%, #ff2d55 100%);
border: none;
color: white;
box-shadow: 0 2px 8px rgba(255, 94, 58, 0.3);
}
.modal-footer .btn-primary:hover {
box-shadow: 0 4px 12px rgba(255, 94, 58, 0.4);
transform: translateY(-1px);
}
.modal-footer .btn-primary:active {
transform: translateY(0);
}
2025-03-28 08:09:18 +01:00
/* Dialogs (Rename, Move, Share) */
.rename-dialog, .share-dialog {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
display: none;
justify-content: center;
align-items: center;
z-index: 2000;
}
.rename-dialog-content, .share-dialog-content {
2025-03-19 23:28:29 +01:00
background-color: white;
2025-03-28 08:09:18 +01:00
padding: 20px;
2025-03-19 23:28:29 +01:00
border-radius: 8px;
2025-03-28 08:09:18 +01:00
width: 400px;
max-width: 90%;
2025-03-19 23:28:29 +01:00
}
2025-03-28 08:09:18 +01:00
.share-dialog-content {
width: 500px;
}
.rename-dialog-header, .share-dialog-header {
font-size: 18px;
2025-03-19 23:28:29 +01:00
font-weight: bold;
margin-bottom: 15px;
}
2025-03-28 08:09:18 +01:00
.rename-dialog input, .share-dialog input {
width: 100%;
padding: 10px;
margin-bottom: 15px;
border: 1px solid #ddd;
border-radius: 4px;
}
.rename-dialog-buttons, .share-dialog-buttons {
2025-03-19 23:28:29 +01:00
display: flex;
2025-03-28 08:09:18 +01:00
justify-content: flex-end;
gap: 10px;
}
/* Share dialog specific styles */
.shared-item-info {
padding: 10px 0;
margin-bottom: 15px;
border-bottom: 1px solid #eee;
}
.share-options h3, #existing-shares-section h3, #new-share-section h3 {
font-size: 14px;
font-weight: 600;
2025-03-19 23:28:29 +01:00
margin-bottom: 10px;
2025-03-28 08:09:18 +01:00
color: #333;
2025-03-19 23:28:29 +01:00
}
2025-03-28 08:09:18 +01:00
.form-group {
margin-bottom: 15px;
}
.form-group label {
display: block;
margin-bottom: 5px;
font-weight: 500;
}
.permission-options {
display: flex;
gap: 15px;
margin-top: 5px;
}
.permission-option {
2025-03-19 23:28:29 +01:00
display: flex;
align-items: center;
2025-03-28 08:09:18 +01:00
gap: 5px;
}
.existing-share-item {
background-color: #f8f9fa;
border-radius: 4px;
padding: 10px;
margin-bottom: 10px;
}
.share-url {
2025-03-19 23:28:29 +01:00
font-size: 12px;
2025-03-28 08:09:18 +01:00
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin-bottom: 5px;
color: #1565c0;
}
.share-info {
font-size: 11px;
display: flex;
gap: 15px;
margin-bottom: 10px;
color: #757575;
}
.share-protected {
color: #1565c0;
}
.share-expiration {
color: #b71c1c;
}
.share-actions {
display: flex;
gap: 5px;
justify-content: flex-end;
}
.share-link-actions {
display: flex;
gap: 10px;
margin-top: 5px;
}
.btn-small {
font-size: 12px;
padding: 5px 10px;
}
#notification-message {
width: 100%;
padding: 10px;
border: 1px solid #ddd;
border-radius: 4px;
resize: vertical;
}
/* Shared Resources Page Styles */
/* Header styles for shared page */
header {
background-color: white;
border-bottom: 1px solid #e6e6e6;
padding: 15px 20px;
}
.header-container {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1280px;
margin: 0 auto;
2025-03-19 23:28:29 +01:00
}
2025-03-28 08:09:18 +01:00
.header-actions {
display: flex;
align-items: center;
gap: 15px;
}
.header-button {
padding: 8px 15px;
background-color: #f0f3f7;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 14px;
transition: background-color 0.2s;
}
.header-button:hover {
background-color: #e6e9ed;
}
/* Shared page container */
.shared-page-container {
max-width: 1280px;
margin: 20px auto;
padding: 0 20px;
}
.shared-header {
margin-bottom: 25px;
}
.shared-header h2 {
font-size: 24px;
2025-03-19 23:28:29 +01:00
color: #2d3748;
2025-03-28 08:09:18 +01:00
margin-bottom: 8px;
}
.shared-header p {
color: #718096;
font-size: 16px;
}
/* Filters and search */
.shared-filters {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 25px;
flex-wrap: wrap;
gap: 15px;
2025-03-19 23:28:29 +01:00
}
2025-03-28 08:09:18 +01:00
.filter-group {
display: flex;
align-items: center;
gap: 10px;
}
.filter-group label {
font-size: 14px;
color: #4a5568;
2026-02-03 17:59:04 +01:00
font-weight: 500;
2025-03-28 08:09:18 +01:00
}
.filter-group select {
2026-02-03 17:59:04 +01:00
padding: 8px 32px 8px 12px;
2025-03-28 08:09:18 +01:00
border: 1px solid #e2e8f0;
2026-02-03 17:59:04 +01:00
border-radius: 8px;
2025-03-28 08:09:18 +01:00
background-color: white;
font-size: 14px;
2026-02-03 17:59:04 +01:00
color: #2d3748;
cursor: pointer;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 10px center;
transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.filter-group select:hover {
border-color: #cbd5e0;
}
.filter-group select:focus {
outline: none;
border-color: #ff5e3a;
box-shadow: 0 0 0 3px rgba(255, 94, 58, 0.1);
2025-03-28 08:09:18 +01:00
}
.search-box {
display: flex;
gap: 10px;
}
.search-box input {
padding: 8px 15px;
border: 1px solid #e2e8f0;
border-radius: 6px;
font-size: 14px;
width: 250px;
}
.search-box button {
padding: 8px 15px;
background-color: #ff5e3a;
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
transition: background-color 0.2s;
}
.search-box button:hover {
background-color: #e64a29;
}
/* Shared items list */
.shared-list-container {
background-color: white;
border-radius: 10px;
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
overflow: hidden;
}
.shared-list {
width: 100%;
border-collapse: collapse;
}
.shared-list thead th {
padding: 15px;
text-align: left;
font-weight: 600;
color: #2d3748;
background-color: #f8f9fa;
border-bottom: 1px solid #e0e6ed;
}
.shared-list tbody td {
padding: 15px;
border-bottom: 1px solid #f0f0f0;
vertical-align: middle;
}
.shared-item-name {
display: flex;
align-items: center;
gap: 10px;
}
.shared-item-actions {
display: flex;
gap: 10px;
}
.action-btn {
width: 32px;
height: 32px;
border: 1px solid #e2e8f0;
border-radius: 6px;
background-color: white;
2025-03-19 23:28:29 +01:00
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
2025-03-28 08:09:18 +01:00
transition: all 0.2s;
}
.action-btn:hover {
background-color: #f0f8ff;
border-color: #90cdf4;
}
.action-icon {
font-size: 14px;
}
/* Empty state */
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 60px 20px;
background-color: white;
border-radius: 10px;
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.empty-state-icon {
font-size: 40px;
margin-bottom: 20px;
color: #a0aec0;
}
.empty-state h3 {
font-size: 18px;
color: #2d3748;
margin-bottom: 10px;
}
.empty-state p {
2025-03-19 23:28:29 +01:00
color: #718096;
2025-03-28 08:09:18 +01:00
margin-bottom: 20px;
text-align: center;
}
/* Dialog styles */
.dialog {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
display: none;
align-items: center;
justify-content: center;
z-index: 1000;
}
.dialog.active {
display: flex;
}
.dialog-content {
background-color: white;
border-radius: 10px;
box-shadow: 0 10px 25px rgba(0,0,0,0.1);
width: 500px;
max-width: 90%;
max-height: 90vh;
overflow-y: auto;
}
.dialog-header {
padding: 15px 20px;
border-bottom: 1px solid #e2e8f0;
display: flex;
align-items: center;
justify-content: space-between;
}
.dialog-header h3 {
font-size: 18px;
color: #2d3748;
margin: 0;
}
.close-dialog-btn {
background: none;
border: none;
font-size: 24px;
cursor: pointer;
color: #a0aec0;
}
.dialog-body {
padding: 20px;
}
/* Share dialog specific styles */
.share-item-info {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 20px;
}
.item-icon {
font-size: 24px;
}
.item-name {
font-size: 16px;
font-weight: 500;
color: #2d3748;
}
.share-link-section {
margin-bottom: 20px;
}
.share-link-container {
display: flex;
gap: 10px;
}
.share-link-container input {
flex-grow: 1;
padding: 10px;
border: 1px solid #e2e8f0;
border-radius: 6px;
font-size: 14px;
}
.share-link-container button {
padding: 0 15px;
background-color: #4a5568;
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
transition: background-color 0.2s;
}
.share-link-container button:hover {
background-color: #2d3748;
}
.share-settings {
margin-bottom: 20px;
}
.share-setting {
margin-bottom: 15px;
}
.share-setting label {
display: block;
margin-bottom: 8px;
font-weight: 500;
color: #4a5568;
}
.permissions-options {
display: flex;
gap: 20px;
}
.permissions-options label {
font-weight: normal;
display: flex;
align-items: center;
gap: 5px;
}
.password-setting, .expiration-setting {
display: flex;
align-items: center;
gap: 10px;
}
.password-setting input[type="checkbox"], .expiration-setting input[type="checkbox"] {
width: auto;
}
.password-setting input[type="password"], .expiration-setting input[type="date"] {
flex-grow: 1;
padding: 8px 10px;
border: 1px solid #e2e8f0;
border-radius: 6px;
font-size: 14px;
}
.password-setting button {
padding: 8px 12px;
background-color: #4a5568;
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 12px;
transition: background-color 0.2s;
}
.password-setting button:hover {
background-color: #2d3748;
}
.share-actions {
display: flex;
justify-content: flex-end;
gap: 10px;
}
/* Form styles */
.form-group {
margin-bottom: 15px;
}
.form-group label {
display: block;
margin-bottom: 8px;
font-weight: 500;
color: #4a5568;
}
.form-group input, .form-group textarea {
width: 100%;
padding: 10px;
border: 1px solid #e2e8f0;
border-radius: 6px;
font-size: 14px;
}
.form-group textarea {
resize: vertical;
min-height: 80px;
}
/* Button styles */
.button {
padding: 8px 16px;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 14px;
transition: background-color 0.2s;
}
.primary {
background-color: #ff5e3a;
color: white;
}
.primary:hover {
background-color: #e64a29;
}
.secondary {
background-color: #e2e8f0;
color: #4a5568;
}
.secondary:hover {
background-color: #cbd5e0;
}
.danger {
background-color: #f56565;
color: white;
}
.danger:hover {
background-color: #e53e3e;
}
/* Notification banner */
.notification-banner {
position: fixed;
top: 20px;
right: 20px;
padding: 15px 20px;
background-color: white;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
display: flex;
align-items: center;
justify-content: space-between;
max-width: 400px;
z-index: 2000;
transform: translateY(-100px);
opacity: 0;
transition: transform 0.3s, opacity 0.3s;
}
.notification-banner.active {
transform: translateY(0);
opacity: 1;
}
.notification-banner.success {
border-left: 4px solid #48bb78;
}
.notification-banner.error {
border-left: 4px solid #f56565;
}
.close-notification-btn {
background: none;
border: none;
font-size: 18px;
cursor: pointer;
color: #a0aec0;
margin-left: 10px;
2025-03-19 23:28:29 +01:00
}
/* Folder selection for move dialog */
.folder-select-item {
padding: 8px 10px;
margin-bottom: 5px;
border-radius: 4px;
cursor: pointer;
display: flex;
align-items: center;
}
.folder-select-item:hover {
background-color: #f0f8ff;
}
.folder-select-item.selected {
background-color: #e6f7ff;
border-left: 3px solid #1890ff;
}
.folder-select-item i {
margin-right: 8px;
color: #ffc107;
}
2025-03-24 17:49:53 +01:00
/* Styles for trash */
2025-03-24 17:49:53 +01:00
.trash-item {
position: relative;
}
.trash-actions {
position: absolute;
top: 10px;
right: 10px;
display: none;
gap: 8px;
}
.file-card.trash-item:hover .trash-actions,
.file-item.trash-item:hover .actions-cell {
display: flex;
}
.trash-actions button,
.actions-cell button {
background: #fff;
border: 1px solid #ddd;
border-radius: 4px;
padding: 4px 8px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
width: 30px;
height: 30px;
transition: all 0.2s;
}
.trash-actions button:hover,
.actions-cell button:hover {
background: #f0f0f0;
}
.btn-restore {
color: #4CAF50;
}
.btn-delete {
color: #f44336;
}
.actions-cell {
display: flex;
gap: 8px;
justify-content: flex-start;
align-items: center;
}
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 300px;
width: 100%;
color: #666;
grid-column: 1 / -1;
}
/* Danger button for emptying trash */
2025-03-24 17:49:53 +01:00
.btn-danger {
background-color: #f44336;
color: white;
}
2025-03-31 15:01:34 +02:00
/* Responsive */
@media (max-width: 768px) {
.sidebar {
width: 60px;
padding: 15px 10px;
}
.app-name, .storage-title, .storage-info {
display: none;
}
.nav-item {
justify-content: center;
padding: 12px 0;
}
.nav-item i {
margin-right: 0;
}
.nav-item span {
display: none;
}
/* Responsive styles for shared page */
.shared-filters {
flex-direction: column;
align-items: flex-start;
}
.shared-list thead th:nth-child(4),
.shared-list thead th:nth-child(5),
.shared-list tbody td:nth-child(4),
.shared-list tbody td:nth-child(5) {
display: none;
}
.dialog-content {
width: 95%;
}
}
/* Estilos específicos para la página Shared */
.page-description {
color: #718096;
font-size: 16px;
margin-top: -15px;
margin-bottom: 25px;
}
/* Mejoras para los filtros en la página Shared */
.shared-filters {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 25px;
flex-wrap: wrap;
gap: 15px;
background-color: white;
border-radius: 10px;
padding: 15px;
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.filter-group {
display: flex;
align-items: center;
gap: 10px;
}
.filter-group label {
font-size: 14px;
color: #4a5568;
font-weight: 500;
}
.filter-group select {
padding: 8px 12px;
border: 1px solid #e2e8f0;
border-radius: 6px;
background-color: white;
font-size: 14px;
min-width: 120px;
}
.search-box {
display: flex;
gap: 10px;
}
.search-box input {
padding: 8px 15px;
border: 1px solid #e2e8f0;
border-radius: 6px;
font-size: 14px;
width: 250px;
}
/* Mejoras en la tabla de elementos compartidos */
.shared-list-container {
background-color: white;
border-radius: 10px;
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
overflow: hidden;
margin-bottom: 25px;
}
.shared-list {
width: 100%;
border-collapse: collapse;
}
.shared-list thead th {
padding: 15px;
text-align: left;
font-weight: 600;
color: #2d3748;
background-color: #f8f9fa;
border-bottom: 1px solid #e0e6ed;
}
.shared-list tbody td {
padding: 15px;
border-bottom: 1px solid #f0f0f0;
vertical-align: middle;
}
/* Estado vacío mejorado */
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 60px 20px;
background-color: white;
border-radius: 10px;
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
text-align: center;
}
.empty-state-icon {
font-size: 48px;
margin-bottom: 20px;
color: #ffc107;
}
.empty-state h3 {
font-size: 18px;
color: #2d3748;
margin-bottom: 10px;
}
.empty-state p {
color: #718096;
margin-bottom: 20px;
text-align: center;
}
.button.primary {
padding: 8px 16px;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 14px;
background-color: #ff5e3a;
color: white;
text-decoration: none;
display: inline-block;
transition: background-color 0.2s;
}
.button.primary:hover {
background-color: #e64a29;
}