/* Utility Classes for Common Inline Styles */

/* Image sizing and object fit */
.img-cover {
    object-fit: cover;
}

.img-contain {
    object-fit: contain;
}

.img-height-60px {
    height: 60px;
}

.img-height-45px {
    height: 45px;
}

.img-height-40px {
    height: 40px;
}

.img-height-30px {
    height: 30px;
}

.img-height-200px {
    height: 200px;
}

.img-height-150px {
    height: 150px;
}

.img-height-120px {
    height: 120px;
}

.img-width-60px {
    width: 60px;
}

.img-width-40px {
    width: 40px;
}

.img-width-80px {
    width: 80px;
}

.img-width-100px {
    width: 100px;
}

.img-max-width-400px {
    max-width: 400px;
}

.img-max-width-200px {
    max-width: 200px;
}

.img-max-width-150px {
    max-width: 150px;
}

.img-max-width-120px {
    max-width: 120px;
}

.img-max-width-100px {
    max-width: 100px;
}

.img-height-100px {
    height: 100px;
}

.img-min-width-100px {
    min-width: 100px;
}

.img-min-height-100px {
    min-height: 100px;
}

/* Border radius */
.border-radius-0375rem {
    border-radius: 0.375rem;
}

.border-radius-025rem {
    border-radius: 0.25rem;
}

.border-radius-05rem {
    border-radius: 0.5rem;
}

.border-radius-8px {
    border-radius: 8px;
}

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

/* Font sizes */
.font-size-07rem {
    font-size: 0.7rem;
}

.font-size-075rem {
    font-size: 0.75rem;
}

.font-size-08rem {
    font-size: 0.8rem;
}

.font-size-085rem {
    font-size: 0.85rem;
}

.font-size-09rem {
    font-size: 0.9rem;
}

.font-size-095rem {
    font-size: 0.95rem;
}

.font-size-12rem {
    font-size: 1.2rem;
}

.font-size-24rem {
    font-size: 2.4rem;
}

.font-size-3rem {
    font-size: 3rem;
}

.font-size-4rem {
    font-size: 4rem;
}

.font-size-32px {
    font-size: 32px;
}

.font-size-48px {
    font-size: 48px;
}

.font-size-60px {
    font-size: 60px;
}

.font-weight-600 {
    font-weight: 600;
}

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

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

/* Colors */
.color-purple {
    color: #6f42c1;
}

.color-green {
    color: #198754;
}

.color-success {
    color: #198754;
}

.color-info {
    color: #0dcaf0;
}

.color-warning {
    color: #ffc107;
}

.color-danger {
    color: #dc3545;
}

.color-muted {
    color: #6c757d;
}

.color-dark {
    color: #212529;
}

.color-white {
    color: white;
}

.color-light-gray {
    color: #6c757d;
}

/* Background colors */
.bg-gradient-purple-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-pink-red {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.bg-gradient-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-gray {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.bg-light-gray {
    background-color: #f8f9fa;
}

.bg-white {
    background-color: white;
}

/* Spacing */
.padding-025-05rem {
    padding: 0.25rem 0.5rem;
}

.padding-025-075rem {
    padding: 0.25rem 0.75rem;
}

.padding-05-1rem {
    padding: 0.5rem 1rem;
}

.padding-04-08rem {
    padding: 0.4rem 0.8rem;
}

.padding-1rem {
    padding: 1rem;
}

.padding-15rem {
    padding: 1.5rem;
}

.padding-2rem {
    padding: 2rem;
}

.padding-3rem {
    padding: 3rem;
}

.margin-top-25px {
    margin-top: 25px;
}

.margin-bottom-025rem {
    margin-bottom: 0.25rem;
}

.margin-bottom-05rem {
    margin-bottom: 0.5rem;
}

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

.margin-bottom-15rem {
    margin-bottom: 1.5rem;
}

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

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

.margin-0-auto {
    margin: 0 auto;
}

/* Position */
.position-absolute {
    position: absolute;
}

.position-fixed {
    position: fixed;
}

.position-relative {
    position: relative;
}

.top-0 {
    top: 0;
}

.bottom-0 {
    bottom: 0;
}

.start-0 {
    left: 0;
}

.end-0 {
    right: 0;
}

.top-50 {
    top: 50%;
}

.start-50 {
    left: 50%;
}

.translate-middle {
    transform: translate(-50%, -50%);
}

.position-fixed-bottom-right {
    position: fixed;
    bottom: 0;
    right: 0;
}

/* Display */
.display-none {
    display: none;
}

.display-block {
    display: block;
}

.display-inline {
    display: inline;
}

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

.display-flex {
    display: flex;
}

.display-grid {
    display: grid;
}

/* Flex utilities */
.flex-column {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.flex-row-reverse {
    flex-direction: row-reverse;
}

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

.align-items-flex-start {
    align-items: flex-start;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-between {
    justify-content: space-between;
}

.justify-content-flex-end {
    justify-content: flex-end;
}

.flex-1 {
    flex: 1;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.gap-025rem {
    gap: 0.25rem;
}

.gap-05rem {
    gap: 0.5rem;
}

.gap-075rem {
    gap: 0.75rem;
}

.gap-1rem {
    gap: 1rem;
}

.gap-2rem {
    gap: 2rem;
}

.gap-3rem {
    gap: 3rem;
}

.gap-4rem {
    gap: 4rem;
}

/* Width */
.width-100 {
    width: 100%;
}

.width-auto {
    width: auto;
}

.width-250px {
    width: 250px;
}

.width-350px {
    width: 350px;
}

.width-900px {
    width: 900px;
}

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

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

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

.min-width-0 {
    min-width: 0;
}

.min-width-150px {
    min-width: 150px;
}

.min-width-200px {
    min-width: 200px;
}

/* Height */
.height-100 {
    height: 100%;
}

.height-400px {
    height: 400px;
}

.height-500px {
    height: 500px;
}

.min-height-120px {
    min-height: 120px;
}

.min-height-200px {
    min-height: 200px;
}

.calc-height-100vh-200px {
    height: calc(100vh - 200px);
}

.calc-height-100vh-40px {
    height: calc(100vh - 40px);
}

/* Z-index */
.z-index-1000 {
    z-index: 1000;
}

.z-index-9999 {
    z-index: 9999;
}

.z-index-1030 {
    z-index: 1030;
}

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

.overflow-x-auto {
    overflow-x: auto;
}

.overflow-hidden {
    overflow: hidden;
}

.max-height-150px {
    max-height: 150px;
}

.max-height-300px {
    max-height: 300px;
}

.max-height-500px {
    max-height: 500px;
}

/* Text */
.text-center {
    text-align: center;
}

.text-decoration-none {
    text-decoration: none;
}

.text-uppercase {
    text-transform: uppercase;
}

.letter-spacing-05px {
    letter-spacing: 0.5px;
}

.line-height-16 {
    line-height: 1.6;
}

.line-height-18 {
    line-height: 1.8;
}

/* Cursor */
.cursor-pointer {
    cursor: pointer;
}

.cursor-default {
    cursor: default;
}

/* User select */
.user-select-none {
    user-select: none;
}

/* Visibility */
.visibility-visible {
    visibility: visible;
}

.opacity-1 {
    opacity: 1;
}

/* Transitions */
.transition-all {
    transition: all 0.3s ease;
}

.transition-all-02s {
    transition: all 0.2s ease;
}

.transition-all-015s {
    transition: all 0.15s ease-in-out;
}

.transition-colors {
    transition: color 0.2s ease;
}

.transition-transform {
    transition: transform 0.2s ease;
}

.transition-background-color {
    transition: background-color 0.15s ease-in-out;
}

.transition-border-color {
    transition: border-color 0.15s ease-in-out;
}

.transition-box-shadow {
    transition: box-shadow 0.15s ease-in-out;
}

/* Transforms */
.transform-translateY-20px {
    transform: translateY(20px);
}

.transform-translateY-10px {
    transform: translateY(10px);
}

.transform-translateY-2px {
    transform: translateY(2px);
}

.transform-translateY-1px {
    transform: translateY(-1px);
}

.transform-scale-105 {
    transform: scale(1.05);
}

.transform-scale-11 {
    transform: scale(1.1);
}

.transform-scale-12 {
    transform: scale(1.2);
}

.transform-rotate-0deg {
    transform: rotate(0deg);
}

.transform-rotate-360deg {
    transform: rotate(360deg);
}

.transform-rotate-90deg {
    transform: rotate(-90deg);
}

/* Box shadow */
.box-shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.box-shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.box-shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* Border */
.border-1px-solid {
    border: 1px solid;
}

.border-2px-solid {
    border: 2px solid;
}

.border-2px-dashed {
    border: 2px dashed;
}

.border-color-e9ecef {
    border-color: #e9ecef;
}

.border-color-dee2e6 {
    border-color: #dee2e6;
}

.border-color-0d6efd {
    border-color: #0d6efd;
}

.border-color-ced4da {
    border-color: #ced4da;
}

.border-color-ddd {
    border-color: #ddd;
}

/* Outline */
.outline-none {
    outline: none;
}

/* Resize */
.resize-vertical {
    resize: vertical;
}

/* Grid */
.grid-template-columns-1fr-auto-1fr {
    grid-template-columns: 1fr auto 1fr;
}

.grid-template-columns-repeat-auto-fill-200px {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* Animation */
.animation-fadeIn {
    animation: fadeIn 0.3s ease-in-out;
}

.animation-slideDown {
    animation: slideDown 0.2s ease;
}

.animation-slideUp {
    animation: slideUp 0.2s ease;
}

.animation-spin {
    animation: spin 1s linear infinite;
}

.animation-pulse {
    animation: pulse 2s infinite;
}

/* Keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% {
        box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
    }
    50% {
        box-shadow: 0 2px 8px rgba(0, 123, 255, 0.5);
    }
    100% {
        box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
    }
}

/* Important overrides for specificity */
.display-block-important {
    display: block !important;
}

.visibility-visible-important {
    visibility: visible !important;
}

.opacity-1-important {
    opacity: 1 !important;
}

.width-100-important {
    width: 100% !important;
}

.height-auto-important {
    height: auto !important;
}

.border-2px-solid-e9ecef-important {
    border: 2px solid #e9ecef !important;
}

.border-radius-0375rem-important {
    border-radius: 0.375rem !important;
}

.padding-075rem-important {
    padding: 0.75rem !important;
}

.font-size-1rem-important {
    font-size: 1rem !important;
}

.bg-white-important {
    background: white !important;
}

.color-495057-important {
    color: #495057 !important;
}

/* Form specific utilities */
.form-width-100-important {
    width: 100% !important;
}

.form-height-auto-important {
    height: auto !important;
}

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

.form-visibility-visible-important {
    visibility: visible !important;
}

.form-opacity-1-important {
    opacity: 1 !important;
}

/* Image upload specific */
.upload-img-width-100px-important {
    width: 100px !important;
}

.upload-img-height-100px-important {
    height: 100px !important;
}

.upload-img-max-width-100px-important {
    max-width: 100px !important;
}

.upload-img-max-height-100px-important {
    max-height: 100px !important;
}

.upload-img-min-width-100px-important {
    min-width: 100px !important;
}

.upload-img-min-height-100px-important {
    min-height: 100px !important;
}

.upload-img-object-fit-cover-important {
    object-fit: cover !important;
}

.upload-img-display-block-important {
    display: block !important;
}

/* Button utilities */
.btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.btn-display-none {
    display: none;
}

/* Input utilities */
.input-display-none {
    display: none;
}

/* Table utilities */
.table-width-200 {
    width: 200px;
}

.table-width-300 {
    width: 300px;
}

/* Container utilities */
.container-max-width-900px {
    max-width: 900px;
}

.container-max-width-1200px {
    max-width: 1200px;
}

/* Custom scrollbar utilities */
.custom-scrollbar-6px::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar-12px::-webkit-scrollbar {
    width: 12px;
}

.custom-scrollbar-10px::-webkit-scrollbar {
    width: 10px;
}

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

.custom-scrollbar-track-gradient::-webkit-scrollbar-track {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.custom-scrollbar-thumb-c1c1c1::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.custom-scrollbar-thumb-gradient::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
    border: 1px solid #e9ecef;
}

/* Firefox scrollbar */
.scrollbar-thin {
    scrollbar-width: thin;
}

.scrollbar-color-667eea-f8f9fa {
    scrollbar-color: #667eea #f8f9fa;
}

/* Badge utilities */
.badge-font-size-07em {
    font-size: 0.7em;
}

.badge-padding-025-05em {
    padding: 0.25em 0.5em;
}

.badge-min-width-15em {
    min-width: 1.5em;
}

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

/* Featured badge style */
.badge-featured {
    background-color: #ffc107 !important; /* Yellow background */
    color: #000000 !important; /* Black text */
}

.badge-featured i {
    color: #000000 !important; /* Black star icon */
}

/* List utilities */
.list-style-none {
    list-style: none;
}

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

.list-margin-0 {
    margin: 0;
}

/* Text decoration */
.text-decoration-inherit {
    text-decoration: inherit;
}

.text-decoration-none-important {
    text-decoration: none !important;
}

/* Color inherit */
.color-inherit {
    color: inherit;
}

/* Loading spinner */
.loading-spinner-32px {
    width: 32px;
    height: 32px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* Box sizing */
.box-sizing-border-box {
    box-sizing: border-box;
}

/* Pointer events */
.pointer-events-none {
    pointer-events: none;
}

.pointer-events-auto {
    pointer-events: auto;
}

/* Transform origin */
.transform-origin-center {
    transform-origin: center;
}

/* Backface visibility */
.backface-visibility-hidden {
    backface-visibility: hidden;
}

/* Will change */
.will-change-transform {
    will-change: transform;
}

/* Filter */
.drop-shadow-sm {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Mix blend mode */
.mix-blend-mode-normal {
    mix-blend-mode: normal;
}

/* Isolation */
.isolation-isolate {
    isolation: isolate;
}
