/* ==========================================
   UTILITIES.CSS
   Reusable helper classes
========================================== */

/* ==========================================
   Display
========================================== */

.hidden {
    display: none !important;
}

.block {
    display: block !important;
}

.inline {
    display: inline !important;
}

.inline-block {
    display: inline-block !important;
}

.flex {
    display: flex !important;
}

.grid {
    display: grid !important;
}

/* ==========================================
   Flex Helpers
========================================== */

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-around {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-sm {
    gap: .5rem;
}

.gap-md {
    gap: 1rem;
}

.gap-lg {
    gap: 2rem;
}

/* ==========================================
   Width
========================================== */

.w-100 {
    width: 100%;
}

.w-75 {
    width: 75%;
}

.w-50 {
    width: 50%;
}

.max-600 {
    max-width: 600px;
}

.max-800 {
    max-width: 800px;
}

.max-1000 {
    max-width: 1000px;
}

/* ==========================================
   Margin
========================================== */

.m-0 {
    margin: 0;
}

.mt-sm {
    margin-top: .5rem;
}

.mt-md {
    margin-top: 1rem;
}

.mt-lg {
    margin-top: 2rem;
}

.mt-xl {
    margin-top: 3rem;
}

.mb-sm {
    margin-bottom: .5rem;
}

.mb-md {
    margin-bottom: 1rem;
}

.mb-lg {
    margin-bottom: 2rem;
}

.mb-xl {
    margin-bottom: 3rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================
   Padding
========================================== */

.p-sm {
    padding: .5rem;
}

.p-md {
    padding: 1rem;
}

.p-lg {
    padding: 2rem;
}

.p-xl {
    padding: 3rem;
}

/* ==========================================
   Text Alignment
========================================== */

.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-justify {
    text-align: justify;
}

/* ==========================================
   Font Weight
========================================== */

.fw-normal {
    font-weight: 400;
}

.fw-medium {
    font-weight: 500;
}

.fw-bold {
    font-weight: 700;
}

.fw-extra {
    font-weight: 800;
}

/* ==========================================
   Font Size
========================================== */

.text-sm {
    font-size: .85rem;
}

.text-md {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.2rem;
}

.text-xl {
    font-size: 1.5rem;
}

.text-xxl {
    font-size: 2rem;
}

/* ==========================================
   Colors
========================================== */

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.text-success {
    color: #16a34a;
}

.text-danger {
    color: #dc2626;
}

.text-warning {
    color: #d97706;
}

.text-muted {
    color: #6b7280;
}

.bg-primary {
    background: var(--primary-color);
}

.bg-light {
    background: #f8fafc;
}

.bg-white {
    background: #ffffff;
}

.bg-success {
    background: #ecfdf5;
}

.bg-warning {
    background: #fffbeb;
}

.bg-danger {
    background: #fef2f2;
}

/* ==========================================
   Border Radius
========================================== */

.rounded-sm {
    border-radius: 6px;
}

.rounded {
    border-radius: 12px;
}

.rounded-lg {
    border-radius: 20px;
}

.rounded-full {
    border-radius: 999px;
}

/* ==========================================
   Shadow
========================================== */

.shadow-sm {
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.shadow {
    box-shadow: 0 8px 20px rgba(0,0,0,.10);
}

.shadow-lg {
    box-shadow: 0 18px 40px rgba(0,0,0,.15);
}

/* ==========================================
   Border
========================================== */

.border {
    border: 1px solid #e5e7eb;
}

.border-primary {
    border: 2px solid var(--primary-color);
}

.border-success {
    border: 2px solid #16a34a;
}

.border-warning {
    border: 2px solid #d97706;
}

.border-danger {
    border: 2px solid #dc2626;
}

/* ==========================================
   Cursor
========================================== */

.pointer {
    cursor: pointer;
}

.no-select {
    user-select: none;
}

/* ==========================================
   Overflow
========================================== */

.overflow-auto {
    overflow: auto;
}

.overflow-hidden {
    overflow: hidden;
}

/* ==========================================
   Position
========================================== */

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.sticky {
    position: sticky;
    top: 20px;
}

.fixed {
    position: fixed;
}

/* ==========================================
   Lists
========================================== */

.list-none {
    list-style: none;
    padding: 0;
}

.list-disc {
    list-style: disc;
}

.list-decimal {
    list-style: decimal;
}

/* ==========================================
   Images
========================================== */

.img-responsive {
    width: 100%;
    height: auto;
    display: block;
}

.img-rounded {
    border-radius: 16px;
}

.img-circle {
    border-radius: 50%;
}

/* ==========================================
   Visibility
========================================== */

.visible {
    visibility: visible;
}

.invisible {
    visibility: hidden;
}

/* ==========================================
   Divider
========================================== */

.hr {
    width: 100%;
    height: 1px;
    background: #e5e7eb;
    margin: 2rem 0;
}

/* ==========================================
   Screen Reader Only
========================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* ==========================================
   Responsive Helpers
========================================== */

@media (max-width:768px){

.mobile-center{
    text-align:center;
}

.mobile-full{
    width:100%;
}

.mobile-hide{
    display:none !important;
}

}

@media (min-width:769px){

.desktop-hide{
    display:none !important;
}

}