.text-muted {
    color: #9ca3af;
    text-align: center;
    padding: 20px;
}

/* Управление статусами */
.statuses-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.status-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    transition: all 0.3s;
}

.status-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.status-item.sortable-ghost {
    opacity: 0.4;
}

.status-handle {
    cursor: move;
    color: #9ca3af;
    margin-right: 15px;
}

.status-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-stats {
    margin-right: 20px;
    font-size: 14px;
}/* Основные стили */
:root {
    --primary-color: #3b82f6;
    --secondary-color: #6b7280;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --sidebar-width: 250px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    background-color: #f3f4f6;
}

/* Страницы авторизации */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.auth-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.auth-logo h1 {
    font-size: 24px;
    color: var(--dark-color);
    font-weight: 700;
}

.auth-form {
    margin-top: 30px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Формы */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #4b5563;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

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

/* Кнопки */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-warning {
    background-color: var(--warning-color);
    color: white;
}

.btn-info {
    background-color: var(--info-color);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #d1d5db;
    color: #6b7280;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 13px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Алерты */
.alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 14px;
}

.alert-danger {
    background-color: #fee;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Основной макет */
.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Навбар */
.navbar {
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 18px;
}

.navbar-brand img {
    width: 32px;
    height: 32px;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-user i {
    font-size: 20px;
    color: #6b7280;
}

/* Контейнер с сайдбаром */
.main-container {
    display: flex;
    flex: 1;
}

/* Сайдбар */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--dark-color);
    min-height: calc(100vh - 60px);
    overflow-y: auto;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-menu a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
}

.sidebar-menu li.active a {
    background-color: var(--primary-color);
    color: white;
}

.sidebar-menu i {
    width: 20px;
    text-align: center;
}

/* Основной контент */
.content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

/* Заголовок страницы */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-color);
}

.page-header p {
    color: #6b7280;
    margin-top: 5px;
}

.page-actions {
    display: flex;
    gap: 10px;
}

/* Карточки статистики */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.bg-primary { background-color: var(--primary-color); }
.bg-success { background-color: var(--success-color); }
.bg-warning { background-color: var(--warning-color); }
.bg-info { background-color: var(--info-color); }
.bg-danger { background-color: var(--danger-color); }

.stat-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.stat-content p {
    color: #6b7280;
    font-size: 14px;
}

.stat-badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    background-color: #f3f4f6;
    border-radius: 4px;
    margin-top: 5px;
}

/* Карточки */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
}

.card-body {
    padding: 20px;
}

/* Таблицы */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead th {
    text-align: left;
    padding: 12px;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
}

.table tbody td {
    padding: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.table-hover tbody tr:hover {
    background-color: #f9fafb;
}

/* Бейджи */
.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
}

.badge-primary { background-color: #dbeafe; color: #1e40af; }
.badge-success { background-color: #d1fae5; color: #065f46; }
.badge-warning { background-color: #fef3c7; color: #92400e; }
.badge-danger { background-color: #fee2e2; color: #991b1b; }
.badge-secondary { background-color: #f3f4f6; color: #4b5563; }

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
}

.close {
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: #6b7280;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Фильтры */
.filters-bar {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filters-form {
    display: flex;
    gap: 15px;
    align-items: center;
}

.date-filter-form {
    display: inline-flex;
    gap: 15px;
}

/* Дашборд сетка */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-grid .card.full-width {
    grid-column: 1 / -1;
}

/* Утилиты */
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }
.text-warning { color: var(--warning-color); }
.text-primary { color: var(--primary-color); }

.col-md-4 { flex: 0 0 33.333%; }
.col-md-6 { flex: 0 0 50%; }

/* Селект статуса и роли */
.status-select {
    min-width: 120px;
}

.role-select {
    min-width: 110px;
}

/* Графики */
canvas {
    max-height: 300px;
}

/* Комментарии */
.comments-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f9fafb;
    border-radius: 6px;
}

.comment-item {
    background: white;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.comment-header strong {
    color: var(--dark-color);
    font-weight: 600;
}

.comment-date {
    font-size: 12px;
    color: #9ca3af;
}

.comment-text {
    color: #4b5563;
    line-height: 1.6;
    white-space: pre-wrap;
}

.comment-form {
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
}

.no-comments {
    text-align: center;
    color: #9ca3af;
    padding: 40px;
}

.modal-lg {
    max-width: 700px;
}

.btn .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
}

.btn {
    position: relative;
}

/* Последние комментарии на дашборде */
.recent-comments {
    max-height: 350px;
    overflow-y: auto;
}

.comment-preview {
    padding: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.comment-preview:last-child {
    border-bottom: none;
}

.comment-preview:hover {
    background-color: #f9fafb;
}

.comment-meta {
    font-size: 13px;
    margin-bottom: 5px;
}

.comment-meta strong {
    color: var(--primary-color);
}

.comment-meta a {
    color: #6b7280;
    text-decoration: none;
}

.comment-meta a:hover {
    color: var(--primary-color);
}

.comment-time {
    float: right;
    color: #9ca3af;
    font-size: 12px;
}

.comment-excerpt {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
}

.text-muted {
    color: #9ca3af;
    text-align: center;
    padding: 20px;
}

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

/* Цвета для опций в select */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-info { color: var(--info-color) !important; }

/* Адаптивность */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    
    .content {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .modal-lg {
        max-width: 90%;
    }
    
    .comments-list {
        max-height: 300px;
    }
    
    /* Адаптивная таблица для мобильных */
    .table-responsive table {
        font-size: 12px;
    }
    
    .role-select {
        min-width: 90px;
        font-size: 12px;
    }
    
    .table td, .table th {
        padding: 8px 5px;
    }
}