:root {
--primary: #364153;
--primary-light: #202732;
--primary-dark: #364153;
--secondary: #64748b;
--secondary-light: #94a3b8;
--success: #10b981;
--success-light: #34d399;
--danger: #ef4444;
--danger-light: #f87171;
--warning: #f59e0b;
--warning-light: #fbbf24;
--info: #0ea5e9;
--info-light: #38bdf8;
--light: #f8fafc;
--dark: #1e293b;
--body-bg: #ffffff;
--body-color: #334155;
--heading-color: #1e293b;
--link-color: #3b82f6;
--link-hover-color: #0b65ff;
--border-color: #e2e8f0;
--shadow-color: rgba(0, 0, 0, 0.1);
--card-bg: #ffffff;
--gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
--gradient-link: linear-gradient(135deg, var(--link-color) 0%, var(--link-hover-color) 100%);
--gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
--gradient-success: linear-gradient(135deg, var(--success) 0%, var(--success-light) 100%);
--gradient-danger: linear-gradient(135deg, var(--danger) 0%, var(--danger-light) 100%);
--gradient-warning: linear-gradient(135deg, var(--warning) 0%, var(--warning-light) 100%);
--gradient-info: linear-gradient(135deg, var(--info) 0%, var(--info-light) 100%);
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
--shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
--shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
--font-family-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
--font-family-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
--font-size-base: 1rem;
--line-height-base: 1.6;
--font-weight-normal: 400;
--font-weight-medium: 500;
--font-weight-bold: 700;
--spacing-base: 1rem;
--border-radius-sm: 0.25rem;
--border-radius: 0.5rem;
--border-radius-md: 0.15rem;
--border-radius-lg: 1rem;
--border-radius-xl: 1.5rem;
--border-radius-full: 9999px;
--container-max-width: 1200px;
--transition-base: all 0.2s ease-in-out;
--transition-slow: all 0.3s ease-in-out
}
:root {
color-scheme: light;
--color-mode: 'light'
}
@media (prefers-color-scheme:dark) {
:root {
--color-mode: 'dark'
}
}
:root[color-scheme=dark] {
--primary: #13181f;
--primary-light: #13181f;
--primary-dark: #cbe0ff;
--body-bg: #0f172a;
--body-color: #e2e8f0;
--heading-color: #f8fafc;
--border-color: #334155;
--shadow-color: rgba(0, 0, 0, 0.3);
--card-bg: #1e293b;
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
--shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
--shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2)
}
* {
margin: 0;
padding: 0;
box-sizing: border-box
}
html {
font-size: 16px;
scroll-behavior: smooth
}
body {
font-family: var(--font-family-sans);
font-size: var(--font-size-base);
line-height: var(--line-height-base);
color: var(--body-color);
background-color: var(--body-bg);
padding: var(--spacing-base);
max-width: var(--container-max-width);
margin: 0 auto;
transition: var(--transition-slow)
}
h1,
h2,
h3,
h4,
h5,
h6 {
color: var(--heading-color);
margin-bottom: var(--spacing-base);
font-weight: var(--font-weight-bold);
line-height: 1.2;
letter-spacing: -.025em
}
h1 {
font-size: 2.75rem;
margin-top: 2rem;
background: var(--heading-color);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
text-fill-color: transparent
}
h2 {
font-size: 2.25rem;
margin-top: 1.75rem;
position: relative
}
h2::after {
content: "";
position: absolute;
bottom: -.5rem;
left: 0;
width: 3rem;
height: .15rem;
background: var(--gradient-primary);
border-radius: var(--border-radius-full)
}
h3 {
font-size: 1.75rem;
margin-top: 1.5rem
}
h4 {
font-size: 1.5rem;
margin-top: 1.25rem
}
h5 {
font-size: 1.25rem;
margin-top: 1rem
}
h6 {
font-size: 1rem;
margin-top: .75rem;
text-transform: uppercase;
letter-spacing: .05em
}
p {
margin-bottom: var(--spacing-base)
}
a {
color: var(--link-color);
text-decoration: none;
transition: var(--transition-base);
position: relative
}
a:hover {
color: var(--link-hover-color)
}
a:not(nav a):before {
content: '';
position: absolute;
width: 100%;
transform: scaleX(0);
height: 2px;
bottom: -2px;
left: 0;
background: var(--gradient-link);
transform-origin: bottom right;
transition: transform .3s ease-out
}
a:not(nav a):hover:before {
transform: scaleX(1);
transform-origin: bottom left
}
a[target="_blank"]:after {
content: "[+]";
display: inline-block;
margin-left: .25em;
font-size: .6em;
font-weight: 700;
text-decoration: none;
vertical-align: super
}
small {
font-size: .875rem;
opacity: .85
}
code,
pre {
font-family: var(--font-family-mono);
border-radius: var(--border-radius)
}
code {
padding: .2em .4em;
font-size: .875em;
background-color: rgba(0, 0, 0, .05)
}
:root[color-scheme=dark] code {
background-color: rgba(255, 255, 255, .1)
}
pre {
padding: var(--spacing-base);
margin-bottom: var(--spacing-base);
overflow-x: auto;
background-color: rgba(0, 0, 0, .03);
border-radius: var(--border-radius-md);
box-shadow: var(--shadow-sm)
}
:root[color-scheme=dark] pre {
background-color: rgba(255, 255, 255, .05)
}
pre code {
display: block;
background-color: transparent
}
blockquote {
border-left: 4px solid var(--primary);
padding: var(--spacing-base);
margin-bottom: var(--spacing-base);
font-style: italic;
background-color: rgba(0, 0, 0, .02);
border-radius: 0 var(--border-radius) var(--border-radius) 0;
box-shadow: var(--shadow-sm)
}
:root[color-scheme=dark] blockquote {
background-color: rgba(255, 255, 255, .03)
}
hr {
border: 0;
height: 1px;
background: linear-gradient(to right, transparent, var(--border-color), transparent);
margin: calc(var(--spacing-base) * 2) 0
}
ol,
ul {
margin-bottom: var(--spacing-base);
padding-left: 1.5rem
}
li {
margin-bottom: calc(var(--spacing-base) * .5)
}
table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
margin-bottom: var(--spacing-base);
border-radius: var(--border-radius);
overflow: hidden;
box-shadow: var(--shadow)
}
td,
th {
padding: calc(var(--spacing-base) * .75);
border-bottom: 1px solid var(--border-color);
text-align: left
}
thead {
background: var(--gradient-secondary)
}
th {
font-weight: var(--font-weight-bold);
color: #fff;
text-transform: uppercase;
font-size: .875rem;
letter-spacing: .05em
}
tr:last-child td {
border-bottom: none
}
tr:hover td {
background-color: rgba(0, 0, 0, .02)
}
:root[color-scheme=dark] tr:hover td {
background-color: rgba(255, 255, 255, .03)
}
button,
input,
select,
textarea {
font-family: inherit;
font-size: inherit;
line-height: inherit
}
input[type=date],
input[type=datetime-local],
input[type=email],
input[type=month],
input[type=number],
input[type=password],
input[type=search],
input[type=tel],
input[type=text],
input[type=time],
input[type=url],
input[type=week],
select,
textarea {
display: block;
width: 100%;
padding: calc(var(--spacing-base) * .75);
border: 1px solid var(--border-color);
border-radius: var(--border-radius-md);
background-color: var(--body-bg);
color: var(--body-color);
margin-bottom: var(--spacing-base);
transition: var(--transition-base);
box-shadow: var(--shadow-sm)
}
input:focus,
select:focus,
textarea:focus {
outline: 0;
border-color: var(--border-color);
box-shadow: 0 0 0 3px rgba(79, 70, 229, .25)
}
select {
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
padding-right: 2.5rem;
background-image: url("data:image/svg+xml;utf8,");
background-repeat: no-repeat;
background-position: right 1rem center;
background-size: 2rem
}
:root[color-scheme=dark] select {
background-image: url("data:image/svg+xml;utf8,")
}
textarea {
min-height: 9rem;
resize: vertical
}
label {
display: block;
margin-bottom: calc(var(--spacing-base) * .5);
font-weight: var(--font-weight-medium)
}
button,
input[type=button],
input[type=reset],
input[type=submit] {
min-width: 100px;
display: inline-block;
padding: calc(var(--spacing-base) * .75) var(--spacing-base);
background: var(--gradient-primary);
color: #fff;
border: none;
border-radius: var(--border-radius-md);
cursor: pointer;
font-weight: var(--font-weight-medium);
text-align: center;
transition: var(--transition-base);
position: relative;
overflow: hidden
}
button::after,
input[type=button]::after,
input[type=reset]::after,
input[type=submit]::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(255, 255, 255, 0);
transition: var(--transition-base)
}
button:hover::after,
input[type=button]:hover::after,
input[type=reset]:hover::after,
input[type=submit]:hover::after {
background-color: rgba(255, 255, 255, .1)
}
button:hover,
input[type=button]:hover,
input[type=reset]:hover,
input[type=submit]:hover {
box-shadow: var(--shadow-md)
}
button:active,
input[type=button]:active,
input[type=reset]:active,
input[type=submit]:active {
transform: translateY(2px);
box-shadow: var(--shadow-sm)
}
button:disabled,
input[type=button]:disabled,
input[type=reset]:disabled,
input[type=submit]:disabled {
background: var(--gradient-secondary);
cursor: not-allowed;
opacity: .7;
transform: none
}
button.success,
input[type=button].success,
input[type=submit].success {
background: var(--gradient-success)
}
button.danger,
input[type=button].danger,
input[type=submit].danger {
background: var(--gradient-danger)
}
button.warning,
input[type=button].warning,
input[type=submit].warning {
background: var(--gradient-warning)
}
button.info,
input[type=button].info,
input[type=submit].info {
background: var(--gradient-info)
}
button.outline,
input[type=button].outline,
input[type=submit].outline {
background: 0 0;
border: 1px solid var(--primary-dark);
color: var(--primary-dark)
}
button.outline:hover,
input[type=button].outline:hover,
input[type=submit].outline:hover {
background-color: var(--primary);
color: #fff
}
img {
max-width: 100%;
height: auto;
border-radius: var(--border-radius-md);
transition: var(--transition-base);
box-shadow: var(--shadow)
}
img:hover {
transform: scale(1.01);
box-shadow: var(--shadow-md)
}
figure {
text-align: center;
margin-bottom: var(--spacing-base)
}
figcaption {
font-size: .875rem;
color: var(--secondary);
text-align: center;
margin-top: calc(var(--spacing-base) * .5);
font-style: italic
}
details summary {
cursor: pointer;
position: relative;
padding-bottom: calc(var(--spacing-base) * .5)
}
details summary::after {
content: '';
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 1px;
background: linear-gradient(to right, var(--border-color), transparent)
}
details>:not(summary) {
cursor: auto;
margin-top: calc(var(--spacing-base) * .5)
}
article,
aside,
section {
margin-bottom: calc(var(--spacing-base) * 2);
padding: var(--spacing-base);
background-color: var(--card-bg);
border-radius: var(--border-radius-lg);
box-shadow: var(--shadow);
transition: var(--transition-base);
border: 1px solid var(--border-color)
}
article:hover,
aside:hover,
section:hover {
box-shadow: var(--shadow-md)
}
:focus-visible {
outline: 2px solid var(--primary);
outline-offset: 2px
}
::-webkit-scrollbar {
width: 10px;
height: 10px
}
::-webkit-scrollbar-track {
background: rgba(0, 0, 0, .05);
border-radius: var(--border-radius-full)
}
::-webkit-scrollbar-thumb {
background: var(--gradient-secondary);
border-radius: var(--border-radius-full)
}
::-webkit-scrollbar-thumb:hover {
background: var(--gradient-primary)
}
.glass {
background: rgba(255, 255, 255, .5);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, .2);
color: var(--body-color);
box-shadow: 0 4px 6px rgba(0, 0, 0, .1)
}
:root[color-scheme=dark] .glass {
background: rgba(0, 0, 0, .3);
border: 1px solid rgba(255, 255, 255, .1)
}
:root:not([color-scheme=dark]) .glass {
text-shadow: 0 1px 1px rgba(0, 0, 0, .1)
}
@media (max-width:768px) {
html {
font-size: 14px
}
body {
padding: calc(var(--spacing-base) * .75)
}
table {
width: 100%;
display: block;
overflow-x: auto
}
h1 {
font-size: 2.25rem
}
h2 {
font-size: 1.75rem
}
}
@media print {
body {
background-color: #fff;
color: #000
}
a {
text-decoration: underline;
color: #000
}
a[href]:after {
content: " (" attr(href) ")"
}
blockquote,
pre {
border: 1px solid #999;
page-break-inside: avoid
}
thead {
background: var(--gradient-secondary);
display: table-header-group
}
img,
tr {
page-break-inside: avoid
}
h2,
h3,
p {
orphans: 3;
widows: 3
}
h2,
h3 {
page-break-after: avoid
}
button,
h1,
h2::after,
input[type=button],
input[type=reset],
input[type=submit] {
background: 0 0 !important;
-webkit-text-fill-color: #000;
text-fill-color: #000;
box-shadow: none !important
}
article,
aside,
blockquote,
img,
pre,
section,
table {
box-shadow: none !important
}
}
a,
article,
aside,
blockquote,
body,
button,
code,
input,
pre,
section,
select,
td,
textarea,
th {
transition: background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease
}
@keyframes colorSchemeTransition {
0% {
opacity: 0
}
100% {
opacity: 1
}
}
body {
animation: colorSchemeTransition .5s ease-out
}
/* Auth Forms */
.auth-container {
max-width: 400px;
margin: 2rem auto;
padding: 2rem;
background: var(--card-bg);
border-radius: var(--border-radius-md);
box-shadow: var(--shadow-md);
}
.auth-form .form-group {
margin-bottom: 1.5rem;
}
.auth-links {
margin-top: 1.5rem;
text-align: center;
}
/* File Browser */
.file-browser {
background: var(--card-bg);
border-radius: var(--border-radius-md);
box-shadow: var(--shadow);
padding: 1.5rem;
}
.browser-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
}
.browser-actions {
display: flex;
gap: 0.5rem;
}
.path-nav {
background: var(--body-bg);
padding: 0.75rem;
border-radius: var(--border-radius);
margin-bottom: 1.5rem;
font-family: var(--font-family-mono);
font-size: 0.9rem;
overflow-x: auto;
white-space: nowrap;
}
.path-item {
color: var(--link-color);
text-decoration: none;
}
.path-separator {
margin: 0 0.5rem;
color: var(--secondary);
}
.files-container {
display: flex;
flex-direction: column;
gap: 2rem;
}
.folder-section,
.file-section {
width: 100%;
}
.files-list {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
gap: 1rem;
margin-top: 1rem;
}
.file-item {
position: relative;
background: var(--body-bg);
border-radius: var(--border-radius);
overflow: hidden;
padding: 1rem;
box-shadow: var(--shadow-sm);
transition: transform 0.2s, box-shadow 0.2s;
display: flex;
flex-direction: column;
height: 150px;
}
.file-item:hover {
transform: translateY(-3px);
box-shadow: var(--shadow-md);
}
.file-item.folder {
background: rgba(59, 130, 246, 0.1);
border: 1px solid rgba(59, 130, 246, 0.2);
}
.file-item .file-link {
display: flex;
flex-direction: column;
align-items: center;
text-decoration: none;
color: var(--body-color);
flex: 1;
}
.file-icon,
.file-preview {
font-size: 2.5rem;
margin-bottom: 0.5rem;
text-align: center;
}
.file-name {
font-size: 0.9rem;
font-weight: var(--font-weight-medium);
text-align: center;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: 100%;
}
.file-details {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.file-meta {
display: flex;
justify-content: center;
gap: 1rem;
font-size: 0.75rem;
color: var(--secondary);
margin-top: 0.5rem;
}
.file-actions {
position: absolute;
top: 0.5rem;
right: 0.5rem;
display: none;
background: var(--card-bg);
border-radius: var(--border-radius);
padding: 0.25rem;
box-shadow: var(--shadow);
}
.file-item:hover .file-actions {
display: flex;
gap: 0.5rem;
}
.action-btn {
background: none;
border: none;
cursor: pointer;
font-size: 1rem;
padding: 0.25rem;
border-radius: var(--border-radius-sm);
transition: background-color 0.2s;
}
.action-btn:hover {
background: rgba(0, 0, 0, 0.05);
}
.empty-state {
text-align: center;
padding: 3rem 1rem;
color: var(--secondary);
}
.empty-icon {
font-size: 4rem;
margin-bottom: 1rem;
opacity: 0.5;
}
/* Dashboard */
.dashboard {
display: flex;
flex-direction: column;
gap: 2rem;
}
.dashboard-stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1.5rem;
margin-top: 1rem;
}
.stat-card {
display: flex;
align-items: center;
background: var(--card-bg);
padding: 1.5rem;
border-radius: var(--border-radius-md);
box-shadow: var(--shadow);
}
.stat-icon {
font-size: 2.5rem;
margin-right: 1.5rem;
}
.stat-info {
display: flex;
flex-direction: column;
}
.stat-value {
font-size: 1.75rem;
font-weight: var(--font-weight-bold);
margin-bottom: 0.25rem;
}
.stat-label {
color: var(--secondary);
font-size: 0.9rem;
}
.dashboard-recent {
background: var(--card-bg);
border-radius: var(--border-radius-md);
padding: 1.5rem;
box-shadow: var(--shadow);
}
.recent-files-list {
display: flex;
flex-direction: column;
gap: 0.75rem;
margin-top: 1rem;
}
.recent-files-list .file-item {
height: auto;
flex-direction: row;
align-items: center;
padding: 0.75rem;
}
.recent-files-list .file-icon {
margin-bottom: 0;
margin-right: 1rem;
font-size: 1.75rem;
}
.recent-files-list .file-details {
align-items: flex-start;
}
.recent-files-list .file-name {
text-align: left;
}
.recent-files-list .file-meta {
justify-content: flex-start;
}
.dashboard-actions {
display: flex;
gap: 1rem;
margin-top: 1rem;
}
/* Profile */
.profile-container {
max-width: 600px;
margin: 2rem auto;
}
.profile-card {
background: var(--card-bg);
border-radius: var(--border-radius-md);
box-shadow: var(--shadow);
padding: 2rem;
}
.profile-header {
display: flex;
align-items: center;
margin-bottom: 2rem;
}
.avatar {
width: 80px;
height: 80px;
border-radius: 50%;
background: var(--gradient-primary);
color: white;
display: flex;
align-items: center;
justify-content: center;
font-size: 2rem;
font-weight: var(--font-weight-bold);
margin-right: 1.5rem;
}
.profile-stats {
display: flex;
gap: 2rem;
margin-bottom: 2rem;
}
.profile-actions {
display: flex;
gap: 1rem;
}
/* Improved Navigation Bar */
header {
position: sticky;
top: 0;
z-index: 100;
background: var(--card-bg);
box-shadow: var(--shadow);
padding: 0;
transition: transform 0.3s ease;
}
header.hidden {
transform: translateY(-100%);
}
nav {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 2rem;
max-width: var(--container-max-width);
margin: 0 auto;
}
nav .logo h1 {
margin: 0;
font-size: 1.5rem;
}
nav .logo a {
text-decoration: none;
color: var(--heading-color);
background: var(--gradient-primary);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
nav ul {
display: flex;
list-style: none;
gap: 1.5rem;
align-items: center;
margin: 0;
padding: 0;
}
nav ul li a {
text-decoration: none;
color: var(--body-color);
font-weight: var(--font-weight-medium);
transition: color 0.2s;
}
nav ul li a:hover {
color: var(--link-color);
}
.toggle-button {
background: none;
border: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
width: 2rem;
height: 2rem;
border-radius: 90%;
padding: 0;
background: var(--body-bg);
color: var(--body-color);
font-size: 1rem;
}
/* Improved Flash Messages */
.alerts {
position: fixed;
top: 1rem;
right: 1rem;
z-index: 1000;
display: flex;
flex-direction: column;
gap: 0.5rem;
max-width: 300px;
}
.alert {
background: var(--card-bg);
border-radius: var(--border-radius);
padding: 1rem;
box-shadow: var(--shadow-md);
color: var(--body-color);
position: relative;
animation: alertIn 0.3s ease forwards, alertOut 0.3s ease 5s forwards;
display: flex;
align-items: center;
justify-content: space-between;
}
.alert.success {
border-left: 4px solid var(--success);
}
.alert.error {
border-left: 4px solid var(--danger);
}
.alert.info {
border-left: 4px solid var(--info);
}
.alert.warning {
border-left: 4px solid var(--warning);
}
.alert .close {
background: none;
border: none;
cursor: pointer;
font-size: 1.25rem;
margin-left: 0.5rem;
opacity: 0;
transition: opacity 0.2s;
}
.alert:hover .close {
opacity: 1;
}
@keyframes alertIn {
from {
transform: translateX(100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
@keyframes alertOut {
from {
transform: translateX(0);
opacity: 1;
}
to {
transform: translateX(100%);
opacity: 0;
}
}
/* For mobile responsiveness */
@media (max-width: 768px) {
nav {
flex-direction: column;
padding: 1rem;
}
nav ul {
flex-direction: column;
width: 100%;
margin-top: 1rem;
}
.stat-card {
padding: 1rem;
}
.stat-icon {
font-size: 2rem;
margin-right: 1rem;
}
.files-list {
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.file-item {
height: 120px;
}
.avatar {
margin-right: 0;
margin-bottom: 1rem;
}
}
/* Upload Overlay */
.upload-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 1050;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease, visibility 0.3s ease;
}
.upload-overlay.active {
opacity: 1;
visibility: visible;
}
.upload-modal {
width: 90%;
max-width: 800px;
max-height: 90vh;
background-color: var(--card-bg);
border-radius: var(--border-radius-md);
box-shadow: var(--shadow-lg);
display: flex;
flex-direction: column;
overflow: hidden;
transform: translateY(20px);
transition: transform 0.3s ease;
}
.upload-overlay.active .upload-modal {
transform: translateY(0);
}
.upload-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 1.5rem;
border-bottom: 1px solid var(--border-color);
}
.upload-header h3 {
margin: 0;
display: flex;
align-items: center;
gap: 0.5rem;
}
.close-upload {
background: none;
border: none;
font-size: 1.5rem;
cursor: pointer;
color: var(--body-color);
opacity: 0.7;
transition: opacity 0.2s;
}
.close-upload:hover {
opacity: 1;
}
.upload-body {
padding: 1.5rem;
overflow-y: auto;
flex: 1;
display: flex;
flex-direction: column;
gap: 1.5rem;
}
.upload-dropzone {
border: 2px dashed var(--border-color);
border-radius: var(--border-radius);
padding: 2rem;
text-align: center;
transition: border-color 0.2s, background-color 0.2s;
cursor: pointer;
}
.upload-dropzone.drag-over {
border-color: var(--primary-color);
background-color: rgba(59, 130, 246, 0.05);
}
.upload-icon {
font-size: 3rem;
color: var(--secondary);
margin-bottom: 1rem;
}
.upload-dropzone p {
margin: 0.5rem 0;
color: var(--body-color);
}
.upload-buttons {
display: flex;
justify-content: center;
gap: 1rem;
margin-top: 1rem;
}
.upload-list {
background-color: var(--body-bg);
border-radius: var(--border-radius);
padding: 1rem;
}
.upload-list h4 {
margin: 0 0 1rem 0;
font-size: 1rem;
color: var(--body-color);
}
.upload-items {
display: flex;
flex-direction: column;
gap: 0.75rem;
max-height: 200px;
overflow-y: auto;
}
.upload-item {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.75rem;
background-color: var(--card-bg);
border-radius: var(--border-radius);
box-shadow: var(--shadow-sm);
}
.upload-item-icon {
font-size: 1.25rem;
color: var(--secondary);
}
.upload-item-details {
flex: 1;
}
.upload-item-name {
font-size: 0.9rem;
font-weight: var(--font-weight-medium);
color: var(--body-color);
margin: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.upload-item-size {
font-size: 0.75rem;
color: var(--secondary);
}
.upload-item-progress {
width: 100%;
height: 4px;
background-color: var(--border-color);
border-radius: var(--border-radius-full);
margin-top: 0.5rem;
overflow: hidden;
}
.upload-item-progress-bar {
height: 100%;
background-color: var(--primary-color);
width: 0%;
transition: width 0.2s;
}
.upload-progress-overall {
margin-top: auto;
}
.progress-label {
display: flex;
justify-content: space-between;
margin-bottom: 0.5rem;
font-size: 0.875rem;
color: var(--body-color);
}
.progress-bar-container {
height: 8px;
background-color: var(--border-color);
border-radius: var(--border-radius-full);
overflow: hidden;
}
.progress-bar {
height: 100%;
background-color: var(--primary-color);
width: 0%;
transition: width 0.3s;
}
.upload-footer {
display: flex;
justify-content: flex-end;
gap: 1rem;
padding: 1rem 1.5rem;
border-top: 1px solid var(--border-color);
}
/* Upload Status Indicators */
.upload-item.uploading .upload-item-icon {
color: var(--info);
}
.upload-item.success .upload-item-icon {
color: var(--success);
}
.upload-item.error .upload-item-icon {
color: var(--danger);
}