/*
Theme Name: Med Bangladesh
Theme URI: https://medbangladesh.local
Author: Med Bangladesh Development Team
Author URI: https://medbangladesh.local
Description: Enterprise-grade pharmacy management system with built-in multi-vendor marketplace. Scalable architecture with master medicine catalog and custom vendor inventory table. Supports 50,000+ vendors.
Version: 3.0.3
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: med-bangladesh
Tags: pharmacy, medical, multivendor, pos, inventory, ecommerce

Med Bangladesh - Built for pharmacies in Bangladesh.
Optimized for multi-vendor marketplace with point of sale, inventory management, and vendor dashboards.
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f7fa;
}

.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Buttons */
.button, .btn {
    display: inline-block;
    padding: 10px 20px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #0073aa;
    cursor: pointer;
    transition: 0.3s;
}

.button:hover, .btn:hover {
    background: #005a87;
    border-color: #005a87;
}

.button-primary {
    background: #0073aa;
    border-color: #0073aa;
}

.button-secondary {
    background: #6c757d;
    border-color: #6c757d;
}

.button-danger {
    background: #dc3545;
    border-color: #dc3545;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #0073aa;
}

/* Cards */
.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-error, .alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 4px;
    overflow: hidden;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

tr:hover {
    background: #f8f9fa;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-success { color: #28a745; }
.text-danger { color: #dc3545; }
.text-warning { color: #ffc107; }

/* Hide WordPress Page Titles Globally for Professional Look */
.entry-header,
.page-header,
.entry-title,
h1.page-title,
.post-title,
.wp-block-post-title,
.wp-block-heading,
.site-content h1,
.site-main h1,
.content h1,
main h1 {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    visibility: hidden !important;
    overflow: hidden !important;
    line-height: 0 !important;
}

/* Fallback: Hide all h1 that appear before content sections */
.entry-content > h1,
article > h1 {
    display: none !important;
}

/* Hide WordPress Admin Bar for Vendors */
body.logged-in.medishop-vendor-app {
    margin-top: 0 !important;
}

#wpadminbar {
    display: none !important;
}
