Files
minicrm/public/style.css
2025-12-14 22:57:12 +05:00

1737 lines
34 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: #333;
min-height: 100vh;
}
.container {
max-width: 99%;
margin: 0 auto;
padding: 20px;
display: none;
}
header {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border-radius: 15px;
padding: 1.5rem;
margin-bottom: 25px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
}
header h1 {
margin-bottom: 1.2rem;
text-align: center;
color: #2c3e50;
font-size: 2.2rem;
font-weight: 700;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.user-info {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 1.2rem;
padding: 12px 20px;
background: linear-gradient(135deg, #667eea, #764ba2);
border-radius: 10px;
color: white;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.user-info span {
font-weight: 600;
font-size: 1.1rem;
}
.user-info button {
background: rgba(255, 255, 255, 0.2);
color: white;
border: 1px solid rgba(255, 255, 255, 0.3);
padding: 8px 16px;
border-radius: 8px;
cursor: pointer;
font-weight: 600;
transition: all 0.3s ease;
}
.user-info button:hover {
background: rgba(255, 255, 255, 0.3);
transform: translateY(-2px);
}
nav {
display: flex;
gap: 12px;
flex-wrap: wrap;
}
nav button {
background: linear-gradient(135deg, #3498db, #2980b9);
color: white;
border: none;
padding: 12px 24px;
border-radius: 10px;
cursor: pointer;
flex: 1;
min-width: 140px;
font-weight: 600;
font-size: 1rem;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}
nav button:hover {
transform: translateY(-3px);
box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}
.section {
display: none;
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
padding: 25px;
border-radius: 15px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
margin-bottom: 20px;
}
.section.active {
display: block;
animation: fadeIn 0.5s ease-in;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
.form-group {
margin-bottom: 20px;
}
label {
display: block;
margin-bottom: 8px;
font-weight: 600;
color: #2c3e50;
font-size: 1rem;
}
input[type="text"],
input[type="password"],
input[type="datetime-local"],
textarea,
select {
width: 100%;
padding: 12px 16px;
border: 2px solid #e9ecef;
border-radius: 10px;
font-size: 1rem;
transition: all 0.3s ease;
background: rgba(255, 255, 255, 0.9);
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="datetime-local"]:focus,
textarea:focus,
select:focus {
outline: none;
border-color: #3498db;
box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
transform: translateY(-2px);
}
textarea {
resize: vertical;
min-height: 120px;
font-family: inherit;
}
button {
background: linear-gradient(135deg, #27ae60, #219a52);
color: white;
padding: 12px 30px;
border: none;
border-radius: 10px;
cursor: pointer;
font-size: 1rem;
font-weight: 600;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}
button:hover {
transform: translateY(-3px);
box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}
button.delete-btn {
background: linear-gradient(135deg, #e74c3c, #c0392b);
box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}
button.delete-btn:hover {
box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}
button.edit-btn {
background: linear-gradient(135deg, #f39c12, #e67e22);
box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}
button.edit-btn:hover {
box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}
button.copy-btn {
background: linear-gradient(135deg, #3498db, #2980b9);
box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}
button.copy-btn:hover {
box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}
button.restore-btn {
background: linear-gradient(135deg, #9b59b6, #8e44ad);
box-shadow: 0 4px 15px rgba(155, 89, 182, 0.3);
}
button.restore-btn:hover {
box-shadow: 0 6px 20px rgba(155, 89, 182, 0.4);
}
button.edit-date-btn {
background: linear-gradient(135deg, #17a2b8, #138496);
padding: 6px 12px;
font-size: 0.85rem;
box-shadow: 0 2px 8px rgba(23, 162, 184, 0.3);
}
button.edit-date-btn:hover {
box-shadow: 0 4px 12px rgba(23, 162, 184, 0.4);
}
#tasks-controls {
margin-bottom: 20px;
padding: 15px 20px;
background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
border-radius: 10px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
#tasks-controls label {
display: flex;
align-items: center;
gap: 10px;
margin: 0;
font-weight: normal;
color: #2c3e50;
cursor: pointer;
}
#tasks-controls input[type="checkbox"] {
width: 18px;
height: 18px;
cursor: pointer;
}
.task-card {
border: none;
border-radius: 15px;
padding: 0;
margin-bottom: 20px;
background: rgba(255, 255, 255, 0.9);
position: relative;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
border-left: 5px solid #3498db;
}
.task-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.task-card.deleted {
background: linear-gradient(135deg, #f8d7da, #f5c6cb);
border-left-color: #e74c3c;
opacity: 0.8;
}
.task-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 0;
gap: 20px;
}
.task-title {
font-size: 1.2rem;
font-weight: 700;
color: #2c3e50;
flex: 1;
line-height: 1.4;
cursor: pointer;
padding: 15px;
border-radius: 10px;
background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(52, 152, 219, 0.05));
transition: all 0.3s ease;
}
.task-title:hover {
background: linear-gradient(135deg, rgba(52, 152, 219, 0.15), rgba(52, 152, 219, 0.1));
transform: translateY(-2px);
}
.task-status {
padding: 8px 16px;
border-radius: 25px;
font-size: 0.9rem;
font-weight: 600;
white-space: nowrap;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.status-purple {
background: linear-gradient(135deg, #9b59b6, #8e44ad);
color: white;
}
.status-red {
background: linear-gradient(135deg, #e74c3c, #c0392b);
color: white;
}
.status-orange {
background: linear-gradient(135deg, #f39c12, #e67e22);
color: white;
}
.status-green {
background: linear-gradient(135deg, #27ae60, #219a52);
color: white;
}
.status-gray {
background: linear-gradient(135deg, #95a5a6, #7f8c8d);
color: white;
}
.status-darkred {
background: linear-gradient(135deg, #8b0000, #660000);
color: white;
}
.deleted-badge {
background: #e74c3c;
color: white;
padding: 4px 12px;
border-radius: 20px;
font-size: 0.8rem;
margin-left: 10px;
font-weight: 600;
}
.copy-badge {
background: #3498db;
color: white;
padding: 4px 12px;
border-radius: 20px;
font-size: 0.8rem;
margin-left: 10px;
font-weight: 600;
}
.role-badge {
font-size: 0.8rem;
padding: 4px 10px;
border-radius: 15px;
margin-left: 8px;
font-weight: 600;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.role-admin {
background: linear-gradient(135deg, #e74c3c, #c0392b);
color: white;
}
.role-creator {
background: linear-gradient(135deg, #27ae60, #219a52);
color: white;
}
.role-executor {
background: linear-gradient(135deg, #3498db, #2980b9);
color: white;
}
.task-original {
margin: 10px 0;
padding: 10px 15px;
background: linear-gradient(135deg, #e8f4fd, #d4e6f1);
border-radius: 8px;
border-left: 4px solid #3498db;
}
.task-original small {
color: #2c3e50;
font-style: italic;
font-size: 0.9rem;
}
.task-description {
margin: 15px 0;
padding: 15px;
background: #f8f9fa;
border-radius: 8px;
line-height: 1.6;
color: #495057;
}
.task-dates-files {
margin: 15px 0;
padding: 15px;
background: linear-gradient(135deg, #fff3cd, #ffeaa7);
border-radius: 10px;
border-left: 4px solid #f39c12;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 10px;
}
.task-dates-files .task-dates {
flex: 1;
min-width: 250px;
font-size: 0.95rem;
color: #856404;
}
.task-dates-files .file-list {
flex: 1;
min-width: 250px;
font-size: 0.95rem;
color: #856404;
}
.task-dates-files .file-list strong {
display: block;
margin-bottom: 5px;
}
.task-dates-files .files-placeholder {
color: #6c757d;
font-style: italic;
}
.task-dates-files strong {
color: #e67e22;
}
.task-assignments {
margin: 20px 0;
}
.assignment {
display: flex;
align-items: center;
margin: 10px 0;
padding: 12px 15px;
border-radius: 10px;
background: rgba(248, 249, 250, 0.8);
transition: all 0.3s ease;
border: 1px solid #e9ecef;
}
.assignment:hover {
background: rgba(233, 236, 239, 0.8);
transform: translateX(5px);
}
.assignment.overdue {
background: linear-gradient(135deg, #f8d7da, #f5c6cb);
border: 1px solid #e74c3c;
animation: pulse 2s infinite;
}
@keyframes pulse {
0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4); }
70% { box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); }
100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}
.assignment-status {
width: 16px;
height: 16px;
border-radius: 50%;
margin-right: 15px;
flex-shrink: 0;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.status-assigned {
background: linear-gradient(135deg, #e74c3c, #c0392b);
}
.status-in_progress {
background: linear-gradient(135deg, #f39c12, #e67e22);
}
.status-completed {
background: linear-gradient(135deg, #27ae60, #219a52);
}
.status-overdue {
background: linear-gradient(135deg, #8b0000, #660000);
}
.assignment-dates {
margin-top: 8px;
font-size: 0.85rem;
color: #6c757d;
}
.assignment-dates small {
display: block;
margin: 3px 0;
}
.action-buttons {
margin-top: 12px;
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.action-buttons button {
margin-right: 0;
padding: 8px 16px;
font-size: 0.9rem;
border-radius: 8px;
}
.task-actions {
position: absolute;
bottom: 20px;
right: 20px;
display: flex;
gap: 8px;
}
.task-actions button {
padding: 8px 12px;
font-size: 1rem;
border-radius: 8px;
min-width: auto;
}
.file-list {
margin-top: 15px;
padding: 15px;
background: #f8f9fa;
border-radius: 10px;
}
.file-item {
display: flex;
align-items: center;
padding: 10px;
background: white;
margin-bottom: 8px;
border-radius: 8px;
border: 1px solid #e9ecef;
transition: all 0.3s ease;
}
.file-item:hover {
transform: translateX(5px);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.file-item a {
color: #3498db;
text-decoration: none;
margin-right: 15px;
font-weight: 500;
transition: color 0.3s ease;
}
.file-item a:hover {
color: #2980b9;
text-decoration: underline;
}
.file-item small {
color: #6c757d;
margin-left: auto;
font-size: 0.85rem;
}
.task-meta {
margin-top: 15px;
padding-top: 15px;
border-top: 2px solid #e9ecef;
}
.task-meta small {
color: #6c757d;
font-size: 0.9rem;
}
.log-entry {
padding: 15px;
border-bottom: 1px solid #e9ecef;
font-size: 0.95rem;
transition: all 0.3s ease;
}
.log-entry:hover {
background: #f8f9fa;
border-radius: 8px;
}
.log-time {
color: #6c757d;
font-size: 0.85rem;
margin-bottom: 5px;
}
.modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(5px);
animation: fadeIn 0.3s ease;
}
.modal-content {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(20px);
margin: 8% auto;
padding: 30px;
border-radius: 20px;
width: 90%;
max-width: 600px;
max-height: 85vh;
overflow-y: auto;
position: relative;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
border: 1px solid rgba(255, 255, 255, 0.3);
animation: slideIn 0.3s ease;
}
@keyframes slideIn {
from { transform: translateY(-50px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
.close {
color: #6c757d;
float: right;
font-size: 28px;
font-weight: bold;
cursor: pointer;
position: absolute;
right: 20px;
top: 15px;
transition: all 0.3s ease;
}
.close:hover {
color: #e74c3c;
transform: rotate(90deg);
}
.checkbox-group {
max-height: 250px;
overflow-y: auto;
border: 2px solid #e9ecef;
padding: 15px;
border-radius: 10px;
background: rgba(255, 255, 255, 0.8);
}
.checkbox-item {
margin: 8px 0;
padding: 8px 12px;
border-radius: 8px;
transition: all 0.3s ease;
}
.checkbox-item:hover {
background: rgba(52, 152, 219, 0.1);
transform: translateX(5px);
}
.checkbox-item label {
display: flex;
align-items: center;
gap: 12px;
margin: 0;
font-weight: normal;
cursor: pointer;
color: #495057;
}
.checkbox-item input[type="checkbox"] {
width: 18px;
height: 18px;
cursor: pointer;
}
#login-modal .modal-content {
background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
text-align: center;
max-width: 500px;
}
#login-form .form-group {
display: flex;
flex-direction: column;
align-items: center;
}
#login-form input[type="text"],
#login-form input[type="password"] {
width: 100%;
max-width: 300px;
margin: 0 auto;
padding: 12px 16px;
border: 2px solid #e9ecef;
border-radius: 10px;
font-size: 1rem;
transition: all 0.3s ease;
}
#login-form input[type="text"]:focus,
#login-form input[type="password"]:focus {
outline: none;
border-color: #3498db;
box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
transform: translateY(-2px);
}
.test-users {
margin-top: 25px;
padding: 20px;
background: linear-gradient(135deg, #f8f9fa, #e9ecef);
border-radius: 15px;
border-left: 5px solid #3498db;
}
.test-users h3 {
margin-bottom: 15px;
color: #2c3e50;
font-size: 1.2rem;
}
.test-users ul {
list-style: none;
padding: 0;
}
.test-users li {
padding: 8px 0;
border-bottom: 1px solid #dee2e6;
color: #495057;
}
.test-users li:last-child {
border-bottom: none;
}
.test-users strong {
color: #2c3e50;
}
.loading {
text-align: center;
padding: 40px 20px;
color: #6c757d;
font-size: 1.1rem;
}
.error {
background: linear-gradient(135deg, #f8d7da, #f5c6cb);
color: #721c24;
padding: 15px 20px;
border-radius: 10px;
margin: 15px 0;
border: 1px solid #f5c6cb;
border-left: 5px solid #e74c3c;
}
@media (max-width: 768px) {
.container {
padding: 10px;
}
.task-header {
flex-direction: column;
align-items: flex-start;
gap: 15px;
}
.task-actions {
position: static;
margin-top: 15px;
justify-content: center;
width: 100%;
}
nav {
flex-direction: column;
}
.modal-content {
width: 95%;
margin: 5% auto;
padding: 20px;
}
header h1 {
font-size: 1.8rem;
}
.user-info {
flex-direction: column;
gap: 10px;
text-align: center;
}
.assignment {
flex-direction: column;
align-items: flex-start;
gap: 10px;
}
.action-buttons {
width: 100%;
justify-content: flex-start;
}
#login-form input[type="text"],
#login-form input[type="password"] {
max-width: 100%;
}
}
@media (max-width: 480px) {
.section {
padding: 15px;
}
.task-card {
padding: 15px;
}
.task-title {
font-size: 1.2rem;
}
.task-status {
font-size: 0.8rem;
padding: 6px 12px;
}
.task-actions {
gap: 5px;
}
.task-actions button {
padding: 8px 12px;
font-size: 0.8rem;
}
nav button {
padding: 10px 15px;
font-size: 0.9rem;
}
}
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 10px;
}
::-webkit-scrollbar-thumb {
background: linear-gradient(135deg, #3498db, #2980b9);
border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
background: linear-gradient(135deg, #2980b9, #1f618d);
}
button:focus,
input:focus,
textarea:focus,
select:focus {
outline: 2px solid #3498db;
outline-offset: 2px;
}
@media print {
.task-actions,
nav,
.user-info button {
display: none !important;
}
.task-card {
break-inside: avoid;
box-shadow: none;
border: 1px solid #ddd;
}
}
.filters {
display: flex;
gap: 20px;
margin-bottom: 15px;
flex-wrap: wrap;
}
.filter-group {
display: flex;
flex-direction: column;
gap: 5px;
}
.filter-group label {
font-weight: 600;
color: #2c3e50;
margin-bottom: 0;
}
.filter-group input,
.filter-group select {
padding: 8px 12px;
border: 2px solid #e9ecef;
border-radius: 8px;
font-size: 0.9rem;
}
.user-search {
margin-bottom: 10px;
}
.user-search input {
width: 100%;
padding: 8px 12px;
border: 2px solid #e9ecef;
border-radius: 8px;
font-size: 0.9rem;
}
.status-yellow {
background: linear-gradient(135deg, #ffc107, #e0a800);
color: white;
}
.task-card.closed {
background: linear-gradient(135deg, #e9ecef, #dee2e6);
border-left-color: #6c757d;
opacity: 0.8;
}
.closed-badge {
background: #6c757d;
color: white;
padding: 4px 12px;
border-radius: 20px;
font-size: 0.8rem;
margin-left: 10px;
font-weight: 600;
}
.rework-comment {
margin: 10px 0;
padding: 12px 15px;
background: linear-gradient(135deg, #fff3cd, #ffeaa7);
border-radius: 8px;
border-left: 4px solid #ffc107;
color: #856404;
}
.assignment-rework-comment {
margin-top: 8px;
padding: 8px;
background: #fff3cd;
border-radius: 6px;
border-left: 3px solid #ffc107;
}
.assignment.rework {
background: linear-gradient(135deg, #fff3cd, #ffeaa7);
border: 1px solid #ffc107;
}
button.rework-btn {
background: linear-gradient(135deg, #ffc107, #e0a800);
box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}
button.rework-btn:hover {
box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}
button.close-btn {
background: linear-gradient(135deg, #6c757d, #5a6268);
box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}
button.close-btn:hover {
box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}
button.reopen-btn {
background: linear-gradient(135deg, #20c997, #1ea085);
box-shadow: 0 4px 15px rgba(32, 201, 151, 0.3);
}
button.reopen-btn:hover {
box-shadow: 0 6px 20px rgba(32, 201, 151, 0.4);
}
.show-deleted-label {
display: flex;
align-items: center;
gap: 8px;
font-weight: normal;
color: #2c3e50;
cursor: pointer;
}
.show-deleted-label input {
margin: 0;
}
.show-deleted-label[style*="display: none"] {
display: none !important;
}
.deadline-badge {
padding: 4px 12px;
border-radius: 20px;
font-size: 0.8rem;
margin-left: 10px;
font-weight: 600;
}
.deadline-48h {
background: linear-gradient(135deg, #ffc107, #e0a800);
color: #856404;
}
.deadline-24h {
background: linear-gradient(135deg, #fd7e14, #e8590c);
color: white;
}
.deadline-indicator {
padding: 2px 8px;
border-radius: 12px;
font-size: 0.7rem;
margin-left: 8px;
font-weight: 600;
}
.task-title .deadline-badge {
vertical-align: middle;
}
.filter-group select {
min-width: 150px;
}
.filters {
gap: 15px;
margin-bottom: 15px;
}
@media (max-width: 768px) {
.filters {
flex-direction: column;
gap: 10px;
}
.filter-group select {
width: 100%;
}
}
.admin-container {
max-width: 1400px;
margin: 0 auto;
padding: 20px;
display: none;
}
.admin-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 30px;
padding-bottom: 20px;
border-bottom: 2px solid #e9ecef;
}
.admin-tabs {
display: flex;
gap: 10px;
margin-bottom: 20px;
border-bottom: 2px solid #e9ecef;
padding-bottom: 10px;
}
.admin-tab {
padding: 10px 20px;
background: #f8f9fa;
border: none;
border-radius: 8px 8px 0 0;
cursor: pointer;
font-weight: 600;
color: #495057;
transition: all 0.3s ease;
}
.admin-tab:hover {
background: #e9ecef;
}
.admin-tab.active {
background: #3498db;
color: white;
}
.admin-section {
display: none;
padding: 20px;
background: white;
border-radius: 10px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.admin-section.active {
display: block;
animation: fadeIn 0.3s ease;
}
.users-table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
}
.users-table th,
.users-table td {
padding: 12px;
text-align: left;
border-bottom: 1px solid #e9ecef;
}
.users-table th {
background: #f8f9fa;
font-weight: 600;
color: #495057;
}
.users-table tr:hover {
background: #f8f9fa;
}
.user-actions {
display: flex;
gap: 8px;
}
.user-actions button {
padding: 6px 12px;
font-size: 0.85rem;
border-radius: 6px;
}
.ldap-badge {
background: #3498db;
color: white;
padding: 3px 8px;
border-radius: 12px;
font-size: 0.75rem;
margin-left: 5px;
}
.admin-badge {
background: #e74c3c;
color: white;
padding: 3px 8px;
border-radius: 12px;
font-size: 0.75rem;
margin-left: 5px;
}
.form-row {
display: flex;
gap: 20px;
margin-bottom: 20px;
}
.form-row .form-group {
flex: 1;
}
.password-fields {
background: #f8f9fa;
padding: 15px;
border-radius: 8px;
margin-bottom: 20px;
border-left: 4px solid #3498db;
}
.modal-lg {
max-width: 800px;
}
.search-container {
display: flex;
gap: 10px;
margin-bottom: 20px;
}
.search-container input {
flex: 1;
}
.stats-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
margin-bottom: 30px;
}
.stat-card {
background: white;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
border-left: 4px solid #3498db;
}
.stat-card h3 {
margin: 0 0 10px 0;
color: #495057;
font-size: 1.1rem;
}
.stat-value {
font-size: 2rem;
font-weight: 700;
color: #2c3e50;
margin-bottom: 10px;
}
.stat-desc {
color: #6c757d;
font-size: 0.9rem;
}
.stat-card.admin-stat {
border-left-color: #e74c3c;
}
.stat-card.ldap-stat {
border-left-color: #2ecc71;
}
.stat-card.local-stat {
border-left-color: #f39c12;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.error {
background: linear-gradient(135deg, #f8d7da, #f5c6cb);
color: #721c24;
padding: 15px 20px;
border-radius: 10px;
margin: 15px 0;
border: 1px solid #f5c6cb;
border-left: 5px solid #e74c3c;
text-align: center;
}
.task-number {
background: #3498db;
color: white;
padding: 3px 8px;
border-radius: 12px;
font-size: 0.8rem;
margin-right: 10px;
font-weight: bold;
}
.task-header .task-title .expand-icon {
font-size: 0.8rem;
color: #6c757d;
margin-left: auto;
padding-left: 15px;
}
.task-content {
padding: 20px;
border-top: 1px solid #e9ecef;
margin-top: 10px;
animation: fadeIn 0.3s ease;
overflow: hidden;
transition: max-height 0.3s ease;
max-height: 0;
}
.task-content.expanded {
max-height: 2000px;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(-10px); }
to { opacity: 1; transform: translateY(0); }
}
.tasks-no-date-btn {
background: linear-gradient(135deg, #17a2b8, #138496);
box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}
.tasks-no-date-btn.active {
background: linear-gradient(135deg, #138496, #117a8b);
box-shadow: 0 6px 20px rgba(23, 162, 184, 0.4);
}
.no-date-badge {
background: linear-gradient(135deg, #6c757d, #5a6268);
color: white;
padding: 3px 8px;
border-radius: 12px;
font-size: 0.75rem;
margin-left: 10px;
font-weight: 600;
}
@media (max-width: 768px) {
.task-dates-files {
flex-direction: column;
align-items: flex-start;
gap: 10px;
}
.task-dates-files .task-dates,
.task-dates-files .file-list {
min-width: 100%;
}
}
/* Стили для иконок файлов */
.file-icons-container {
display: flex;
flex-wrap: wrap;
gap: 15px;
margin-top: 10px;
}
.file-icon-container {
display: flex;
flex-direction: column;
align-items: center;
width: 80px;
cursor: pointer;
transition: transform 0.2s ease;
position: relative;
}
.file-icon-container:hover {
transform: translateY(-5px);
}
.file-icon {
width: 60px;
height: 60px;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.file-icon:hover {
transform: scale(1.05);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}
.file-icon::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 20px;
background: rgba(255, 255, 255, 0.2);
}
.file-extension {
color: white;
font-size: 0.8rem;
font-weight: bold;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
z-index: 1;
}
.file-name {
margin-top: 5px;
font-size: 0.75rem;
color: #495057;
text-align: center;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
transition: color 0.2s ease;
}
.file-download-link {
text-decoration: none;
color: inherit;
width: 100%;
}
.file-download-link:hover .file-name {
color: #3498db;
text-decoration: underline;
}
/* Тултип при наведении */
.file-icon-container::before {
content: attr(title);
position: absolute;
bottom: 100%;
left: 50%;
transform: translateX(-50%);
background: rgba(0, 0, 0, 0.8);
color: white;
padding: 5px 10px;
border-radius: 4px;
font-size: 0.8rem;
white-space: nowrap;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease, visibility 0.3s ease;
z-index: 100;
pointer-events: none;
}
.file-icon-container:hover::before {
opacity: 1;
visibility: visible;
}
/* Адаптивность */
@media (max-width: 768px) {
.file-icons-container {
gap: 10px;
justify-content: center;
}
.file-icon-container {
width: 70px;
}
.file-icon {
width: 50px;
height: 50px;
}
.file-extension {
font-size: 0.7rem;
}
.file-name {
font-size: 0.7rem;
}
}
@media (max-width: 480px) {
.file-icons-container {
gap: 8px;
}
.file-icon-container {
width: 60px;
}
.file-icon {
width: 45px;
height: 45px;
}
.file-extension {
font-size: 0.65rem;
}
.file-name {
font-size: 0.65rem;
}
}
.no-files {
color: #6c757d;
font-style: italic;
font-size: 0.9rem;
}
/* Сделаем файлы видимыми всегда */
.task-dates-files .file-list {
flex: 1;
min-width: 250px;
font-size: 0.95rem;
color: #856404;
}
.task-dates-files .file-list strong {
display: block;
margin-bottom: 10px;
}
/* Уменьшим отступы для компактности */
.task-dates-files {
margin: 10px 0;
padding: 12px;
background: linear-gradient(135deg, #fff3cd, #ffeaa7);
border-radius: 10px;
border-left: 4px solid #f39c12;
display: flex;
justify-content: space-between;
align-items: flex-start;
flex-wrap: wrap;
gap: 15px;
}
/* Стили для иконок файлов */
.file-icons-container {
display: flex;
flex-wrap: wrap;
gap: 15px;
margin-top: 10px;
}
.file-icon-container {
display: flex;
flex-direction: column;
align-items: center;
width: 80px;
cursor: pointer;
transition: transform 0.2s ease;
position: relative;
}
.file-icon-container:hover {
transform: translateY(-5px);
}
.file-icon {
width: 60px;
height: 60px;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.file-icon:hover {
transform: scale(1.05);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}
.file-icon::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 20px;
background: rgba(255, 255, 255, 0.2);
}
.file-extension {
color: white;
font-size: 0.8rem;
font-weight: bold;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
z-index: 1;
padding: 0 5px;
text-align: center;
line-height: 1.2;
max-width: 100%;
word-break: break-all;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
/* Для коротких текстов (1-2 символа) */
.file-extension.short {
font-size: 1rem;
}
/* Для средних текстов (3-4 символа) */
.file-extension.medium {
font-size: 0.9rem;
}
/* Для длинных текстов (5+ символов) */
.file-extension.long {
font-size: 0.7rem;
}
.file-name {
margin-top: 5px;
font-size: 0.75rem;
color: #495057;
text-align: center;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
transition: color 0.2s ease;
}
.file-download-link {
text-decoration: none;
color: inherit;
width: 100%;
}
.file-download-link:hover .file-name {
color: #3498db;
text-decoration: underline;
}
/* Тултип при наведении */
.file-icon-container::before {
content: attr(title);
position: absolute;
bottom: 100%;
left: 50%;
transform: translateX(-50%);
background: rgba(0, 0, 0, 0.8);
color: white;
padding: 5px 10px;
border-radius: 4px;
font-size: 0.8rem;
white-space: nowrap;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease, visibility 0.3s ease;
z-index: 100;
pointer-events: none;
}
.file-icon-container:hover::before {
opacity: 1;
visibility: visible;
}
/* Адаптивность */
@media (max-width: 768px) {
.file-icons-container {
gap: 10px;
justify-content: center;
}
.file-icon-container {
width: 70px;
}
.file-icon {
width: 50px;
height: 50px;
}
.file-extension {
font-size: 0.7rem;
}
.file-extension.short {
font-size: 0.9rem;
}
.file-extension.medium {
font-size: 0.8rem;
}
.file-extension.long {
font-size: 0.6rem;
}
.file-name {
font-size: 0.7rem;
}
}
@media (max-width: 480px) {
.file-icons-container {
gap: 8px;
}
.file-icon-container {
width: 60px;
}
.file-icon {
width: 45px;
height: 45px;
}
.file-extension {
font-size: 0.65rem;
}
.file-extension.short {
font-size: 0.8rem;
}
.file-extension.medium {
font-size: 0.7rem;
}
.file-extension.long {
font-size: 0.55rem;
}
.file-name {
font-size: 0.65rem;
}
}