/* Tailwind базовые стили уже подключены через CDN */
/* Дополнительные кастомные стили */

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Стили для мобильного таб-бара */
.tab-bar {
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.tab-bar .tab-item {
    transition: all 0.2s ease;
}

.tab-bar .tab-item.active {
    color: #006b3e;
}

.tab-bar .tab-item.active svg {
    stroke: #006b3e;
}

/* Drawer */
.drawer {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 1000;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.drawer.open {
    left: 0;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* FAB SOS */
.fab-sos {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(239,68,68,0.4);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 100;
}

.fab-sos:hover {
    transform: scale(1.05);
    background: #dc2626;
}

/* Стили для модальных окон */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1100;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 90%;
    width: 400px;
    max-height: 80vh;
    overflow-y: auto;
}

/* Индикатор загрузки */
.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #e5e7eb;
    border-top-color: #006b3e;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Стили для таблиц на мобильных */
@media (max-width: 768px) {
    .table-responsive {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}