/* BHP Admin Tailwind CSS - Production Ready */

/* Import Font Awesome */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

/* Tailwind CSS Reset & Base */
*, ::before, ::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x: ;
  --tw-pan-y: ;
  --tw-pinch-zoom: ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position: ;
  --tw-gradient-via-position: ;
  --tw-gradient-to-position: ;
  --tw-ordinal: ;
  --tw-slashed-zero: ;
  --tw-numeric-figure: ;
  --tw-numeric-spacing: ;
  --tw-numeric-fraction: ;
  --tw-ring-inset: ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur: ;
  --tw-brightness: ;
  --tw-contrast: ;
  --tw-grayscale: ;
  --tw-hue-rotate: ;
  --tw-invert: ;
  --tw-saturate: ;
  --tw-sepia: ;
  --tw-drop-shadow: ;
  --tw-backdrop-blur: ;
  --tw-backdrop-brightness: ;
  --tw-backdrop-contrast: ;
  --tw-backdrop-grayscale: ;
  --tw-backdrop-hue-rotate: ;
  --tw-backdrop-invert: ;
  --tw-backdrop-opacity: ;
  --tw-backdrop-saturate: ;
  --tw-backdrop-sepia: ;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-feature-settings: normal;
  font-variation-settings: normal;
}

body {
  margin: 0;
  line-height: inherit;
}

/* Layout & Display */
.block { display: block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }

/* Position */
.fixed { position: fixed; }
.relative { position: relative; }

/* Inset */
.inset-0 { inset: 0px; }
.inset-y-0 { top: 0px; bottom: 0px; }
.left-0 { left: 0px; }
.top-0 { top: 0px; }
.bottom-0 { bottom: 0px; }
.right-0 { right: 0px; }

/* Z-Index */
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* Width & Height */
.h-2 { height: 0.5rem; }
.h-8 { height: 2rem; }
.h-16 { height: 4rem; }
.h-64 { height: 16rem; }
.h-full { height: 100%; }
.w-2 { width: 0.5rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-64 { width: 16rem; }
.w-full { width: 100%; }
.min-w-0 { min-width: 0px; }
.max-w-7xl { max-width: 80rem; }

/* Flex */
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-col { flex-direction: column; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* Grid */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.col-span-2 { grid-column: span 2 / span 2; }

/* Gap & Space */
.gap-6 { gap: 1.5rem; }
.space-x-2 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.5rem; }
.space-x-4 > :not([hidden]) ~ :not([hidden]) { margin-left: 1rem; }
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }

/* Margin */
.mx-auto { margin-left: auto; margin-right: auto; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.ml-3 { margin-left: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1rem; }

/* Padding */
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-6 { padding: 1.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 1rem; }

/* Overflow */
.overflow-y-auto { overflow-y: auto; }

/* Border */
.border-b { border-bottom-width: 1px; }
.border-gray-700 { border-color: rgb(55 65 81); }
.rounded-full { border-radius: 9999px; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }

/* Background Colors */
.bg-gray-50 { background-color: rgb(249 250 251); }
.bg-gray-100 { background-color: rgb(243 244 246); }
.bg-gray-600 { background-color: rgb(75 85 99); }
.bg-gray-700 { background-color: rgb(55 65 81); }
.bg-gray-800 { background-color: rgb(31 41 55); }
.bg-gray-900 { background-color: rgb(17 24 39); }
.bg-white { background-color: rgb(255 255 255); }
.bg-blue-400 { background-color: rgb(96 165 250); }
.bg-blue-500 { background-color: rgb(59 130 246); }
.bg-green-400 { background-color: rgb(74 222 128); }
.bg-green-500 { background-color: rgb(34 197 94); }
.bg-yellow-400 { background-color: rgb(250 204 21); }
.bg-yellow-500 { background-color: rgb(234 179 8); }
.bg-red-500 { background-color: rgb(239 68 68); }

/* Background Opacity */
.bg-opacity-30 { --tw-bg-opacity: 0.3; }
.bg-opacity-75 { --tw-bg-opacity: 0.75; }

/* Background Gradients */
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.from-blue-500 { --tw-gradient-from: #3b82f6 var(--tw-gradient-from-position); --tw-gradient-to: rgb(59 130 246 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-blue-600 { --tw-gradient-to: #2563eb var(--tw-gradient-to-position); }
.from-green-500 { --tw-gradient-from: #22c55e var(--tw-gradient-from-position); --tw-gradient-to: rgb(34 197 94 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-green-600 { --tw-gradient-to: #16a34a var(--tw-gradient-to-position); }
.from-yellow-500 { --tw-gradient-from: #eab308 var(--tw-gradient-from-position); --tw-gradient-to: rgb(234 179 8 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-yellow-600 { --tw-gradient-to: #ca8a04 var(--tw-gradient-to-position); }
.from-red-500 { --tw-gradient-from: #ef4444 var(--tw-gradient-from-position); --tw-gradient-to: rgb(239 68 68 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-red-600 { --tw-gradient-to: #dc2626 var(--tw-gradient-to-position); }

/* Typography */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.text-center { text-align: center; }

/* Text Colors */
.text-white { color: rgb(255 255 255); }
.text-gray-300 { color: rgb(209 213 219); }
.text-gray-400 { color: rgb(156 163 175); }
.text-gray-500 { color: rgb(107 114 128); }
.text-gray-600 { color: rgb(75 85 99); }
.text-gray-900 { color: rgb(17 24 39); }
.text-blue-100 { color: rgb(219 234 254); }
.text-blue-500 { color: rgb(59 130 246); }
.text-green-100 { color: rgb(220 252 231); }
.text-green-500 { color: rgb(34 197 94); }
.text-green-600 { color: rgb(22 163 74); }
.text-yellow-100 { color: rgb(254 249 195); }
.text-yellow-500 { color: rgb(234 179 8); }
.text-yellow-600 { color: rgb(202 138 4); }
.text-red-100 { color: rgb(254 226 226); }

/* Shadow */
.shadow { box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }

/* Transforms */
.-translate-x-full { transform: translateX(-100%); }
.translate-x-0 { transform: translateX(0px); }

/* Transitions */
.transition-colors { 
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; 
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 
  transition-duration: 150ms; 
}
.transition-transform { 
  transition-property: transform; 
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 
  transition-duration: 150ms; 
}
.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.duration-300 { transition-duration: 300ms; }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.ease-linear { transition-timing-function: linear; }

/* Hover States */
.hover\\:bg-gray-100:hover { background-color: rgb(243 244 246); }
.hover\\:bg-gray-700:hover { background-color: rgb(55 65 81); }
.hover\\:bg-blue-700:hover { background-color: rgb(29 78 216); }
.hover\\:text-white:hover { color: rgb(255 255 255); }
.hover\\:text-gray-500:hover { color: rgb(107 114 128); }

/* Responsive Design */
@media (min-width: 640px) {
  .sm\\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 768px) {
  .md\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\\:hidden { display: none; }
  .lg\\:translate-x-0 { transform: translateX(0px); }
  .lg\\:pl-64 { padding-left: 16rem; }
  .lg\\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\\:col-span-2 { grid-column: span 2 / span 2; }
}

/* Alpine.js Transition Classes */
.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 1; }

/* Additional Responsive Utilities */
.cursor-pointer { cursor: pointer; }

/* Form Styles */
.focus\\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\\:ring-1:focus { --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color); box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000); }
.focus\\:ring-blue-500:focus { --tw-ring-opacity: 1; --tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity)); }
.focus\\:border-blue-500:focus { border-color: rgb(59 130 246); }
.focus\\:ring-2:focus { --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color); box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000); }
.focus\\:ring-offset-2:focus { --tw-ring-offset-width: 2px; }

/* Table Styles */
.min-w-full { min-width: 100%; }
.divide-y > :not([hidden]) ~ :not([hidden]) { border-top-width: 1px; }
.divide-gray-200 > :not([hidden]) ~ :not([hidden]) { border-color: rgb(229 231 235); }
.table-cell { display: table-cell; }
.whitespace-nowrap { white-space: nowrap; }

/* Additional Display */
.inline-block { display: inline-block; }
.table { display: table; }

/* Additional Colors */
.border-gray-200 { border-color: rgb(229 231 235); }
.border-gray-300 { border-color: rgb(209 213 219); }
.border-green-400 { border-color: rgb(74 222 128); }
.border-red-400 { border-color: rgb(248 113 113); }
.bg-green-100 { background-color: rgb(220 252 231); }
.bg-red-100 { background-color: rgb(254 226 226); }
.text-green-700 { color: rgb(21 128 61); }
.text-red-700 { color: rgb(185 28 28); }
.text-blue-600 { color: rgb(37 99 235); }
.text-blue-800 { color: rgb(30 64 175); }
.text-blue-900 { color: rgb(30 58 138); }
.text-green-800 { color: rgb(22 101 52); }
.text-red-600 { color: rgb(220 38 38); }
.text-red-900 { color: rgb(127 29 29); }

/* Position utilities */
.absolute { position: absolute; }
.top-0 { top: 0px; }
.right-0 { right: 0px; }
.bottom-0 { bottom: 0px; }

/* Border utilities */
.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-transparent { border-color: transparent; }

/* Margin utilities */
.mt-1 { margin-top: 0.25rem; }
.mt-3 { margin-top: 0.75rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }

/* Width utilities */
.w-4 { width: 1rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }

/* Height utilities */
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }

/* Min-height */
.min-h-screen { min-height: 100vh; }

/* Justify utilities */
.justify-end { justify-content: flex-end; }

/* Align utilities */
.align-bottom { vertical-align: bottom; }

/* Transform utilities */
.transform { transform: var(--tw-transform); }

/* Responsive: Small screens and up */
@media (min-width: 640px) {
  .sm\\:block { display: block; }
  .sm\\:inline { display: inline; }
  .sm\\:flex { display: flex; }
  .sm\\:table-cell { display: table-cell; }
  .sm\\:hidden { display: none; }
  .sm\\:w-auto { width: auto; }
  .sm\\:w-48 { width: 12rem; }
  .sm\\:flex-row { flex-direction: row; }
  .sm\\:flex-row-reverse { flex-direction: row-reverse; }
  .sm\\:items-center { align-items: center; }
  .sm\\:justify-between { justify-content: space-between; }
  .sm\\:mb-0 { margin-bottom: 0px; }
  .sm\\:mt-0 { margin-top: 0px; }
  .sm\\:ml-3 { margin-left: 0.75rem; }
  .sm\\:ml-4 { margin-left: 1rem; }
  .sm\\:p-0 { padding: 0px; }
  .sm\\:text-left { text-align: left; }
  .sm\\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
  .sm\\:align-middle { vertical-align: middle; }
  .sm\\:max-w-lg { max-width: 32rem; }
  .sm\\:my-8 { margin-top: 2rem; margin-bottom: 2rem; }
}

/* Responsive: Medium screens and up */
@media (min-width: 768px) {
  .md\\:block { display: block; }
  .md\\:hidden { display: none; }
  .md\\:table-cell { display: table-cell; }
}

/* Additional responsive utilities */
@media (max-width: 767px) {
  .table-mobile { display: block !important; }
  .table-mobile thead, 
  .table-mobile tbody, 
  .table-mobile th, 
  .table-mobile td, 
  .table-mobile tr { display: block !important; }
  .table-mobile thead tr { position: absolute !important; top: -9999px !important; left: -9999px !important; }
}

/* Custom BHP Components */
.sidebar-nav-item {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition-property: color, background-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.sidebar-nav-item.active {
  background-color: rgb(31 41 55);
  color: rgb(255 255 255);
}

.sidebar-nav-item:not(.active) {
  color: rgb(209 213 219);
}

.sidebar-nav-item:not(.active):hover {
  background-color: rgb(55 65 81);
  color: rgb(255 255 255);
}