/* Common styles for admin panel */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

/* Documents styles */
.documents-list {
    margin-top: 10px;
}

.document-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 8px;
    background-color: #f9f9f9;
}

.document-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.document-icon {
    margin-right: 10px;
    font-size: 20px;
}

.document-details {
    flex: 1;
}

.document-name {
    font-weight: 500;
    margin-bottom: 2px;
}

.document-size {
    font-size: 12px;
    color: #666;
}

.document-actions {
    display: flex;
    gap: 5px;
}

.btn-download, .btn-delete {
    padding: 4px 8px;
    font-size: 12px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.btn-download {
    background-color: #28a745;
    color: white;
}

.btn-delete {
    background-color: #dc3545;
    color: white;
}

.btn-download:hover {
    background-color: #218838;
}

.btn-delete:hover {
    background-color: #c82333;
}

/* Sorting buttons styles */
.sort-btn {
    display: inline-block;
    width: 28px;
    height: 28px;
    margin: 0 2px;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    font-size: 16px;
    text-align: center;
    line-height: 26px;
    cursor: pointer;
    transition: all 0.2s ease;
    vertical-align: middle;
}

.sort-btn:hover {
    background-color: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

/* Принудительное отображение подсказок */
.sort-btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-top: 30px;
    margin-left: -20px;
}

.sort-btn {
    position: relative;
}

/* Sidebar styles */
.sidebar {
    width: 250px;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    background-color: #343a40;
    color: white;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.sidebar h2 {
    padding: 20px;
    margin: 0;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.sidebar-menu li {
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sidebar-menu li:hover {
    background-color: #2c3136;
}

.sidebar-menu li.active {
    background-color: #007bff;
}

/* Logout button */
.logout-btn {
    width: 100%;
    padding: 15px 0;
    background-color: #dc3545;
    color: white;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
    margin-top: auto;
}

.logout-btn:hover {
    background-color: #c82333;
}

/* Main content area */
.main-content {
    margin-left: 250px;
    padding: 20px;
    min-height: 100vh;
    box-sizing: border-box;
}

.container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Common components */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn {
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0056b3;
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

/* Ширина столбца "Действия" */
th:last-child, td:last-child {
    width: 280px;
    min-width: 280px;
}

/* Выравнивание заголовка "Действия" */
th:last-child {
    text-align: center;
}

th {
    background-color: #f8f9fa;
    font-weight: bold;
}

tr:hover {
    background-color: #f5f5f5;
}

/* Alert styles */
.alert {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.modal.show {
    display: block;
}

.modal-content {
    background-color: white;
    margin: 40px auto;
    padding: 20px;
    width: 60%;
    max-width: 1200px;
    border-radius: 8px;
    position: relative;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    cursor: pointer;
}

.modal form {
    margin-top: 20px;
}

.modal .form-group {
    margin-bottom: 15px;
}

.modal .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

/* Form inputs: input, textarea, select */
.modal .form-group input,
.modal .form-group textarea,
.modal .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    font-family: Arial, sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.modal .form-group textarea {
    min-height: 120px;
    resize: none;
}

.modal .form-group select {
    background-color: white;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 3L0 1h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    padding-right: 30px;
}

/* Form validation and focus states */
.modal .form-group input:focus,
.modal .form-group textarea:focus,
.modal .form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.modal .form-group input:invalid,
.modal .form-group textarea:invalid,
.modal .form-group select:invalid {
    border-color: #dc3545;
}

/* Status badge */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.status-badge.active {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.inactive {
    background-color: #f8d7da;
    color: #721c24;
}

/* Request status badges */
.status-new { 
    background-color: #e3f2fd; 
    color: #1976d2; 
}
.status-confirmed { 
    background-color: #e8f5e8; 
    color: #2e7d32; 
}
.status-in_progress { 
    background-color: #fff3e0; 
    color: #f57c00; 
}
.status-completed { 
    background-color: #e8f5e8; 
    color: #388e3c; 
}
.status-cancelled { 
    background-color: #ffebee; 
    color: #d32f2f; 
}

/* Toggle switch */
.toggle-label {
    position: relative;
    display: flex;
    align-items: center;
    width: auto;
    height: 24px;
    cursor: pointer;
}

.toggle-label input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: relative;
    cursor: pointer;
    width: 50px;
    height: 24px;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
    margin-right: 10px;
    flex-shrink: 0;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.toggle-label input:checked + .toggle-slider {
    background-color: #28a745;
}

.toggle-label input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.toggle-text {
    margin-left: 0;
    vertical-align: middle;
    font-size: 16px;
    color: #333;
    flex: 1;
    font-weight: 500;
}

/* Notification settings styles */
.notification-main-setting {
    padding: 15px 0;
    margin-bottom: 0;
}

.notification-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 15px 0 10px 0;
}

.notification-types-section {
    margin-top: 0;
}

.notification-types-title {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    margin-bottom: 10px;
    padding-left: 5px;
}

.notification-settings .setting-group {
    margin-bottom: 8px;
    padding: 5px 0;
}

.notification-settings .setting-group label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.notification-settings .setting-group input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.1);
}

/* Action buttons */
.actions {
    width: 100px;
    text-align: center;
}

.actions .btn {
    padding: 4px 8px;
    margin: 0 2px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Photos section styles */
.photos-container {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    background-color: #f8f9fa;
    margin-bottom: 10px;
}

.photo-item {
    display: flex;
    align-items: center;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 10px;
    gap: 15px;
}

.photo-item:last-child {
    margin-bottom: 0;
}

.photo-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.photo-controls {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.photo-controls input[type="text"] {
    width: 200px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 12px;
}

.photo-controls label {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.photo-buttons {
    display: flex;
    gap: 5px;
    margin-left: auto;
}

.photo-buttons button {
    padding: 5px 8px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.btn-move-up {
    background-color: #6c757d;
    color: white;
}

.btn-move-up:hover {
    background-color: #5a6268;
}

.btn-move-down {
    background-color: #6c757d;
    color: white;
}

.btn-move-down:hover {
    background-color: #5a6268;
}

.btn-delete {
    background-color: #dc3545;
    color: white;
}

.btn-delete:hover {
    background-color: #c82333;
}

.btn-add {
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.btn-add:hover {
    background-color: #218838;
}

.btn-add i {
    margin-right: 5px;
}

/* JSON field containers */
.json-field-container {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    background-color: #f8f9fa;
    margin-bottom: 10px;
}

.json-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.json-item input {
    flex: 1;
    margin: 0;
}

.btn-remove {
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
    white-space: nowrap;
}

.btn-remove:hover {
    background-color: #c82333;
}

/* Responsive design */
@media (max-width: 1024px) {
    .modal-content {
        width: 90%;
        max-width: 1000px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
    
    .main-content {
        margin-left: 200px;
    }
    
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 20px auto;
    }
    
    .photo-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    .photo-controls input[type="text"] {
        width: 100%;
    }
}

/* View field styles */
.view-field {
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 5px;
}

/* Enhanced form layout for wider modals */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-row .form-group.full-width {
    flex: 100%;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group {
        margin-bottom: 15px;
    }
}

/* Pagination container styles */
.pagination-container {
    margin-top: 20px;
    text-align: center;
}

.pagination-container .pagination {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
}

.pagination-container .pagination li {
    margin: 0;
}

.pagination-container .pagination li a,
.pagination-container .pagination li span {
    display: inline-block;
    padding: 8px 12px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #007bff;
    background-color: white;
    transition: all 0.3s ease;
}

.pagination-container .pagination li a:hover {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination-container .pagination li .active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination-container .pagination li .disabled {
    color: #6c757d;
    cursor: not-allowed;
    background-color: #f8f9fa;
}

.pagination-container .pagination li .disabled:hover {
    background-color: #f8f9fa;
    color: #6c757d;
    border-color: #ddd;
}

/* Pagination button styles (for JavaScript-generated buttons) */
.pagination button {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    color: #007bff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.pagination button:hover {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination button.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination button:disabled {
    color: #6c757d;
    cursor: not-allowed;
    background-color: #f8f9fa;
    border-color: #ddd;
}

.pagination button:disabled:hover {
    background-color: #f8f9fa;
    color: #6c757d;
    border-color: #ddd;
}

/* Enhanced actions styles for admin tables */
.actions {
    width: 120px;
    padding: 0 10px;
    text-align: center;
}

.actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0 2px;
}

.actions .btn-icon {
    min-width: unset;
}

/* JSON field styles for complex forms */
.json-field-container {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    margin-top: 5px;
    background-color: #f9f9f9;
}

.json-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 8px;
    background-color: white;
    border-radius: 4px;
    border: 1px solid #eee;
}

.json-item:last-child {
    margin-bottom: 0;
}

.json-item input, 
.json-item select {
    flex: 1;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.json-item input:focus,
.json-item select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Enhanced button styles */
.btn-add {
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.btn-add:hover {
    background-color: #218838;
}

.btn-remove {
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.btn-remove:hover {
    background-color: #c82333;
}

/* Location and type badges */
.location-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.location-engineering_center { 
    background-color: #007bff; 
    color: white; 
}

.location-college_territory { 
    background-color: #6c757d; 
    color: white; 
}

.location-main { 
    background-color: #e3f2fd; 
    color: #1976d2; 
}

.location-technopark { 
    background-color: #fff3e0; 
    color: #f57c00; 
}

/* Type badges */
.type-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.type-equipment-badge { 
    background-color: #e8f5e8; 
    color: #2e7d32; 
}

.type-service-badge { 
    background-color: #f3e5f5; 
    color: #7b1fa2; 
}

.request-type {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.type-equipment { 
    background-color: #e3f2fd; 
    color: #1976d2; 
}

.type-service { 
    background-color: #f3e5f5; 
    color: #7b1fa2; 
}

.type-college { 
    background-color: #fff3e0; 
    color: #f57c00; 
}

.type-engineering { 
    background-color: #e8f5e8; 
    color: #2e7d32; 
}

/* Enhanced photo item styles */
.photo-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.photo-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.photo-preview {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #ddd;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
}

.photo-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.photo-info input[type="text"] {
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.photo-info input[type="text"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 3px rgba(0, 123, 255, 0.25);
}

.photo-info label input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
    height: auto;
    transform: translateY(1px);
}

/* Related items styles */
.related-services-container,
.related-equipment-container {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    background-color: #f9f9f9;
}

.related-services-container select,
.related-equipment-container select {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
    background-color: white;
    font-size: 14px;
}

.related-services-container select:focus,
.related-equipment-container select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Request details styles */
.request-details {
    margin-top: 20px;
}

.request-details h3 {
    margin-bottom: 15px;
    color: #333;
}

.detail-row {
    display: flex;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.detail-label {
    font-weight: bold;
    width: 200px;
    color: #666;
}

.detail-value {
    flex: 1;
    color: #333;
}

/* Required field indicator */
.required {
    color: #dc3545;
    font-weight: bold;
}

/* Filter styles */
.filter-section {
    margin-bottom: 20px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: end;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-top: 10px;
    width: 100%;
    border: 1px solid #e9ecef;
}

.filter-group {
    display: flex;
    flex-direction: column;
    width: 300px;
    flex-shrink: 0;
}

.filter-group label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 3px rgba(0, 123, 255, 0.25);
}

.filter-group select:hover {
    border-color: #007bff;
}

/* Schedule styles */
.schedule-day {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    padding: 12px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.schedule-day:hover {
    border-color: #007bff;
    box-shadow: 0 2px 12px rgba(0, 123, 255, 0.1);
}

.schedule-day label {
    font-weight: 500;
    color: #333;
    min-width: 120px;
    margin: 0;
}

.schedule-day input[type="checkbox"] {
    margin: 0;
    transform: scale(1.2);
    cursor: pointer;
}

.schedule-day input[type="time"] {
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    transition: border-color 0.3s ease;
}

.schedule-day input[type="time"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 3px rgba(0, 123, 255, 0.25);
}

.schedule-day input[type="time"]:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

/* Системные уведомления - фиксированные сверху */
.system-error-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #ff4444;
  color: white;
  padding: 15px 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
}

.system-error-banner .close-btn {
  float: right;
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 0 5px;
  margin-left: 15px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.system-error-banner .close-btn:hover {
  opacity: 1;
}

.system-error-banner .message {
  display: inline-block;
  max-width: calc(100% - 60px);
  text-align: left;
}

/* Анимация появления */
.system-error-banner {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from { 
    transform: translateY(-100%); 
    opacity: 0;
  }
  to { 
    transform: translateY(0); 
    opacity: 1;
  }
}

/* Анимация скрытия */
.system-error-banner.hiding {
  animation: slideUp 0.3s ease-in forwards;
}

@keyframes slideUp {
  from { 
    transform: translateY(0); 
    opacity: 1;
  }
  to { 
    transform: translateY(-100%); 
    opacity: 0;
  }
}

/* Отступ для основного контента при наличии уведомления */
body.has-system-error {
  padding-top: 60px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .system-error-banner {
    padding: 12px 15px;
    font-size: 13px;
  }
  
  .system-error-banner .close-btn {
    font-size: 16px;
    margin-left: 10px;
  }
  
  .system-error-banner .message {
    max-width: calc(100% - 50px);
  }
}

/* ===== СТИЛИ ДЛЯ СИСТЕМЫ УВЕДОМЛЕНИЙ ===== */

.notification-controls {
  margin-top: auto;
}

.notification-status {
  display: flex;
  align-items: center;
  padding: 10px;
  border-top: 1px solid #eee;
  cursor: pointer;
  transition: background-color 0.2s;
}

.notification-status:hover {
  background-color: #f5f5f5;
}

.status-indicator {
  font-size: 16px;
  margin-right: 8px;
  transition: transform 0.2s;
}

.status-indicator:hover {
  transform: scale(1.1);
}

.status-indicator.connected {
  color: #28a745;
}

.status-indicator.disconnected {
  color: #6c757d;
}

.status-indicator.denied {
  color: #ffc107;
}

.status-indicator.failed {
  color: #dc3545;
}

.status-indicator.no-token {
  color: #dc3545;
}

.status-indicator.unsupported {
  color: #dc3545;
}

/* Настройки уведомлений */
.notification-settings {
  padding: 20px 0;
}

.setting-group {
  margin-bottom: 15px;
}

.setting-group label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
}

.setting-group input[type="checkbox"] {
  margin-right: 10px;
  transform: scale(1.2);
}

.setting-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.setting-actions .btn {
  padding: 8px 16px;
  font-size: 14px;
}
