/* Основные стили для L2Calc */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    position: relative;
    background-color: #1a1a2e;
    background-image: 
        linear-gradient(rgba(139, 0, 0, 0.4), rgba(25, 25, 112, 0.5)),
        url('/drakon.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Исправления для модальных окон */
.modal {
    z-index: 1055 !important;
}

.modal-backdrop {
    z-index: 1050 !important;
}

/* Стили для иконок дропа */
.drop-icon {
    width: 32px !important;
    height: 32px !important;
    margin: 2px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.drop-icon:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Контейнер для иконок дропа */
.drop-icons-container {
    min-width: 0;
    flex-shrink: 0;
}

/* Styles for class icons */
.class-icon {
    width: 32px !important;
    height: 32px !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

/* Исправление для названия босса */
.card-title {
    max-width: 120px;
    font-size: 0.9rem;
}

/* Выравнивание карточек предметов по высоте */
.items-grid .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.items-grid .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    padding-bottom: 1rem;
}

.card-title {
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    word-wrap: break-word;
    overflow: hidden;
    margin: 0 auto;
}

/* Стили для карточек рейдов */
.raid-card {
    min-height: 280px;
}

.raid-card .countdown {
    color: white !important;
    font-weight: bold;
}

.raid-card-overlay {
    background: rgba(0, 0, 0, 0.3) !important;
}

/* Стили для завершенных рейдов */
.raid-past {
    opacity: 0.6;
    filter: grayscale(30%);
}

.raid-past .card-body {
    background: rgba(0, 0, 0, 0.5) !important;
}

/* Стили для компактного списка предметов */
.list-group-item {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.list-group-item:hover {
    background-color: rgba(0, 123, 255, 0.1);
    border-left-color: #007bff;
}

.list-group-item.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.list-group-item.drag-over {
    background-color: rgba(40, 167, 69, 0.2);
    border-left-color: #28a745;
    transform: translateX(5px);
}

.drag-handle {
    transition: color 0.2s ease;
}

.drag-handle:hover {
    color: #007bff !important;
}

/* Стили для полей ввода чисел */
input[type="number"] {
    -moz-appearance: textfield;
    width: 120px !important;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* For Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

/* Styles for item icons */
.item-icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

/* Styles for user icons */
.user-icon {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}