Files
cloud_control_panel/public/assets/cloud.css
2026-01-10 02:24:05 +07:00

2348 lines
44 KiB
CSS
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}
body {
background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
color: #2d3748;
height: 100%;
min-height: 100%;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: stretch;
padding: 1rem;
position: relative;
overflow-x: hidden;
}
header {
background: rgba(255, 255, 255, 0.98);
color: #4a5568;
padding: 1rem 2rem;
width: 100%;
max-width: 1200px;
text-align: center;
font-weight: 700;
font-size: 1.5rem;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
position: fixed;
top: 0;
z-index: 1000;
border-radius: 0 0 20px 20px;
margin: 0 auto;
left: 50%;
transform: translateX(-50%);
}
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1200px;
margin: 0 auto;
}
.navbar-brand {
color: transparent;
background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
-webkit-background-clip: text;
background-clip: text;
font-size: 1.75rem;
font-weight: 800;
letter-spacing: -0.5px;
}
footer {
text-align: center;
padding: 1rem;
font-size: 0.85rem;
background: transparent;
width: 100%;
color: #718096;
margin-top: auto;
position: relative;
z-index: 1;
}
footer p {
opacity: 0.7;
transition: opacity 0.3s ease;
}
footer:hover p {
opacity: 1;
}
main.container {
display: flex;
justify-content: center;
align-items: center;
flex: 1;
width: 100%;
max-width: 1200px;
padding: 2rem;
margin: 3rem auto 40px;
position: relative;
z-index: 2;
min-height: 100dvh;
}
.login-card {
background: rgba(255, 255, 255, 0.98);
padding: 2.5rem;
border-radius: 24px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08),
0 8px 24px rgba(0, 0, 0, 0.05),
inset 0 1px 0 rgba(255, 255, 255, 0.8);
width: 100%;
max-width: 420px;
text-align: center;
backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.3);
animation: cardEntrance 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes cardEntrance {
from {
opacity: 0;
transform: translateY(20px) scale(0.98);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
.login-card h1 {
margin-bottom: 2rem;
color: transparent;
background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
-webkit-background-clip: text;
background-clip: text;
font-size: 2.25rem;
font-weight: 800;
letter-spacing: -0.5px;
}
.login-card .error {
color: #fc8181;
margin-bottom: 1.25rem;
padding: 0.75rem 1rem;
background: rgba(252, 129, 129, 0.08);
border-radius: 12px;
border-left: 4px solid #fc8181;
font-weight: 500;
animation: shake 0.5s ease-in-out;
}
@keyframes shake {
0%, 100% {
transform: translateX(0);
}
25% {
transform: translateX(-4px);
}
75% {
transform: translateX(4px);
}
}
.login-form {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.login-form label {
display: block;
margin-bottom: 0.5rem;
text-align: left;
font-weight: 600;
color: #4a5568;
font-size: 0.95rem;
padding-left: 0.25rem;
}
.login-form input {
width: 100%;
padding: 1rem 1.25rem;
margin-bottom: 0.25rem;
border: 2px solid #e2e8f0;
border-radius: 14px;
font-size: 1rem;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
background: rgba(247, 250, 252, 0.8);
color: #2d3748;
}
.login-form input:hover {
border-color: #cbd5e0;
background: white;
}
.login-form input:focus {
border-color: #667eea;
box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15),
0 4px 12px rgba(102, 126, 234, 0.1);
outline: none;
background: white;
transform: translateY(-1px);
}
.login-form input::placeholder {
color: #a0aec0;
}
.login-form button {
width: 100%;
padding: 1rem;
border: none;
border-radius: 14px;
font-size: 1.1rem;
font-weight: 700;
cursor: pointer;
color: white;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
margin-top: 1rem;
}
.login-form button::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
transition: left 0.7s;
}
.login-form button:hover {
transform: translateY(-3px);
box-shadow: 0 12px 24px rgba(102, 126, 234, 0.3),
0 6px 12px rgba(118, 75, 162, 0.2);
}
.login-form button:hover::before {
left: 100%;
}
.login-form button:active {
transform: translateY(-1px);
box-shadow: 0 6px 12px rgba(102, 126, 234, 0.25),
0 3px 6px rgba(118, 75, 162, 0.2);
}
.login-form button:focus {
outline: none;
box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.3),
0 12px 24px rgba(102, 126, 234, 0.25);
}
@media (max-width: 768px) {
body {
padding: 0.5rem;
}
body::before {
height: 220px;
border-radius: 0 0 24px 24px;
}
header {
padding: 0.75rem 1rem;
font-size: 1.25rem;
border-radius: 0 0 16px 16px;
max-width: 100%;
width: 100%;
left: 0;
transform: none;
}
.navbar-brand {
font-size: 1.5rem;
}
main.container {
margin-top: 70px;
padding: 1rem;
}
.login-card {
padding: 2rem 1.5rem;
margin: 0 auto;
max-width: 380px;
}
footer {
padding: 0.75rem;
font-size: 0.8rem;
}
}
@media (max-width: 480px) {
.login-card {
padding: 1.75rem 1.25rem;
}
.login-card h1 {
font-size: 1.9rem;
margin-bottom: 1.5rem;
}
.login-form input {
padding: 0.875rem 1rem;
}
.login-form button {
padding: 0.875rem;
font-size: 1rem;
}
}
.full-height {
margin-top: 0 !important;
min-height: 100vh;
justify-content: center;
}
/* ========== Стили для страниц ошибок ========== */
.error-container {
background: rgba(255, 255, 255, 0.98);
padding: 3.5rem 2.5rem;
border-radius: 28px;
box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08),
0 10px 30px rgba(0, 0, 0, 0.05),
inset 0 1px 0 rgba(255, 255, 255, 0.9);
width: 100%;
max-width: 480px;
text-align: center;
backdrop-filter: blur(25px);
-webkit-backdrop-filter: blur(25px);
border: 1px solid rgba(255, 255, 255, 0.4);
animation: errorSlideIn 0.7s cubic-bezier(0.22, 1, 0.36, 1);
margin: 100px auto 60px;
position: relative;
overflow: hidden;
}
@keyframes errorSlideIn {
from {
opacity: 0;
transform: translateY(30px) scale(0.96);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
.error-container::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: radial-gradient(circle at 30% 30%,
rgba(102, 126, 234, 0.05) 0%,
rgba(118, 75, 162, 0.03) 25%,
transparent 50%);
z-index: -1;
}
.error-code {
font-size: 7rem;
font-weight: 900;
line-height: 1;
margin-bottom: 0.5rem;
background: linear-gradient(135deg,
#667eea 0%,
#764ba2 50%,
#667eea 100%);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
background-size: 200% 200%;
animation: gradientShift 3s ease infinite;
letter-spacing: -3px;
position: relative;
display: inline-block;
text-shadow: 0 5px 15px rgba(102, 126, 234, 0.15);
}
@keyframes gradientShift {
0%, 100% {
background-position: 0 50%;
}
50% {
background-position: 100% 50%;
}
}
.error-code::after {
content: '';
position: absolute;
bottom: -12px;
left: 50%;
transform: translateX(-50%);
width: 80px;
height: 4px;
background: linear-gradient(90deg,
rgba(102, 126, 234, 0) 0%,
#667eea 50%,
rgba(102, 126, 234, 0) 100%);
border-radius: 2px;
animation: linePulse 2s ease-in-out infinite;
}
@keyframes linePulse {
0%, 100% {
width: 80px;
opacity: 1;
}
50% {
width: 120px;
opacity: 0.7;
}
}
.error-message {
font-size: 1.25rem;
line-height: 1.7;
color: #4a5568;
margin: 2rem 0 3rem;
padding: 0 1rem;
font-weight: 500;
position: relative;
}
.action-buttons {
display: flex;
gap: 1.25rem;
justify-content: center;
margin-top: 2.5rem;
flex-wrap: wrap;
}
.btn {
padding: 1rem 2.5rem;
border-radius: 16px;
font-size: 1.05rem;
font-weight: 700;
cursor: pointer;
text-decoration: none;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.75rem;
min-width: 180px;
border: none;
position: relative;
overflow: hidden;
}
.btn::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg,
transparent,
rgba(255, 255, 255, 0.3),
transparent);
transition: left 0.7s ease;
}
.btn:hover::before {
left: 100%;
}
.btn-primary {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
box-shadow: 0 8px 25px rgba(102, 126, 234, 0.25),
0 4px 15px rgba(118, 75, 162, 0.2);
}
.btn-primary:hover {
transform: translateY(-4px) scale(1.03);
box-shadow: 0 15px 35px rgba(102, 126, 234, 0.35),
0 8px 25px rgba(118, 75, 162, 0.3),
0 0 0 1px rgba(255, 255, 255, 0.2);
}
.btn-primary:active {
transform: translateY(-2px) scale(1.01);
box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3),
0 5px 15px rgba(118, 75, 162, 0.25);
}
.btn-secondary {
background: rgba(255, 255, 255, 0.9);
color: #4a5568;
border: 2px solid #e2e8f0;
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}
.btn-secondary:hover {
transform: translateY(-4px);
border-color: #cbd5e0;
background: white;
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1),
0 0 0 1px rgba(255, 255, 255, 0.2);
color: #2d3748;
}
.btn-secondary:active {
transform: translateY(-2px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.btn::after {
font-size: 1.1em;
transition: transform 0.3s ease;
}
.btn:hover::after {
transform: translateX(2px);
}
.btn-primary::after {
content: '';
}
.btn-secondary::after {
content: '';
}
.btn:focus {
outline: none;
box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2),
0 8px 25px rgba(102, 126, 234, 0.25);
}
.btn-secondary:focus {
box-shadow: 0 0 0 4px rgba(160, 174, 192, 0.2),
0 6px 20px rgba(0, 0, 0, 0.08);
}
@media (max-width: 768px) {
.error-container {
margin: 80px auto 40px;
padding: 2.5rem 2rem;
max-width: 420px;
border-radius: 24px;
}
.error-code {
font-size: 5.5rem;
}
.error-message {
font-size: 1.15rem;
margin: 1.5rem 0 2.5rem;
}
.action-buttons {
gap: 1rem;
margin-top: 2rem;
}
.btn {
padding: 0.875rem 2rem;
min-width: 160px;
font-size: 1rem;
}
}
@media (max-width: 480px) {
.error-container {
margin: 60px auto 30px;
padding: 2rem 1.5rem;
max-width: 360px;
border-radius: 20px;
}
.error-code {
font-size: 4.5rem;
letter-spacing: -2px;
}
.error-code::after {
width: 60px;
height: 3px;
}
@keyframes linePulse {
0%, 100% {
width: 60px;
}
50% {
width: 90px;
}
}
.error-message {
font-size: 1.05rem;
margin: 1.25rem 0 2rem;
padding: 0 0.5rem;
}
.action-buttons {
flex-direction: column;
gap: 0.875rem;
width: 100%;
}
.btn {
width: 100%;
min-width: auto;
padding: 0.875rem 1.5rem;
}
.btn::after {
content: '';
display: none;
}
.btn-secondary::before,
.btn-primary::before {
margin-right: 0.5rem;
}
}
@media (max-width: 360px) {
.error-container {
padding: 1.75rem 1.25rem;
margin: 50px auto 25px;
}
.error-code {
font-size: 4rem;
}
.error-message {
font-size: 1rem;
margin: 1rem 0 1.75rem;
}
}
@media (prefers-color-scheme: dark) {
body {
background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
color: #f1f5f9;
}
/* Header */
header {
background: rgba(30, 41, 59, 0.95);
color: #cbd5e1;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.navbar-brand {
background: linear-gradient(90deg, #818cf8 0%, #c084fc 100%);
-webkit-background-clip: text;
background-clip: text;
}
/* Footer */
footer {
color: #94a3b8;
}
/* Login card */
.login-card {
background: rgba(30, 41, 59, 0.95);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
0 8px 24px rgba(0, 0, 0, 0.25),
inset 0 1px 0 rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.15);
}
.login-card h1 {
background: linear-gradient(90deg, #818cf8 0%, #c084fc 100%);
-webkit-background-clip: text;
background-clip: text;
}
/* Ошибки в форме */
.login-card .error {
color: #fca5a5;
background: rgba(248, 113, 113, 0.12);
border-left-color: #f87171;
}
/* Форма */
.login-form label {
color: #cbd5e1;
}
.login-form input {
background: rgba(30, 41, 59, 0.8);
border-color: #475569;
color: #f1f5f9;
}
.login-form input:hover {
background: rgba(41, 53, 73, 0.9);
border-color: #64748b;
}
.login-form input:focus {
border-color: #818cf8;
box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.2),
0 4px 12px rgba(129, 140, 248, 0.15);
background: rgba(41, 53, 73, 0.95);
}
.login-form input::placeholder {
color: #94a3b8;
}
/* Кнопка формы */
.login-form button {
background: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
}
.login-form button:hover {
box-shadow: 0 12px 24px rgba(129, 140, 248, 0.25),
0 6px 12px rgba(192, 132, 252, 0.2);
}
.login-form button:focus {
box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.3),
0 12px 24px rgba(129, 140, 248, 0.25);
}
.error-container {
background: rgba(26, 32, 44, 0.98);
border-color: rgba(255, 255, 255, 0.1);
box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3),
0 10px 30px rgba(0, 0, 0, 0.25),
inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.error-message {
color: #cbd5e0;
}
.btn-secondary {
background: rgba(45, 55, 72, 0.9);
color: #e2e8f0;
border-color: #4a5568;
}
.btn-secondary:hover {
background: rgba(55, 65, 81, 0.95);
border-color: #718096;
color: #f7fafc;
}
.error-container::before {
background: radial-gradient(circle at 30% 30%,
rgba(102, 126, 234, 0.08) 0%,
rgba(118, 75, 162, 0.05) 25%,
transparent 50%);
}
}
/* ========== ДАШБОРД ========== */
.dashboard-container {
width: 100%;
max-width: 1400px;
margin: 0 auto;
padding: 2rem;
animation: fadeIn 0.6s ease-out;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.dashboard-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
padding-bottom: 1.5rem;
border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}
.welcome-title {
font-size: 2.25rem;
font-weight: 800;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
margin-bottom: 0.5rem;
}
.welcome-subtitle {
color: #718096;
font-size: 1.1rem;
font-weight: 500;
}
.btn {
padding: 0.875rem 1.75rem;
border-radius: 12px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
border: none;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
display: inline-flex;
align-items: center;
gap: 0.5rem;
}
.btn-primary {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}
.btn-secondary {
background: white;
color: #4a5568;
border: 2px solid #e2e8f0;
}
.btn-secondary:hover {
border-color: #cbd5e0;
background: #f7fafc;
}
.btn-small {
padding: 0.5rem 1rem;
font-size: 0.9rem;
}
.btn-icon {
font-size: 1.1em;
}
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 1.5rem;
margin-bottom: 3rem;
}
.stat-card {
cursor: pointer;
text-decoration: none;
background: white;
padding: 1.5rem;
border-radius: 16px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
transition: all 0.3s ease;
display: flex;
align-items: center;
gap: 1.25rem;
}
.stat-card:hover {
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
transform: translateY(-2px);
}
.stat-icon {
width: 60px;
height: 60px;
border-radius: 14px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.75rem;
flex-shrink: 0;
}
.stat-content {
flex: 1;
}
.stat-title {
color: #718096;
font-size: 0.95rem;
font-weight: 600;
margin-bottom: 0.25rem;
text-transform: uppercase;
}
.stat-value {
font-size: 2rem;
font-weight: 800;
color: #2d3748;
margin-bottom: 0.5rem;
}
.stat-progress {
margin-top: 0.5rem;
}
.progress-bar {
height: 6px;
background: #e2e8f0;
border-radius: 3px;
overflow: hidden;
margin-bottom: 0.25rem;
}
.progress-fill {
height: 100%;
background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
border-radius: 3px;
transition: width 0.5s ease;
}
.progress-text {
font-size: 0.85rem;
color: #718096;
font-weight: 500;
}
/* Основной контент */
.dashboard-content {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 2rem;
margin-bottom: 3rem;
}
.chart-container {
background: white;
border-radius: 16px;
padding: 1.5rem;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.chart-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
}
.chart-title {
font-size: 1.25rem;
font-weight: 700;
color: #2d3748;
}
.chart-select {
padding: 0.5rem 1rem;
border-radius: 8px;
border: 2px solid #e2e8f0;
background: white;
color: #4a5568;
font-weight: 500;
cursor: pointer;
}
.chart-placeholder {
background: #f7fafc;
border-radius: 12px;
padding: 1.5rem;
min-height: 300px;
}
.chart-visual {
height: 100%;
display: flex;
flex-direction: column;
justify-content: flex-end;
}
.chart-bars {
display: flex;
align-items: flex-end;
justify-content: space-around;
height: 200px;
margin-bottom: 1rem;
}
.chart-bar {
width: 40px;
background: linear-gradient(to top, #667eea 0%, #764ba2 100%);
border-radius: 8px 8px 0 0;
transition: height 0.3s ease;
}
.chart-bar:hover {
opacity: 0.8;
}
.chart-labels {
display: flex;
justify-content: space-around;
color: #718096;
font-weight: 500;
}
.quick-actions {
background: white;
border-radius: 16px;
padding: 2rem;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.actions-title {
font-size: 1.5rem;
font-weight: 700;
color: #2d3748;
margin-bottom: 1.5rem;
text-align: center;
}
.actions-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1rem;
}
.action-btn {
padding: 2rem 1rem;
background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
border: 2px dashed #cbd5e0;
border-radius: 16px;
display: flex;
flex-direction: column;
align-items: center;
gap: 0.75rem;
cursor: pointer;
transition: all 0.3s ease;
}
.action-btn:hover {
background: linear-gradient(135deg, #667eea25 0%, #764ba225 100%);
border-color: #667eea;
transform: translateY(-3px);
}
.action-icon {
font-size: 2.5rem;
}
.action-text {
font-size: 1rem;
font-weight: 600;
color: #4a5568;
}
@media (max-width: 1024px) {
.dashboard-content {
grid-template-columns: 1fr;
}
}
@media (max-width: 768px) {
.dashboard-container {
padding: 1rem;
}
.dashboard-header {
flex-direction: column;
gap: 1rem;
text-align: center;
}
.welcome-title {
font-size: 1.75rem;
}
.stats-grid {
grid-template-columns: 1fr;
}
.actions-grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 480px) {
.actions-grid {
grid-template-columns: 1fr;
}
.action-btn {
padding: 1.5rem 1rem;
}
}
@media (prefers-color-scheme: dark) {
.dashboard-container {
color: #f1f5f9;
}
.actions-title {
color: #f1f5f9 !important;
font-weight: 700;
}
.chart-title {
color: #f1f5f9 !important;
font-weight: 700;
}
.dashboard-header {
border-bottom-color: rgba(255, 255, 255, 0.1);
}
.welcome-title {
background: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
-webkit-background-clip: text;
background-clip: text;
}
.welcome-subtitle {
color: #cbd5e1;
}
.stat-card,
.chart-container,
.quick-actions {
background: rgba(30, 41, 59, 0.95);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.stat-value {
color: #f1f5f9;
}
.stat-title {
color: #cbd5e1;
}
.progress-bar {
background: #475569;
}
.chart-placeholder {
background: rgba(30, 41, 59, 0.7);
}
.action-btn {
background: linear-gradient(135deg, rgba(129, 140, 248, 0.1) 0%, rgba(192, 132, 252, 0.1) 100%);
border-color: #475569;
}
.action-text {
color: #cbd5e1;
}
.btn-secondary {
background: rgba(30, 41, 59, 0.9);
color: #e2e8f0;
border-color: #4a5568;
}
.btn-secondary:hover {
background: rgba(41, 53, 73, 0.95);
border-color: #667eea;
}
.chart-select {
background: rgba(30, 41, 59, 0.9);
border-color: #4a5568;
color: #cbd5e1;
}
}
.storage-overview {
background: white;
border-radius: 16px;
padding: 2rem;
margin-bottom: 2rem;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
}
.section-title {
font-size: 1.5rem;
font-weight: 700;
color: #2d3748;
}
.storage-summary {
display: flex;
gap: 1.5rem;
font-size: 0.95rem;
color: #718096;
}
.summary-text strong {
color: #2d3748;
font-weight: 700;
}
.main-progress-container {
background: #f7fafc;
border-radius: 12px;
padding: 1.5rem;
}
.progress-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.75rem;
}
.progress-label {
font-weight: 600;
color: #4a5568;
}
.progress-percent {
font-size: 1.25rem;
font-weight: 700;
color: #667eea;
}
.main-progress-bar {
height: 12px;
background: #e2e8f0;
border-radius: 6px;
overflow: hidden;
margin-bottom: 0.75rem;
}
.main-progress-fill {
height: 100%;
background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
border-radius: 6px;
transition: width 0.5s ease;
}
.progress-details {
display: flex;
justify-content: space-between;
font-size: 0.9rem;
color: #718096;
}
.detail-item {
font-weight: 500;
}
.chart-legend {
display: flex;
justify-content: center;
gap: 1.5rem;
margin-top: 1.5rem;
flex-wrap: wrap;
}
.legend-item {
display: flex;
align-items: center;
gap: 0.5rem;
}
.legend-color {
width: 12px;
height: 12px;
border-radius: 2px;
}
.legend-text {
font-size: 0.9rem;
color: #718096;
font-weight: 500;
}
.quick-access {
background: white;
border-radius: 16px;
padding: 1.5rem;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.access-list {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.access-item {
display: flex;
align-items: center;
gap: 1rem;
padding: 1rem;
background: #f7fafc;
border-radius: 12px;
transition: background 0.2s ease;
}
.access-item:hover {
background: #edf2f7;
}
.access-icon {
font-size: 1.5rem;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
background: white;
border-radius: 10px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.access-content {
flex: 1;
}
.access-content h4 {
color: #2d3748;
font-size: 1rem;
font-weight: 600;
margin-bottom: 0.25rem;
}
.access-content p {
color: #718096;
font-size: 0.9rem;
}
.access-action {
padding: 0.5rem 1rem;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
}
.access-action:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
.alerts-container {
background: white;
border-radius: 16px;
padding: 2rem;
margin-top: 2rem;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.alerts-list {
display: flex;
flex-direction: column;
gap: 1rem;
}
.alert-item {
display: flex;
align-items: center;
gap: 1rem;
padding: 1.25rem;
border-radius: 12px;
border-left: 4px solid;
}
.alert-item.warning {
background: rgba(254, 235, 200, 0.3);
border-left-color: #f6ad55;
}
.alert-item.info {
background: rgba(190, 227, 248, 0.3);
border-left-color: #4299e1;
}
.alert-icon {
font-size: 1.5rem;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
background: white;
border-radius: 10px;
}
.alert-content {
flex: 1;
}
.alert-content h4 {
color: #2d3748;
font-size: 1rem;
font-weight: 600;
margin-bottom: 0.25rem;
}
.alert-content p {
color: #718096;
font-size: 0.9rem;
}
.alert-action {
padding: 0.5rem 1rem;
background: white;
color: #4a5568;
border: 2px solid #e2e8f0;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
}
.alert-action:hover {
background: #f7fafc;
border-color: #cbd5e0;
}
@media (prefers-color-scheme: dark) {
.storage-overview,
.quick-access,
.alerts-container {
background: rgba(30, 41, 59, 0.95);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.section-title {
color: #f1f5f9;
}
.storage-summary {
color: #cbd5e1;
}
.summary-text strong {
color: #f1f5f9;
}
.main-progress-container {
background: rgba(30, 41, 59, 0.7);
}
.progress-label {
color: #cbd5e1;
}
.progress-details {
color: #94a3b8;
}
.access-item {
background: rgba(30, 41, 59, 0.7);
}
.access-item:hover {
background: rgba(41, 53, 73, 0.9);
}
.access-icon {
background: rgba(30, 41, 59, 0.9);
}
.access-content h4 {
color: #f1f5f9;
}
.alert-item.warning {
background: rgba(116, 66, 16, 0.4);
border-left-color: #f6ad55;
}
.alert-item.info {
background: rgba(42, 67, 101, 0.4);
border-left-color: #4299e1;
}
.alert-icon {
background: rgba(30, 41, 59, 0.9);
color: #cbd5e1;
}
.alert-content h4 {
color: #f1f5f9 !important;
font-weight: 700;
}
.alert-content p {
color: #cbd5e1 !important;
opacity: 0.9;
}
.alert-action {
background: rgba(30, 41, 59, 0.9);
color: #cbd5e1;
border-color: #4a5568;
}
.alert-action:hover {
background: rgba(41, 53, 73, 0.95);
border-color: #667eea;
}
}
@media (max-width: 768px) {
.section-header {
flex-direction: column;
align-items: flex-start;
gap: 1rem;
}
.storage-summary {
flex-direction: column;
gap: 0.5rem;
}
.access-item {
flex-direction: column;
text-align: center;
}
.access-content {
text-align: center;
}
.alert-item {
flex-direction: column;
text-align: center;
}
.alert-content {
text-align: center;
}
}
.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
display: none;
justify-content: center;
align-items: center;
z-index: 9999;
backdrop-filter: blur(4px);
}
.modal {
background: white;
padding: 2rem;
border-radius: 16px;
min-width: 400px;
max-width: 90%;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
animation: modalSlideIn 0.3s ease-out;
}
@keyframes modalSlideIn {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.modal h3 {
margin-bottom: 1.5rem;
color: #2d3748;
font-size: 1.5rem;
}
.form-group {
margin-bottom: 1.5rem;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
font-weight: 600;
color: #4a5568;
}
.form-group input {
width: 100%;
padding: 0.75rem 1rem;
border: 2px solid #e2e8f0;
border-radius: 8px;
font-size: 1rem;
}
.form-group input:focus {
outline: none;
border-color: #667eea;
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.modal-actions {
display: flex;
gap: 1rem;
justify-content: flex-end;
margin-top: 2rem;
}
@media (prefers-color-scheme: dark) {
.modal {
background: #1a202c;
color: #f7fafc;
}
.modal h3 {
color: #f7fafc;
}
.form-group label {
color: #cbd5e0;
}
.form-group input {
background: #2d3748;
border-color: #4a5568;
color: #f7fafc;
}
.form-group input:focus {
border-color: #667eea;
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}
}
.folder-select, .file-input {
width: 100%;
padding: 0.75rem 1rem;
border: 2px solid #e2e8f0;
border-radius: 8px;
font-size: 1rem;
background: white;
}
.folder-select:focus, .file-input:focus {
outline: none;
border-color: #667eea;
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.file-preview {
padding: 1rem;
background: #f7fafc;
border-radius: 8px;
border: 2px dashed #cbd5e0;
}
.file-info {
margin-top: 0.5rem;
font-size: 0.9rem;
color: #718096;
}
@media (prefers-color-scheme: dark) {
.folder-select, .file-input {
background: #2d3748;
border-color: #4a5568;
color: #f7fafc;
}
.file-preview {
background: rgba(30, 41, 59, 0.7);
border-color: #4a5568;
}
.file-info {
color: #cbd5e0;
}
}
@keyframes slideIn {
from {
transform: translateX(100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
@keyframes slideOut {
from {
transform: translateX(0);
opacity: 1;
}
to {
transform: translateX(100%);
opacity: 0;
}
}
/* ========== СТРАНИЦА ПАПКИ ========== */
.folder-container {
width: 100%;
max-width: 1400px;
margin: 0 auto;
padding: 2rem;
animation: fadeIn 0.6s ease-out;
}
/* Заголовок папки */
.folder-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 2rem;
padding-bottom: 1.5rem;
border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}
.folder-info {
flex: 1;
}
.folder-title {
display: flex;
align-items: center;
gap: 0.75rem;
font-size: 2rem;
font-weight: 800;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
margin-bottom: 0.5rem;
}
.folder-icon {
font-size: 2.5rem;
}
.folder-stats {
display: flex;
align-items: center;
gap: 0.75rem;
color: #718096;
font-size: 0.95rem;
flex-wrap: wrap;
}
.stat-item {
font-weight: 500;
}
.stat-separator {
color: #cbd5e0;
}
.folder-actions {
display: flex;
gap: 1rem;
}
/* Действия с файлами */
.file-actions-section {
background: white;
border-radius: 16px;
padding: 1.5rem;
margin-bottom: 2rem;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.file-actions-section .section-title {
font-size: 1.5rem;
font-weight: 700;
color: #2d3748;
margin-bottom: 1.25rem;
}
.action-buttons {
display: flex;
align-items: center;
gap: 1rem;
flex-wrap: wrap;
}
.selection-controls {
margin-left: auto;
}
.checkbox-label {
display: flex;
align-items: center;
gap: 0.5rem;
cursor: pointer;
color: #4a5568;
font-weight: 500;
user-select: none;
}
.checkbox-label input {
display: none;
}
.checkmark {
width: 18px;
height: 18px;
border: 2px solid #cbd5e0;
border-radius: 4px;
display: inline-flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
}
.checkbox-label input:checked + .checkmark {
background: #667eea;
border-color: #667eea;
}
.checkbox-label input:checked + .checkmark::after {
content: '✓';
color: white;
font-size: 12px;
font-weight: bold;
}
.checkbox-label input:indeterminate + .checkmark {
background: #667eea;
border-color: #667eea;
}
.checkbox-label input:indeterminate + .checkmark::after {
content: '—';
color: white;
font-size: 14px;
font-weight: bold;
}
/* Сетка файлов */
.files-section {
background: white;
border-radius: 16px;
padding: 2rem;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.empty-state {
text-align: center;
padding: 3rem 2rem;
}
.empty-icon {
font-size: 4rem;
margin-bottom: 1.5rem;
opacity: 0.5;
}
.empty-state h3 {
font-size: 1.5rem;
color: #2d3748;
margin-bottom: 0.5rem;
}
.empty-state p {
color: #718096;
margin-bottom: 1.5rem;
}
.files-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 1.25rem;
}
.file-card {
background: #f7fafc;
border-radius: 12px;
padding: 1.25rem;
transition: all 0.3s ease;
border: 2px solid transparent;
position: relative;
display: flex;
flex-direction: column;
}
.file-card:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
border-color: rgba(102, 126, 234, 0.3);
}
.file-card.selected {
background: linear-gradient(135deg, #667eea10 0%, #764ba210 100%);
border-color: #667eea;
box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}
.file-card-header {
display: flex;
align-items: center;
gap: 0.75rem;
margin-bottom: 1rem;
}
.file-checkbox {
cursor: pointer;
display: flex;
align-items: center;
}
.file-checkbox input {
display: none;
}
.file-checkbox .checkmark {
width: 16px;
height: 16px;
}
.file-icon {
font-size: 2rem;
width: 48px;
height: 48px;
display: flex;
align-items: center;
justify-content: center;
background: white;
border-radius: 10px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.file-info {
flex: 1;
}
.file-name {
font-size: 1.1rem;
font-weight: 600;
color: #2d3748;
margin-bottom: 0.75rem;
word-break: break-word;
line-height: 1.4;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.file-details {
display: flex;
flex-direction: column;
gap: 0.25rem;
font-size: 0.85rem;
}
.detail-item {
display: flex;
justify-content: space-between;
align-items: center;
}
.detail-label {
color: #718096;
font-weight: 500;
}
.detail-value {
color: #4a5568;
font-weight: 600;
}
.file-card-actions {
display: flex;
gap: 0.5rem;
margin-top: 1rem;
justify-content: flex-end;
}
.file-action-btn {
width: 36px;
height: 36px;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
border: none;
cursor: pointer;
transition: all 0.2s ease;
font-size: 1.1rem;
}
.download-btn {
text-decoration: none !important;
background: none !important;
border: none !important;
outline: none !important;
box-shadow: none !important;
position: relative;
color: white;
}
.download-btn:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
.delete-btn {
background: none !important;
border: none !important;
outline: none !important;
box-shadow: none !important;
position: relative;
background: white;
color: #fc8181;
}
.delete-btn:hover {
background: #fed7d7;
transform: translateY(-2px);
}
.delete-form {
display: inline;
}
.btn-danger {
background: linear-gradient(135deg, #fc8181 0%, #f56565 100%);
color: white;
}
.btn-danger:hover {
background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(245, 101, 101, 0.3);
}
.actions-title {
font-size: 1.5rem;
font-weight: 700;
color: #2d3748;
margin-bottom: 1.5rem;
text-align: center;
}
.actions-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1rem;
}
.actions-grid .action-btn {
padding: 2rem 1rem;
background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
border: 2px dashed #cbd5e0;
border-radius: 16px;
display: flex;
flex-direction: column;
align-items: center;
gap: 0.75rem;
cursor: pointer;
transition: all 0.3s ease;
width: 100%;
height: auto;
box-sizing: border-box;
}
.actions-grid .action-btn:hover {
background: linear-gradient(135deg, #667eea25 0%, #764ba225 100%);
border-color: #667eea;
transform: translateY(-3px);
}
.actions-grid .action-icon {
font-size: 2.5rem;
}
.actions-grid .action-text {
font-size: 1rem;
font-weight: 600;
color: #4a5568;
}
/* Адаптивность */
@media (max-width: 1024px) {
.files-grid {
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
}
@media (max-width: 768px) {
.folder-container {
padding: 1rem;
}
.folder-header {
flex-direction: column;
gap: 1rem;
}
.folder-title {
font-size: 1.75rem;
}
.folder-stats {
flex-direction: column;
align-items: flex-start;
gap: 0.25rem;
}
.stat-separator {
display: none;
}
.action-buttons {
flex-direction: column;
align-items: stretch;
}
.selection-controls {
margin-left: 0;
margin-top: 0.5rem;
}
.files-grid {
grid-template-columns: 1fr;
}
.actions-grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 480px) {
.file-card {
padding: 1rem;
}
.file-card-actions {
flex-direction: column;
}
.file-action-btn {
width: 100%;
}
.actions-grid {
grid-template-columns: 1fr;
}
.actions-grid .action-btn {
padding: 1.5rem 1rem;
}
}
/* Темная тема */
@media (prefers-color-scheme: dark) {
.folder-header {
border-bottom-color: rgba(255, 255, 255, 0.1);
}
.folder-title {
background: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
-webkit-background-clip: text;
background-clip: text;
}
.folder-stats {
color: #94a3b8;
}
.file-actions-section,
.files-section,
.quick-actions {
background: rgba(30, 41, 59, 0.95);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.file-actions-section .section-title,
.actions-title {
color: #f1f5f9;
}
.checkbox-label {
color: #cbd5e1;
}
.checkmark {
border-color: #475569;
}
.empty-state h3 {
color: #f1f5f9;
}
.empty-state p {
color: #94a3b8;
}
.file-card {
background: rgba(30, 41, 59, 0.7);
border-color: rgba(255, 255, 255, 0.1);
}
.file-card:hover {
border-color: #818cf8;
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
.file-card.selected {
background: linear-gradient(135deg, rgba(129, 140, 248, 0.2) 0%, rgba(192, 132, 252, 0.2) 100%);
border-color: #818cf8;
}
.file-icon {
background: rgba(30, 41, 59, 0.9);
color: #cbd5e1;
}
.file-name {
color: #f1f5f9;
}
.detail-label {
color: #94a3b8;
}
.detail-value {
color: #cbd5e1;
}
.delete-btn {
background: rgba(30, 41, 59, 0.9);
border-color: #4a5568;
color: #feb2b2;
}
.delete-btn:hover {
background: rgba(254, 178, 178, 0.1);
border-color: #fc8181;
}
.checkmark {
border-color: #475569;
}
.checkbox-label input:checked + .checkmark,
.checkbox-label input:indeterminate + .checkmark {
background: #818cf8;
border-color: #818cf8;
}
/* Темная тема для быстрых действий */
.quick-actions {
background: rgba(30, 41, 59, 0.95);
}
.actions-grid .action-btn {
background: linear-gradient(135deg, rgba(129, 140, 248, 0.1) 0%, rgba(192, 132, 252, 0.1) 100%);
border-color: #475569;
}
.actions-grid .action-btn:hover {
background: linear-gradient(135deg, rgba(129, 140, 248, 0.2) 0%, rgba(192, 132, 252, 0.2) 100%);
border-color: #818cf8;
}
.actions-grid .action-text {
color: #cbd5e1;
}
}
.btn-success {
background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
color: white;
}
.btn-success:hover {
background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}
@media (max-width: 768px) {
header {
position: sticky;
top: 0;
padding: 0.5rem 1rem;
font-size: 1.1rem;
border-radius: 0;
box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}
main.container {
margin-top: 0;
padding-top: 1rem;
}
}
.header-actions {
display: flex;
gap: 0.75rem;
flex-wrap: wrap;
}
@media (max-width: 768px) {
.header-actions {
flex-direction: column;
gap: 0.5rem;
margin-top: 1rem;
width: 100%;
}
.header-actions form {
width: 100%;
}
.header-actions .btn {
width: 100%;
justify-content: center;
padding: 0.75rem 1rem;
font-size: 1rem;
}
}