/**
 * Utility Classes for CSP-Compliant Styling
 *
 * This file contains utility classes to replace inline styles
 * for Content Security Policy (CSP) compliance.
 */

/* Width Utilities for Progress Bars */
.w-25 { width: 25%; }
.w-33 { width: 33%; }
.w-35 { width: 35%; }
.w-40 { width: 40%; }
.w-50 { width: 50%; }
.w-75 { width: 75%; }

/* Font Size Utilities */
.font-xs { font-size: 0.75rem; }
.font-sm { font-size: 0.9rem; }
.font-md { font-size: 1rem; }
.font-lg { font-size: 1.25rem; }
.font-lg-custom { font-size: 1.4rem; }

/* Image Sizing Utilities */
.img-profile {
    max-width: 200px;
    max-height: 200px;
}

.img-full {
    max-width: 100%;
}

.img-staff-detail {
    max-width: 100%;
}

.img-staff-form {
    max-width: 200px;
    max-height: 200px;
}

.img-juvenile-form {
    max-height: 200px;
}

.img-marking {
    max-height: 200px;
    object-fit: contain;
    width: 100%;
}

.img-marking-preview {
    max-height: 300px;
    object-fit: contain;
}

/* Map Container */
.map-container {
    height: 500px;
    width: 100%;
}

.map-container-lg {
    height: 600px;
    width: 100%;
}

/* Scrollable Sidebar */
.sidebar-scrollable {
    max-height: 550px;
    overflow-y: auto;
}

/* Text Decoration Utilities */
.text-no-decoration {
    text-decoration: none;
}

/* Width Utilities */
.max-w-200 {
    max-width: 200px;
}

/* Minimum Width Utilities */
.min-w-120 {
    min-width: 120px;
}

/* Margin Utilities */
.mb-xs {
    margin-bottom: 0.2rem;
}

/* Profile Image in Navbar */
.img-profile-nav {
    width: 30px;
    height: 30px;
    object-fit: cover;
}

/* Staff list utilities */
.staff-picture-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    cursor: pointer;
}

.staff-picture-fallback {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.staff-picture-fallback .fa-user-circle {
    font-size: 1.5rem;
}

.staff-filter-card {
    background-color: #f8f9fa;
}

.staff-badge-status {
    font-size: 0.75rem;
}

/* Display Utilities */
.d-inline {
    display: inline;
}

.d-none-custom {
    display: none;
}

/* Button Utilities */
.shadow-none {
    box-shadow: none !important;
}

.btn-dropdown-item {
    width: 100%;
    text-align: left;
}

/* Clickable Row Styles */
.clickable-row {
    cursor: pointer;
}

.clickable-row:hover {
    background-color: rgba(0, 0, 0, 0.075);
}

/* Prevent click propagation for interactive elements within clickable rows */
.clickable-row a,
.clickable-row button,
.clickable-row input,
.clickable-row select {
    position: relative;
    z-index: 1;
}


/* Booking photo thumbnail and placeholder */
.booking-photo-thumb {
    width: 130px;
    height: 130px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid var(--bs-border-color);
}

.booking-photo-placeholder {
    width: 130px;
    height: 130px;
    background: #f1f5f9;
    border: 2px dashed var(--bs-border-color);
}
