/* Custom CSS for Coop Platform */

/* TailwindCSS-like utility classes */
.bg-gray-100 { background-color: #f3f4f6; }
.bg-info{background-color: #7ee8ff;}
.bg-white { background-color: white; }
.bg-lime { background-color: #223033; }
.bg-primary-hover:hover {color: #fff;background-color: #0d6efd;}
.shadow { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.text-gray-800 { color: #1f2937; }
.text-gray-500 { color: #6b7280; }
.text-gray-700 { color: #374151; }
.border-indigo-500 { border-color: #6366f1; }
.border-transparent { border-color: transparent; }
.hover\:text-gray-700:hover { color: #374151; }
.hover\:border-gray-300:hover { border-color: #d1d5db; }
.min-h-screen { min-height: 100vh; }
.max-w-7xl { max-width: 80rem; }
.max-w-70 { max-width: 70%; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.h-16 { height: 4rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.space-x-8 > :not([hidden]) ~ :not([hidden]) { margin-left: 2rem; }
.space-x-4 > :not([hidden]) ~ :not([hidden]) { margin-left: 1rem; }
.navbar-brand { margin-right: 2rem !important; }
.nav-link { margin: 0 0.5rem !important; padding: 0.5rem 1rem !important; }
.btn-logout { background: none; border: none; color: #6b7280; padding: 0.5rem 1rem; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.text-xl { font-size: 1.25rem; }
.text-sm { font-size: 0.875rem; }
.hidden { display: none; }
.sm\:flex { display: flex; }
.inline-flex { display: inline-flex; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.pt-1 { padding-top: 0.25rem; }
.pl-2 { padding-left: 2rem; }
.border-b-2 { border-bottom-width: 2px; }
.ml-3 { margin-left: 0.75rem; }
.ml-10 { margin-left: 2.5rem; }
.sm\:ml-6 { margin-left: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.border { border-width: 1px; }
.bg-green-100 { background-color: #dcfce7; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-purple-50 { background-color: #faf5ff; }
.bg-yellow-50 { background-color: #fefce8; }
.bg-gray-50 { background-color: #f9fafb; }
.border-green-400 { border-color: #4ade80; }
.border-red-400 { border-color: #f87171; }
.text-green-700 { color: #15803d; }
.text-green-600 { color: #16a34a; }
.text-green-800 { color: #166534; }
.text-green-500 { color: #22c55e; }
.text-blue-600 { color: #2563eb; }
.text-blue-800 { color: #1e40af; }
.text-blue-500 { color: #3b82f6; }
.text-purple-600 { color: #9333ea; }
.text-purple-800 { color: #6b21a8; }
.text-purple-500 { color: #a855f7; }
.text-yellow-700 { color: #a16207; }
.text-yellow-800 { color: #92400e; }
.text-red-700 { color: #b91c1c; }
.bg-red-100 { background-color: #fee2e2; }
.list-disc { list-style-type: disc; }
.list-inside { list-style-position: inside; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gap-6 { gap: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 4rem; }
.mb-6 { margin-bottom: 6rem; }
.font-semibold { font-weight: 600; }
.text-lg { font-size: 1.125rem; }
.text-3xl { font-size: 1.875rem; }
.hover\:text-blue-800:hover { color: #1e40af; }
.hover\:text-purple-800:hover { color: #6b21a8; }
.font-mono { font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; }
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.shrink-0 { flex-shrink: 0; }
.sm\:-my-px { margin-top: -1px; margin-bottom: -1px; }
.relative { position: relative; }
.font-sans { font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Navbar styles */
.navbar-brand-logo {
    display: flex;
    align-items: center;
}

.navbar-brand-logo img {
    height: 30px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    font-size: 14px;
    font-weight: bold;
}

.card {
    border-radius: 8px !important;
    border: none !important;
    animation: fadeIn 0.3s ease-out;
}

.btn {
    border-radius: 5px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.form-control, .form-select {
    border-radius: 10px !important;
}

.form-control-lg {
    border-radius: 10px !important;
}

.alert {
    border-radius: 10px !important;
    border: none !important;
}

.progress {
    border-radius: 10px !important;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
}

.btn-primary:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
}

.btn-success:hover,
.btn-info:hover,
.btn-warning:hover,
.btn-danger:hover,
.btn-light:hover,
.btn-dark:hover,
.btn-outline-primary:hover,
.btn-outline-success:hover,
.btn-outline-info:hover,
.btn-outline-warning:hover,
.btn-outline-danger:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
}

.bg-gradient {
    background-image: linear-gradient(45deg, var(--bs-bg-opacity, 1), rgba(255,255,255,0.1)) !important;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.border-0 {
    border: none !important;
}

.bg-light {
    border-radius: 10px !important;
}

.badge {
    font-size: 0.7em !important;
    border-radius: 8px !important;
}

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

/* Улучшенные иконки */
.bi {
    vertical-align: -0.125em;
}

/* Стили для форм */
.form-floating > label {
    padding-left: 1rem;
}

.invalid-feedback {
    font-size: 0.875rem;
}

/* Навигация */
.navbar-brand:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Современная навигация */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 0.4rem 1rem !important;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-dark .navbar-nav .nav-link.active {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

/* Футер */
footer {
    border-top: 1px solid #dee2e6;
}

/* Контейнер для липкого футера */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.min-h-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Таблицы */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table th {
    border-top: none;
    font-weight: 600;
    background-color: #f8f9fa;
}

/* Пагинация */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    border: none;
}

/* Модальные окна */
.modal-content {
    border-radius: 15px;
    border: none;
}

/* Загрузочные состояния */
.btn:disabled {
    opacity: 0.6;
    transform: none !important;
}

/* Responsive улучшения */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .navbar-brand {
        margin-right: 0.5rem !important;
    }
    
    .card {
        border-radius: 10px !important;
    }
    
    .btn {
        font-size: 0.875rem;
    }
}