/* Основні стилі для додатку */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* Основний лейаут сторінки */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

/* Головний контейнер, який розтягується */
.main-content {
    flex: 1 0 auto;
}

/* Стилі для футера */
footer {
    flex-shrink: 0;
    background-color: #f8f9fa;
    padding: 1rem;
    text-align: center;
    margin-top: auto;
}

/* Кастомні стилі */
.sidebar {
    transition: all 0.3s ease;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Анімації */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Стилі для форм */
.form-input {
    @apply w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 transition duration-150;
}

.form-label {
    @apply block text-gray-700 text-sm font-bold mb-2;
}

.form-button {
    @apply w-full bg-blue-600 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-opacity-50 transition duration-150;
}

/* Стилі для таблиць */
.table-responsive {
    @apply overflow-x-auto;
}

.table {
    @apply min-w-full divide-y divide-gray-200;
}

.table th {
    @apply px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider;
}

.table td {
    @apply px-6 py-4 whitespace-nowrap text-sm text-gray-500;
}

/* Стилі для карток */
.card {
    @apply bg-white p-6 rounded-lg shadow;
}

.card-title {
    @apply text-2xl font-bold mb-6;
}

/* Стилі для модальних вікон */
.modal-overlay {
    @apply fixed inset-0 bg-gray-600 bg-opacity-50 flex items-center justify-center p-4;
}

.modal-content {
    @apply bg-white rounded-lg shadow-xl w-full max-w-md;
}

/* Стилі для навігаційних посилань */
.nav-link {
    position: relative;
    color: #4a5568;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #2b6cb0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2b6cb0;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Активне посилання */
.nav-link.active {
    color: #2b6cb0;
}

.nav-link.active::after {
    width: 100%;
}

/* Стилі для випадаючого меню */
#user-menu {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

#user-menu a {
    transition: background-color 0.2s ease;
}

#user-menu-button {
    transition: color 0.2s ease;
}

#user-menu-button:hover {
    color: #3b82f6;
}
/* Стилі для кнопки синхронізації */
.sync-button {
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.sync-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.sync-button:active {
    transform: translateY(0);
}
