/* DimaFarm - Custom Styles */

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Navigation */
.navbar-brand {
    font-weight: 600;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.5rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

/* Buttons */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
}

.btn-group .btn {
    border-radius: 0.375rem;
}

/* Tables */
.table th {
    font-weight: 600;
    border-top: none;
}

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

/* Statistics Cards */
.card.bg-primary,
.card.bg-success,
.card.bg-warning,
.card.bg-danger,
.card.bg-info {
    border: none;
}

.card.bg-primary .card-body,
.card.bg-success .card-body,
.card.bg-warning .card-body,
.card.bg-danger .card-body,
.card.bg-info .card-body {
    padding: 1.5rem;
}

/* Color Preview */
.color-preview {
    border: 1px solid #dee2e6;
}

/* Forms */
.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-control-color {
    width: 100%;
    height: 38px;
}

/* Modals */
.modal-content {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

/* Error Pages */
.error-page {
    padding: 3rem 0;
}

.error-page .display-1 {
    font-weight: 300;
}

/* Badges */
.badge {
    font-size: 0.75em;
    padding: 0.5em 0.75em;
}

/* Responsive */

/* Responsive and Mobile-only Styles */
@media (max-width: 768px) {
    .btn-group {
        display: flex;
        flex-direction: column;
    }
    
    .btn-group .btn {
        margin-bottom: 0.25rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }

    /* Bottom Navigation Menu */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background-color: #fff;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 1040;
        justify-content: space-around;
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .mobile-bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #6c757d;
        font-size: 0.7rem;
    }

    .mobile-bottom-nav-item i {
        font-size: 1.2rem;
        margin-bottom: 2px;
    }

    /* Transparent top navbar on mobile */
    .navbar.mobile-pharmacy-nav {
        background-color: transparent !important;
        box-shadow: none !important;
    }
    
    .navbar.mobile-pharmacy-nav .navbar-brand {
        font-size: 1.25rem;
        font-weight: 700;
    }

    /* Search bar with internal icon */
    .search-container-mobile {
        position: relative;
        width: 100%;
    }

    .search-container-mobile .form-control {
        padding-left: 2.5rem;
        border-radius: 20px;
        border: 1px solid #dee2e6;
    }

    .search-container-mobile .search-icon-internal {
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        color: #adb5bd;
    }

    /* Inverted Button Style for Mobile */
    .btn-mobile-inverted {
        background-color: transparent !important;
        border: 2px solid currentColor !important;
        font-weight: 600;
        transition: all 0.2s ease;
    }

    /* Remove card background for filters on mobile */
    .mobile-no-background {
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
    
    /* Adjust main content padding for bottom nav */
    main.container {
        padding-bottom: 70px !important;
    }

    /* Adjust floating cart button position */
    .floating-cart-btn {
        bottom: 80px !important;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

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

/* Loading States */
.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Success/Error Messages */
.alert {
    border: none;
    border-radius: 0.5rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

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

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

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}
