/*
    === COMPACT UTILITIES ===
    
    Utility classes for RidgeCommand application that provide compact, efficient styling
    for common UI patterns and components.
*/

/* === COMPACT LAYOUT OVERRIDES === */

/* Reduce overall spacing for compact layout */
.content-area {
    padding: 0.5rem !important;
}

/* Compact navbar */
.navbar-top {
    height: 40px !important;
}

/* Compact sidebar */
.sidebar {
    top: 40px !important;
    height: calc(100vh - 40px) !important;
}

.sidebar-inner {
    padding-top: 4rem !important;
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
}

.sidebar-nav .nav-link {
    padding: 0.75rem 0.75rem 0.5rem 0.75rem !important;
    font-size: 0.875rem !important;
}

/* Compact cards */
.card {
    margin-bottom: 0.75rem !important;
}

.card-header {
    padding: 0.5rem 0.75rem !important;
}

.card-body {
    padding: 0.75rem !important;
}

/* Compact forms */
.form-control,
.form-select {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.8rem !important;
}

.form-label {
    margin-bottom: 0.25rem !important;
    font-size: 0.8rem !important;
}

/* Compact buttons */
.btn {
    padding: 0.25rem 0.75rem !important;
    font-size: 0.8rem !important;
}

/* Compact stats */
.stats-overview {
    gap: 0.5rem !important;
    margin-bottom: 1rem !important;
}

.stat-card {
    padding: 0.75rem !important;
}

/* Compact task cards */
.task-card {
    padding: 1rem !important;
    margin-bottom: 0.75rem !important;
}

.inbox-item-card {
    padding: 1rem !important;
}

/* Compact headers */
.dashboard-header,
.inbox-header {
    padding: 1rem !important;
    margin-bottom: 1rem !important;
}

.dashboard-header-icon,
.inbox-header-icon {
    width: 40px !important;
    height: 40px !important;
}

.dashboard-title,
.inbox-title {
    font-size: 1.25rem !important;
}

.dashboard-subtitle,
.inbox-subtitle {
    font-size: 0.8rem !important;
}

/* Compact sections */
.task-entry-section {
    padding: 1rem !important;
    margin-bottom: 1rem !important;
}

.quick-entry-section,
.structured-task-section {
    padding: 1rem !important;
}

/* Compact modals */
.task-processing-modal .modal-header {
    padding: 1rem !important;
}

.task-processing-modal .modal-body {
    padding: 1rem !important;
}

/* Compact tables */
.table {
    font-size: 0.8rem !important;
}

.table th,
.table td {
    padding: 0.5rem !important;
}

/* Compact badges */
.badge {
    font-size: 0.6rem !important;
    padding: 0.15rem 0.4rem !important;
}

/* Compact navigation tabs */
.dashboard-tabs {
    padding: 0.25rem !important;
    gap: 0.25rem !important;
}

.dashboard-tabs .nav-link {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.8rem !important;
}

/* Compact dashboard tab content */
.dashboard-tab-content {
    padding: 1rem !important;
}

/* Compact empty states */
.empty-inbox-state,
.empty-state {
    padding: 2rem 1rem !important;
}

.empty-state-icon {
    width: 60px !important;
    height: 60px !important;
}

.empty-state-title {
    font-size: 1.25rem !important;
}

/* Compact form sections */
.form-section {
    margin-bottom: 1rem !important;
}

.form-section-title {
    font-size: 0.9rem !important;
    margin-bottom: 0.75rem !important;
}

/* Compact action buttons */
.btn-process {
    padding: 0.375rem 0.75rem !important;
    font-size: 0.8rem !important;
}

.btn-copy,
.btn-delete {
    width: 32px !important;
    height: 32px !important;
    padding: 0.375rem !important;
}

/* Compact stat items in navbar */
.stat-item {
    padding: 0.15rem 0.5rem !important;
    height: 28px !important;
    min-width: 32px !important;
}

.stat-number {
    font-size: 0.7rem !important;
}

.stat-icon {
    font-size: 0.6rem !important;
}

/* Compact logo */
.logo-wrapper {
    top: 3px !important;
    width: 200px !important;
    height: 80px !important;
}

.sidebar-logo-overlapping {
    max-height: 70px !important;
}

/* Compact content area margins */
.content-area {
    margin-top: 40px !important;
    margin-left: 250px !important;
}

.content-area.expanded {
    margin-left: 48px !important;
}

/* === LAYOUT UTILITIES === */

/* Flexbox utilities */
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }
.justify-content-start { justify-content: flex-start !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-around { justify-content: space-around !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.align-items-center { align-items: center !important; }
.align-items-baseline { align-items: baseline !important; }
.align-items-stretch { align-items: stretch !important; }
.flex-fill { flex: 1 1 auto !important; }
.flex-grow-0 { flex-grow: 0 !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }
.flex-shrink-1 { flex-shrink: 1 !important; }

/* Spacing utilities */
.m-0 { margin: 0 !important; }
.m-1 { margin: 0.25rem !important; }
.m-2 { margin: 0.5rem !important; }
.m-3 { margin: 1rem !important; }
.m-4 { margin: 1.5rem !important; }
.m-5 { margin: 3rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.ml-0 { margin-left: 0 !important; }
.ml-1 { margin-left: 0.25rem !important; }
.ml-2 { margin-left: 0.5rem !important; }
.ml-3 { margin-left: 1rem !important; }
.ml-4 { margin-left: 1.5rem !important; }
.ml-5 { margin-left: 3rem !important; }

.mr-0 { margin-right: 0 !important; }
.mr-1 { margin-right: 0.25rem !important; }
.mr-2 { margin-right: 0.5rem !important; }
.mr-3 { margin-right: 1rem !important; }
.mr-4 { margin-right: 1.5rem !important; }
.mr-5 { margin-right: 3rem !important; }

.mx-0 { margin-left: 0 !important; margin-right: 0 !important; }
.mx-1 { margin-left: 0.25rem !important; margin-right: 0.25rem !important; }
.mx-2 { margin-left: 0.5rem !important; margin-right: 0.5rem !important; }
.mx-3 { margin-left: 1rem !important; margin-right: 1rem !important; }
.mx-4 { margin-left: 1.5rem !important; margin-right: 1.5rem !important; }
.mx-5 { margin-left: 3rem !important; margin-right: 3rem !important; }

.my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
.my-1 { margin-top: 0.25rem !important; margin-bottom: 0.25rem !important; }
.my-2 { margin-top: 0.5rem !important; margin-bottom: 0.5rem !important; }
.my-3 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }

/* Padding utilities */
.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: 0.25rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: 0.25rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.pb-5 { padding-bottom: 3rem !important; }

.pl-0 { padding-left: 0 !important; }
.pl-1 { padding-left: 0.25rem !important; }
.pl-2 { padding-left: 0.5rem !important; }
.pl-3 { padding-left: 1rem !important; }
.pl-4 { padding-left: 1.5rem !important; }
.pl-5 { padding-left: 3rem !important; }

.pr-0 { padding-right: 0 !important; }
.pr-1 { padding-right: 0.25rem !important; }
.pr-2 { padding-right: 0.5rem !important; }
.pr-3 { padding-right: 1rem !important; }
.pr-4 { padding-right: 1.5rem !important; }
.pr-5 { padding-right: 3rem !important; }

.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-1 { padding-left: 0.25rem !important; padding-right: 0.25rem !important; }
.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-5 { padding-left: 3rem !important; padding-right: 3rem !important; }

.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

/* === TEXT UTILITIES === */

/* Text alignment */
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.text-center { text-align: center !important; }
.text-justify { text-align: justify !important; }

/* Text decoration */
.text-decoration-none { text-decoration: none !important; }
.text-decoration-underline { text-decoration: underline !important; }
.text-decoration-line-through { text-decoration: line-through !important; }

/* Text transform */
.text-lowercase { text-transform: lowercase !important; }
.text-uppercase { text-transform: uppercase !important; }
.text-capitalize { text-transform: capitalize !important; }

/* Font weight */
.font-weight-light { font-weight: 300 !important; }
.font-weight-normal { font-weight: 400 !important; }
.font-weight-medium { font-weight: 500 !important; }
.font-weight-semibold { font-weight: 600 !important; }
.font-weight-bold { font-weight: 700 !important; }

/* Font size */
.font-size-sm { font-size: 0.875rem !important; }
.font-size-base { font-size: 1rem !important; }
.font-size-lg { font-size: 1.125rem !important; }
.font-size-xl { font-size: 1.25rem !important; }

/* Line height */
.line-height-1 { line-height: 1 !important; }
.line-height-2 { line-height: 1.25 !important; }
.line-height-3 { line-height: 1.5 !important; }
.line-height-4 { line-height: 1.75 !important; }

/* === DISPLAY UTILITIES === */

.d-none { display: none !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-block { display: block !important; }
.d-table { display: table !important; }
.d-table-row { display: table-row !important; }
.d-table-cell { display: table-cell !important; }

/* === POSITION UTILITIES === */

.position-static { position: static !important; }
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed { position: fixed !important; }
.position-sticky { position: sticky !important; }

/* === VISIBILITY UTILITIES === */

.visible { visibility: visible !important; }
.invisible { visibility: hidden !important; }

/* === OVERFLOW UTILITIES === */

.overflow-auto { overflow: auto !important; }
.overflow-hidden { overflow: hidden !important; }
.overflow-visible { overflow: visible !important; }
.overflow-scroll { overflow: scroll !important; }

/* === BORDER UTILITIES === */

.border { border: 1px solid var(--border-color) !important; }
.border-0 { border: 0 !important; }
.border-top { border-top: 1px solid var(--border-color) !important; }
.border-right { border-right: 1px solid var(--border-color) !important; }
.border-bottom { border-bottom: 1px solid var(--border-color) !important; }
.border-left { border-left: 1px solid var(--border-color) !important; }

/* === BORDER RADIUS UTILITIES === */

.rounded { border-radius: 0.375rem !important; }
.rounded-0 { border-radius: 0 !important; }
.rounded-1 { border-radius: 0.25rem !important; }
.rounded-2 { border-radius: 0.5rem !important; }
.rounded-3 { border-radius: 1rem !important; }
.rounded-circle { border-radius: 50% !important; }
.rounded-pill { border-radius: 50rem !important; }

/* === SHADOW UTILITIES === */

.shadow-sm { box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important; }
.shadow { box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important; }
.shadow-lg { box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important; }
.shadow-none { box-shadow: none !important; }

/* === WIDTH AND HEIGHT UTILITIES === */

.w-25 { width: 25% !important; }
.w-50 { width: 50% !important; }
.w-75 { width: 75% !important; }
.w-100 { width: 100% !important; }
.w-auto { width: auto !important; }

.h-25 { height: 25% !important; }
.h-50 { height: 50% !important; }
.h-75 { height: 75% !important; }
.h-100 { height: 100% !important; }
.h-auto { height: auto !important; }

/* === RESPONSIVE UTILITIES === */

/* Mobile-first responsive utilities */
.d-mobile-none { display: none !important; }
.d-mobile-block { display: block !important; }
.d-mobile-flex { display: flex !important; }
.d-mobile-inline { display: inline !important; }
.d-mobile-inline-block { display: inline-block !important; }

/* Mobile responsive utilities */
@media (max-width: 767px) {
    .d-mobile-none { display: none !important; }
    .d-mobile-block { display: block !important; }
    .d-mobile-flex { display: flex !important; }
    .d-mobile-inline { display: inline !important; }
    .d-mobile-inline-block { display: inline-block !important; }
    
    .d-mobile-hide { display: none !important; }
    .d-mobile-show { display: block !important; }
    
    .text-mobile-center { text-align: center !important; }
    .text-mobile-left { text-align: left !important; }
    .text-mobile-right { text-align: right !important; }
    
    .flex-mobile-column { flex-direction: column !important; }
    .flex-mobile-row { flex-direction: row !important; }
    .flex-mobile-wrap { flex-wrap: wrap !important; }
    .flex-mobile-nowrap { flex-wrap: nowrap !important; }
    
    .justify-mobile-center { justify-content: center !important; }
    .justify-mobile-start { justify-content: flex-start !important; }
    .justify-mobile-end { justify-content: flex-end !important; }
    .justify-mobile-between { justify-content: space-between !important; }
    
    .align-mobile-center { align-items: center !important; }
    .align-mobile-start { align-items: flex-start !important; }
    .align-mobile-end { align-items: flex-end !important; }
    .align-mobile-stretch { align-items: stretch !important; }
    
    .w-mobile-100 { width: 100% !important; }
    .w-mobile-50 { width: 50% !important; }
    .w-mobile-25 { width: 25% !important; }
    .w-mobile-auto { width: auto !important; }
    
    .h-mobile-100 { height: 100% !important; }
    .h-mobile-auto { height: auto !important; }
    
    .p-mobile-0 { padding: 0 !important; }
    .p-mobile-1 { padding: 0.25rem !important; }
    .p-mobile-2 { padding: 0.5rem !important; }
    .p-mobile-3 { padding: 0.75rem !important; }
    .p-mobile-4 { padding: 1rem !important; }
    
    .m-mobile-0 { margin: 0 !important; }
    .m-mobile-1 { margin: 0.25rem !important; }
    .m-mobile-2 { margin: 0.5rem !important; }
    .m-mobile-3 { margin: 0.75rem !important; }
    .m-mobile-4 { margin: 1rem !important; }
    
    .mb-mobile-0 { margin-bottom: 0 !important; }
    .mb-mobile-1 { margin-bottom: 0.25rem !important; }
    .mb-mobile-2 { margin-bottom: 0.5rem !important; }
    .mb-mobile-3 { margin-bottom: 0.75rem !important; }
    .mb-mobile-4 { margin-bottom: 1rem !important; }
    
    .mt-mobile-0 { margin-top: 0 !important; }
    .mt-mobile-1 { margin-top: 0.25rem !important; }
    .mt-mobile-2 { margin-top: 0.5rem !important; }
    .mt-mobile-3 { margin-top: 0.75rem !important; }
    .mt-mobile-4 { margin-top: 1rem !important; }
}

/* Tablet responsive utilities */
@media (min-width: 768px) and (max-width: 1023px) {
    .d-tablet-none { display: none !important; }
    .d-tablet-block { display: block !important; }
    .d-tablet-flex { display: flex !important; }
    .d-tablet-inline { display: inline !important; }
    .d-tablet-inline-block { display: inline-block !important; }
    
    .d-tablet-hide { display: none !important; }
    .d-tablet-show { display: block !important; }
    
    .flex-tablet-column { flex-direction: column !important; }
    .flex-tablet-row { flex-direction: row !important; }
    .flex-tablet-wrap { flex-wrap: wrap !important; }
    
    .w-tablet-100 { width: 100% !important; }
    .w-tablet-50 { width: 50% !important; }
    .w-tablet-33 { width: 33.333% !important; }
    .w-tablet-25 { width: 25% !important; }
}

/* Desktop responsive utilities */
@media (min-width: 1024px) {
    .d-desktop-none { display: none !important; }
    .d-desktop-block { display: block !important; }
    .d-desktop-flex { display: flex !important; }
    .d-desktop-inline { display: inline !important; }
    .d-desktop-inline-block { display: inline-block !important; }
    
    .d-desktop-hide { display: none !important; }
    .d-desktop-show { display: block !important; }
    
    .flex-desktop-row { flex-direction: row !important; }
    .flex-desktop-column { flex-direction: column !important; }
    
    .w-desktop-100 { width: 100% !important; }
    .w-desktop-75 { width: 75% !important; }
    .w-desktop-50 { width: 50% !important; }
    .w-desktop-33 { width: 33.333% !important; }
    .w-desktop-25 { width: 25% !important; }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .d-sm-none { display: none !important; }
    .d-sm-inline { display: inline !important; }
    .d-sm-inline-block { display: inline-block !important; }
    .d-sm-block { display: block !important; }
    .d-sm-flex { display: flex !important; }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .d-md-none { display: none !important; }
    .d-md-inline { display: inline !important; }
    .d-md-inline-block { display: inline-block !important; }
    .d-md-block { display: block !important; }
    .d-md-flex { display: flex !important; }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .d-lg-none { display: none !important; }
    .d-lg-inline { display: inline !important; }
    .d-lg-inline-block { display: inline-block !important; }
    .d-lg-block { display: block !important; }
    .d-lg-flex { display: flex !important; }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .d-xl-none { display: none !important; }
    .d-xl-inline { display: inline !important; }
    .d-xl-inline-block { display: inline-block !important; }
    .d-xl-block { display: block !important; }
    .d-xl-flex { display: flex !important; }
}

/* === CURSOR UTILITIES === */

.cursor-pointer { cursor: pointer !important; }
.cursor-default { cursor: default !important; }
.cursor-not-allowed { cursor: not-allowed !important; }

/* === USER SELECT UTILITIES === */

.user-select-none { user-select: none !important; }
.user-select-auto { user-select: auto !important; }

/* === POINTER EVENTS UTILITIES === */

.pe-none { pointer-events: none !important; }
.pe-auto { pointer-events: auto !important; }

/* === TRANSITION UTILITIES === */

.transition { transition: all 0.2s ease !important; }
.transition-fast { transition: all 0.1s ease !important; }
.transition-slow { transition: all 0.3s ease !important; }

/* === TRANSFORM UTILITIES === */

.transform-none { transform: none !important; }
.transform-scale-1 { transform: scale(1) !important; }
.transform-scale-1-1 { transform: scale(1.1) !important; }
.transform-scale-0-9 { transform: scale(0.9) !important; }
.transform-translate-y-1 { transform: translateY(-1px) !important; }
.transform-translate-y-2 { transform: translateY(-2px) !important; }

/* === Z-INDEX UTILITIES === */

.z-0 { z-index: 0 !important; }
.z-1 { z-index: 1 !important; }
.z-10 { z-index: 10 !important; }
.z-100 { z-index: 100 !important; }
.z-1000 { z-index: 1000 !important; }
.z-1030 { z-index: 1030 !important; }
.z-1050 { z-index: 1050 !important; }
.z-1051 { z-index: 1051 !important; }

/* === BACKGROUND UTILITIES === */

.bg-transparent { background-color: transparent !important; }
.bg-white { background-color: var(--card-bg) !important; }
.bg-light { background-color: var(--light-bg) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-success { background-color: var(--success-color) !important; }
.bg-warning { background-color: var(--warning-color) !important; }
.bg-danger { background-color: var(--danger-color) !important; }

/* === GRADIENT BACKGROUND UTILITIES === */

.bg-gradient-primary { background: var(--gradient-primary) !important; }
.bg-gradient-secondary { background: var(--gradient-secondary) !important; }
.bg-gradient-accent { background: var(--gradient-accent) !important; }
.bg-gradient-light { background: var(--gradient-light) !important; }
.bg-gradient-success { background: var(--gradient-success) !important; }
.bg-gradient-warning { background: var(--gradient-warning) !important; }
.bg-gradient-orange { background: var(--gradient-orange) !important; }
.bg-gradient-orange-muted { background: var(--gradient-orange-muted) !important; } 