/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.header-title i {
    color: #3498db;
    margin-right: 0.5rem;
}

.last-updated {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
}

.last-updated i {
    color: #e74c3c;
    margin-right: 0.3rem;
}

/* Navigation */
.navbar {
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.navbar-nav .nav-link i {
    margin-right: 0.5rem;
}

/* Search Bar Styles */
.search-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

.search-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    width: 250px;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    outline: none;
}

.search-btn, .clear-search-btn {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-btn:hover, .clear-search-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Highlight search results */
.search-highlight {
    background: rgba(255, 255, 0, 0.3) !important;
    font-weight: 600;
}

.search-hidden {
    display: none !important;
}

/* Search notification */
.search-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: rgba(52, 152, 219, 0.95);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: slideInRight 0.3s ease-out;
}

.search-notification-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-notification i {
    color: #f39c12;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Main Content */
.main-content {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.content-section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.section-title i {
    color: #f39c12;
    margin-right: 1rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.card-title i {
    margin-right: 0.5rem;
    color: #f39c12;
}

.card-body {
    padding: 1.5rem;
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table thead th {
    background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
    color: #2c3e50;
    font-weight: 600;
    border: none;
    padding: 1rem;
    font-size: 0.95rem;
}

.table tbody td {
    padding: 1rem;
    border: none;
    border-bottom: 1px solid #ecf0f1;
    vertical-align: middle;
}

/* Убрали hover эффекты для строк таблиц */

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Icons in tables */
.table i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Product icons */
.fa-wine-bottle { color: #e74c3c; }
.fa-drumstick-bite { color: #e67e22; }
.fa-fish { color: #3498db; }
.fa-ice-cream { color: #9b59b6; }
.fa-carrot { color: #f39c12; }
.fa-bread-slice { color: #d35400; }
.fa-cookie-bite { color: #8b4513; }
.fa-candy-cane { color: #e74c3c; }
.fa-coffee { color: #795548; }
.fa-seedling { color: #27ae60; }

/* Pharmacy icons */
.fa-pills { color: #e74c3c; }
.fa-first-aid { color: #e74c3c; }
.fa-band-aid { color: #e74c3c; }
.fa-tint { color: #3498db; }
.fa-thermometer-half { color: #f39c12; }

/* Footer */
.footer {
    background: rgba(44, 62, 80, 0.95);
    color: rgba(255, 255, 255, 0.8);
    padding: 1.5rem 0;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .header-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .card-title {
        font-size: 1.25rem;
    }
    
    .table thead th,
    .table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    /* Mobile search styles */
    .search-container {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
    }
    
    .search-input {
        width: 100%;
        max-width: none;
    }
    
    .search-notification {
        right: 10px;
        left: 10px;
        top: 80px;
    }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}
