/* Panel Administracyjny Apteki Online - Style dodatkowe */

/* Kolory apteki */
:root {
    --pharmacy-primary: #059669;
    --pharmacy-secondary: #10b981;
    --pharmacy-accent: #34d399;
    --pharmacy-warning: #f59e0b;
    --pharmacy-danger: #ef4444;
    --pharmacy-success: #10b981;
    --pharmacy-info: #3b82f6;
}

/* Ikony dla apteki */
.pharmacy-icon {
    color: var(--pharmacy-primary);
}

.pharmacy-icon-success {
    color: var(--pharmacy-success);
}

.pharmacy-icon-warning {
    color: var(--pharmacy-warning);
}

.pharmacy-icon-danger {
    color: var(--pharmacy-danger);
}

/* Karty produktów medycznych */
.product-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
}

/* Statusy produktów medycznych */
.status-prescription {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #f59e0b;
}

.status-otc {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.status-supplement {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #3b82f6;
}

/* Alerty medyczne */
.alert-medical {
    border-left: 4px solid var(--pharmacy-primary);
    background-color: #f0fdf4;
}

.alert-warning-medical {
    border-left: 4px solid var(--pharmacy-warning);
    background-color: #fffbeb;
}

.alert-danger-medical {
    border-left: 4px solid var(--pharmacy-danger);
    background-color: #fef2f2;
}

/* Przyciski apteki */
.btn-pharmacy {
    background-color: var(--pharmacy-primary);
    border-color: var(--pharmacy-primary);
    color: white;
}

.btn-pharmacy:hover {
    background-color: #047857;
    border-color: #047857;
    color: white;
}

.btn-pharmacy-outline {
    border-color: var(--pharmacy-primary);
    color: var(--pharmacy-primary);
}

.btn-pharmacy-outline:hover {
    background-color: var(--pharmacy-primary);
    border-color: var(--pharmacy-primary);
    color: white;
}

/* Tabele z danymi medycznymi */
.table-medical th {
    background-color: #f8fafc;
    border-bottom: 2px solid var(--pharmacy-primary);
    color: #374151;
    font-weight: 600;
}

.table-medical tbody tr:hover {
    background-color: #f0fdf4;
}

/* Formularze medyczne */
.form-control-medical:focus {
    border-color: var(--pharmacy-primary);
    box-shadow: 0 0 0 0.2rem rgba(5, 150, 105, 0.25);
}

.form-label-medical {
    color: #374151;
    font-weight: 500;
}

/* Badge'y statusów */
.badge-prescription {
    background-color: var(--pharmacy-warning);
    color: white;
}

.badge-otc {
    background-color: var(--pharmacy-success);
    color: white;
}

.badge-supplement {
    background-color: var(--pharmacy-info);
    color: white;
}

/* Dashboard apteki */
.stats-card {
    background: linear-gradient(135deg, var(--pharmacy-primary) 0%, var(--pharmacy-secondary) 100%);
    color: white;
    border-radius: 1rem;
    padding: 1.5rem;
}

.stats-card h3 {
    color: white;
    font-weight: 700;
}

.stats-card .icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

/* Responsywność */
@media (max-width: 768px) {
    .product-card {
        margin-bottom: 1rem;
    }
    
    .stats-card {
        margin-bottom: 1rem;
    }
}

/* Animacje */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading spinner dla apteki */
.spinner-pharmacy {
    border: 3px solid #f3f4f6;
    border-top: 3px solid var(--pharmacy-primary);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tooltip'y medyczne */
.tooltip-medical {
    background-color: var(--pharmacy-primary);
    color: white;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Modal'e apteki */
.modal-pharmacy .modal-header {
    background-color: var(--pharmacy-primary);
    color: white;
    border-bottom: none;
}

.modal-pharmacy .modal-title {
    color: white;
    font-weight: 600;
}

.modal-pharmacy .btn-close {
    filter: invert(1);
}

/* Sidebar apteki - dodatkowe style */
.sidebar-pharmacy .nav-link.active {
    background: linear-gradient(90deg, var(--pharmacy-primary) 0%, var(--pharmacy-secondary) 100%);
    color: white;
    border-left: 3px solid white;
}

.sidebar-pharmacy .nav-link:hover {
    background-color: rgba(5, 150, 105, 0.1);
    color: var(--pharmacy-primary);
}

/* Breadcrumb apteki */
.breadcrumb-pharmacy .breadcrumb-item + .breadcrumb-item::before {
    color: var(--pharmacy-primary);
}

.breadcrumb-pharmacy .breadcrumb-item.active {
    color: var(--pharmacy-primary);
    font-weight: 600;
}

/* Paginacja apteki */
.pagination-pharmacy .page-link {
    color: var(--pharmacy-primary);
    border-color: #e5e7eb;
}

.pagination-pharmacy .page-link:hover {
    background-color: var(--pharmacy-primary);
    border-color: var(--pharmacy-primary);
    color: white;
}

.pagination-pharmacy .page-item.active .page-link {
    background-color: var(--pharmacy-primary);
    border-color: var(--pharmacy-primary);
    color: white;
}

/* Dropdown apteki */
.dropdown-menu-pharmacy {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.dropdown-item-pharmacy:hover {
    background-color: #f0fdf4;
    color: var(--pharmacy-primary);
}

/* Progress bar apteki */
.progress-pharmacy .progress-bar {
    background-color: var(--pharmacy-primary);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--pharmacy-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #047857;
} 