/* Общие стили */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-bottom: 50px;
}

/* Карты */
.card {
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

/* Кнопки */
.btn {
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn:active {
    transform: translateY(0);
}

/* Кнопка показа пароля */
.toggle-password {
    z-index: 10;
    transition: opacity 0.2s ease;
}
.toggle-password:hover {
    opacity: 0.7;
    color: #000 !important;
}
.toggle-password:focus {
    box-shadow: none;
    outline: none;
}

.btn.login{
    margin-top:15px;
}



/* Таблицы */
.table {
    font-size: 0.95rem;
}

.table thead th {
    font-weight: 600;
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

/* Бейджи */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
}

/* Подвал */
footer {
    margin-top: auto;
}

/* Скрываем стрелочки у полей type="number" */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

input[type="number"] {
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

.form-control[type="number"]::-webkit-outer-spin-button,
.form-control[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .card {
        margin-bottom: 15px;
    }

    .btn-group-sm > .btn {
        padding: 4px 8px;
        font-size: 0.875rem;
    }
}

/* Адаптивная пагинация для мобильных */
@media (max-width: 576px) {
    .pagination {
        gap: 2px;
    }

    .pagination .page-link {
        padding: 0.375rem 0.5rem;
        font-size: 0.875rem;
    }

    .pagination .page-item {
        margin: 0 1px;
    }
}



/* Уменьшаем отступы на планшетах */
@media (min-width: 577px) and (max-width: 768px) {
    .pagination .page-link {
        padding: 0.375rem 0.75rem;
        font-size: 0.9rem;
    }
}