/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: .5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
    padding: .5rem 1rem;
}

.sidebar .nav-link.active {
    color: #2470dc;
}

.sidebar .nav-link:hover {
    color: #2470dc;
}

.sidebar .nav-link i {
    margin-right: 4px;
    color: #727272;
}

.sidebar .nav-link.active i {
    color: #2470dc;
}

/* Navbar */
.navbar-brand {
    padding-top: .75rem;
    padding-bottom: .75rem;
    font-size: 1rem;
    background-color: rgba(0, 0, 0, .25);
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
}

.navbar .navbar-toggler {
    top: .25rem;
    right: 1rem;
}

/* Content */
.main {
    padding-top: 1.5rem;
}

/* Cards */
.card {
    margin-bottom: 1.5rem;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}

.card-stats {
    min-height: 100px;
}

.card-stats .card-body {
    padding: 1rem;
}

.card-stats .card-title {
    font-size: .875rem;
    text-transform: uppercase;
    margin-bottom: .25rem;
}

.card-stats .card-text {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0;
}

/* Tables */
.table > :not(caption) > * > * {
    padding: .75rem;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, .075);
}

/* Forms */
.form-control:focus {
    border-color: #2470dc;
    box-shadow: 0 0 0 0.25rem rgba(36, 112, 220, .25);
}

.btn-primary {
    background-color: #2470dc;
    border-color: #2470dc;
}

.btn-primary:hover {
    background-color: #1e5eb8;
    border-color: #1e5eb8;
}

/* Utilities */
.bg-gradient {
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
}

/* Responsive */
@media (max-width: 767.98px) {
    .sidebar {
        top: 5rem;
    }
    
    .navbar-brand {
        padding-left: 1rem;
        padding-right: 1rem;
        margin-right: 0;
    }
}

/* Notifications */
.badge {
    padding: .35em .65em;
    font-size: .75em;
}

/* Product List */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem 0;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card .card-body {
    flex: 1 1 auto;
}

/* Order Status */
.status-badge {
    font-size: .875rem;
    padding: .35em .65em;
    text-transform: capitalize;
}

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

/* Pagination */
.pagination {
    margin-bottom: 0;
}

.page-link {
    color: #2470dc;
}

.page-link:hover {
    color: #1e5eb8;
}

.page-item.active .page-link {
    background-color: #2470dc;
    border-color: #2470dc;
}

/* BigFarma Wholesaler Portal CSS - Matching Pharmacy Styling with Quicksand Font */

:root {
    /* Primary Colors - Using pharmacy theme */
    --primary-color: #009639;
    --primary-dark: #007d30;
    --primary-light: #00b042;
    --primary-lightest: #e6f7ed;
    
    /* Wholesaler-specific colors */
    --secondary-color: #2c3e50;
    --secondary-light: #34495e;
    --accent-color: #f39c12;
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #009639 0%, #00cc4e 100%);
    --dark-gradient: linear-gradient(135deg, #007530 0%, #009639 100%);
    --secondary-gradient: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    
    /* Text Colors */
    --text-dark: #333333;
    --text-medium: #666666;
    --text-light: #999999;
    
    /* Background Colors */
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    
    /* Misc */
    --border-radius: 1rem;
    --border-radius-sm: 0.5rem;
    --card-shadow: 0 4px 20px rgba(0, 150, 57, 0.1);
}

/* General Styles */
body {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding: 2rem 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-weight: 700;
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 15px;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
}

/* Card Styles */
.card {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 150, 57, 0.15);
}

.card-header {
    background-color: var(--bg-white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem;
}

.card-header h5 {
    margin-bottom: 0;
    font-weight: 600;
}

/* Skeleton Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
    border-radius: var(--border-radius-sm);
}

.skeleton-text {
    height: 1.2rem;
    margin-bottom: 0.5rem;
    width: 100%;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-card {
    height: 200px;
}

/* Dashboard Stats */
.dashboard-stats .card {
    border-left: 4px solid var(--primary-color);
    margin-bottom: 1.5rem;
}

.dashboard-stats .stat-icon {
    font-size: 2.5rem;
    color: var(--primary-lightest);
    margin-right: 1rem;
}

.dashboard-stats .stat-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: 0.25rem;
}

.dashboard-stats .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

/* Table Styles */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    border-top: none;
    background-color: var(--bg-light);
    padding: 1rem;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
}

.table tbody tr {
    transition: background-color 0.3s ease;
}

.table tbody tr:hover {
    background-color: var(--primary-lightest);
}

/* Status Badges */
.badge {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
}

.badge-success {
    background-color: var(--primary-lightest);
    color: var(--primary-dark);
}

.badge-warning {
    background-color: #fff3cd;
    color: #856404;
}

.badge-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Forms */
.form-control, .form-select {
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.25rem rgba(0, 150, 57, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius-sm);
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: var(--dark-gradient);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary-gradient);
    border: none;
    color: white;
}

/* Action Icons */
.action-icons {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.action-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-medium);
    background-color: var(--bg-light);
    transition: all 0.3s ease;
    cursor: pointer;
}

.action-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-stats .card {
        margin-bottom: 1rem;
    }
    
    .action-icons {
        justify-content: flex-start;
        margin-top: 0.5rem;
    }
    
    .table-responsive {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Charts */
.chart-container {
    position: relative;
    margin: auto;
    height: 300px;
    width: 100%;
}

/* Notifications */
.notification-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notification-badge::after {
    content: attr(data-count);
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    padding: 0.25rem;
    font-size: 0.75rem;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.product-details {
    padding: 1rem;
}

/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--bg-light);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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