/* helpi_frontend/static/css/style.css */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --card-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #333;
}

.navbar {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%) !important;
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: -0.5px;
}

.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--card-shadow);
    transform: translateY(-2px);
}

.btn {
    border-radius: 0.5rem;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    box-shadow: 0 4px 6px rgba(13, 110, 253, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 6px 12px rgba(13, 110, 253, 0.3);
    transform: translateY(-1px);
}

.list-group-item {
    border-left: none;
    border-right: none;
    padding: 1rem 1.25rem;
    transition: var(--transition);
}

.list-group-item:first-child {
    border-top: none;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
}

.badge {
    padding: 0.5em 0.75em;
    font-weight: 500;
    border-radius: 0.375rem;
}

/* HTMX Loading state */
.htmx-indicator {
    display: none;
}
.htmx-request .htmx-indicator {
    display: inline-block;
}
.htmx-request.htmx-indicator {
    display: inline-block;
}

/* Custom Utilities */
.filter-card {
    position: relative;
    z-index: 10;
}

.text-gradient {
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section {
    padding: 4rem 0;
    background: radial-gradient(circle at top right, #e7f1ff, #f8f9fa);
    border-radius: 1.5rem;
    margin-bottom: 3rem;
}

/* Tom Select Customization */
.ts-control {
    background-color: #f8f9fa !important;
    border: none !important;
    border-radius: 0.5rem !important;
    padding: 0.5rem 0.75rem !important;
    box-shadow: none !important;
}

.ts-wrapper.form-control, .ts-wrapper.form-select {
    padding: 0 !important;
    background-color: transparent !important;
    background-image: none !important;
}

.ts-dropdown {
    border: none !important;
    border-radius: 0.75rem !important;
    box-shadow: var(--card-shadow) !important;
    margin-top: 5px !important;
    padding: 0.5rem !important;
    z-index: 3000 !important;
}

.modal {
    z-index: 1055 !important;
}

.modal-backdrop {
    z-index: 1050 !important;
}

.ts-dropdown .active {
    background-color: var(--primary-color) !important;
    color: white !important;
    border-radius: 0.375rem !important;
}

.ts-control .item {
    background-color: #e7f1ff !important;
    color: #084298 !important;
    border: 1px solid #b6d4fe !important;
    border-radius: 0.375rem !important;
    padding: 2px 8px !important;
    font-weight: 500 !important;
}

.ts-control .item .remove {
    border-left: 1px solid #b6d4fe !important;
}

/* Service item enhancements */
.service-item {
    transition: var(--transition);
}

.service-item:hover {
    transform: translateX(4px);
    border-color: var(--primary-color) !important;
}

.bg-info-subtle {
    background-color: #e7f1ff !important;
}

.text-info {
    color: #0d6efd !important;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

/* Dictionary Item Specifics */
.dictionary-item {
    border-bottom: 1px solid #f8f9fa !important;
    transition: all 0.2s ease;
}
.dictionary-item:hover {
    background-color: #f8f9fa;
    padding-left: 2rem !important;
}
.dictionary-item.active {
    background-color: #e7f1ff;
    border-left: 4px solid var(--success-color) !important;
    z-index: 2;
}

/* Nowe klasy pomocnicze */
.h-px { height: 1px; }
/* Filtry i Wyszukiwanie */
.filter-card {
    border-radius: 1rem;
}

.filter-card .card-body {
    padding: 1.5rem 2rem 2rem;
}

.filter-card .form-label {
    letter-spacing: 0.5px;
    font-size: 0.7rem;
    color: #6c757d;
}

.filter-card .input-group-text {
    border-color: #dee2e6;
}

.filter-card .form-control, 
.filter-card .form-select {
    border-color: #dee2e6;
    transition: all 0.2s ease;
}

.filter-card .form-control:focus, 
.filter-card .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1);
}

.filter-card .ts-control {
    background-color: #fff !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.5rem !important;
}

.filter-card .ts-wrapper.focus .ts-control {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1) !important;
}

.shadow-xs { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.transition-all { transition: all 0.2s ease-in-out; }
.hover-shadow:hover { 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important; 
    transform: translateY(-1px);
}
.bg-primary-subtle { background-color: #e7f1ff !important; }
.text-primary-emphasis { color: #084298 !important; }