/* Общие стили для модернизированного дизайна */

/* Карточки */
.modern-card {
    background-color: #252525;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(156, 163, 175, 0.2) rgba(100, 100, 100, 0.1);
}

.modern-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(0, 0, 0, 0.1);
}

.modern-card.accent-left {
    border-left: 4px solid #3498db; /* Default color */
}

.modern-card.accent-primary {
    border-left-color: #3498db; /* Blue */
}

.modern-card.accent-success {
    border-left-color: #2ecc71; /* Green */
}

.modern-card.accent-warning {
    border-left-color: #f39c12; /* Orange */
}

.modern-card.accent-danger {
    border-left-color: #e74c3c; /* Red */
}

.modern-card.accent-info {
    border-left-color: #9b59b6; /* Purple */
}

/* Заголовки страниц */
.page-title {
    font-size: 26px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.page-title:after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    bottom: -6px;
    left: 0;
    background: linear-gradient(to right, var(--primary-color, #3498db), transparent);
    border-radius: 3px;
}

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

.stat-card {
    background-color: #252525;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(156, 163, 175, 0.2) rgba(100, 100, 100, 0.1);
    overflow: hidden;
}

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

/* Убрали стилевые правила для синей полоски слева для stat-card */

.stat-card .icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    font-size: 22px;
    color: white;
    background-color: #323232;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.stat-card .value {
    font-size: 28px;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.stat-card .label {
    font-size: 15px;
    color: #aaaaaa;
    margin-top: 5px;
    letter-spacing: 0.3px;
}

/* Пустые состояния */
.empty-state {
    text-align: center;
    padding: 60px 30px;
    background-color: #252525;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(156, 163, 175, 0.2) rgba(100, 100, 100, 0.1);
}

.empty-state .icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: #323232;
    border-radius: 50%;
    margin-bottom: 24px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.empty-state i {
    font-size: 42px;
    color: #888888;
}

.empty-state .title {
    font-size: 22px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

.empty-state .message {
    font-size: 15px;
    color: #aaaaaa;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Кнопки и действия */
.modern-action-btn {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background-color: var(--primary-color, #3498db);
    color: white;
}

.modern-action-btn:hover {
    background-color: var(--primary-color-dark, #2980b9);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.modern-action-btn i {
    margin-right: 8px;
    font-size: 16px;
}

.modern-action-btn.secondary {
    background-color: #252525;
    border: 1px solid rgba(156, 163, 175, 0.2) #3a3a3a;
    color: #cccccc;
}

.modern-action-btn.secondary:hover {
    background-color: #303030;
}

.modern-action-btn.danger {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.modern-action-btn.danger:hover {
    background-color: rgba(231, 76, 60, 0.15);
    color: #c0392b;
}

.modern-action-btn.success {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.modern-action-btn.success:hover {
    background-color: rgba(46, 204, 113, 0.15);
    color: #27ae60;
}

/* Пагинация */
.modern-pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination-btn {
    background-color: #252525;
    border: 1px solid rgba(156, 163, 175, 0.2) rgba(17, 17, 17, 0.2);
    color: white;
    padding: 8px 16px;
    margin: 0 5px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.pagination-btn:hover:not([disabled]) {
    background-color: #303030;
}

.pagination-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Бейджи */
.modern-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    background-color: rgba(255, 255, 255, 0.08);
    color: #cccccc;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.modern-badge.primary {
    background-color: rgba(52, 152, 219, 0.15);
    color: #3498db;
}

.modern-badge.success {
    background-color: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
}

.modern-badge.warning {
    background-color: rgba(243, 156, 18, 0.15);
    color: #f39c12;
}

.modern-badge.danger {
    background-color: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

.modern-badge.info {
    background-color: rgba(155, 89, 182, 0.15);
    color: #9b59b6;
}

/* Контроллеры и панели действий */
.modern-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.controls-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Отзывчивость для мобильных устройств */
@media (max-width: 768px) {
    .modern-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .controls-group {
        margin-top: 15px;
        width: 100%;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .stat-card {
        margin-bottom: 15px;
    }
}

/* Маленькая кнопка в современном стиле */
.modern-btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    border: none;
}

.modern-btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Пользовательский блок в шапке */
.user-block {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    z-index: 10;
    min-height: 48px;
    width: 100%;
}

.user-block:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Улучшенные стили для выпадающего меню */
.user-dropdown {
    position: relative;
}

.user-dropdown .dropdown-content {
    background: linear-gradient(135deg, var(--dark-card) 0%, #2a2a2a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.3),
        0 6px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 8px;
    min-width: 180px;
}

.user-dropdown .dropdown-content a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--dark-text);
}

.user-dropdown .dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(2px);
}