/**
 * Shared utility classes — replaces common inline styles across views.
 */

/* Display & flex */
.u-flex { display: flex; }
.u-inline-flex { display: inline-flex; }
.u-flex-wrap { flex-wrap: wrap; }
.u-flex-col { flex-direction: column; }
.u-items-center { align-items: center; }
.u-items-start { align-items: flex-start; }
.u-items-end { align-items: flex-end; }
.u-justify-center { justify-content: center; }
.u-justify-between { justify-content: space-between; }
.u-justify-end { justify-content: flex-end; }
.u-flex-1 { flex: 1; }
.u-flex-shrink-0 { flex-shrink: 0; }
.u-gap-6 { gap: 6px; }
.u-gap-8 { gap: 8px; }
.u-gap-10 { gap: 10px; }
.u-gap-12 { gap: 12px; }
.u-gap-15 { gap: 15px; }
.u-gap-16 { gap: 16px; }
.u-gap-20 { gap: 20px; }
.u-gap-24 { gap: 24px; }

/* Sizing */
.u-w-100 { width: 100%; }
.u-max-w-100 { max-width: 100%; }
.u-min-w-0 { min-width: 0; }
.u-min-w-200 { min-width: 200px; }

/* Spacing */
.u-m-0 { margin: 0; }
.u-mb-0 { margin-bottom: 0; }
.u-mb-8 { margin-bottom: 8px; }
.u-mb-10 { margin-bottom: 10px; }
.u-mb-12 { margin-bottom: 12px; }
.u-mb-15 { margin-bottom: 15px; }
.u-mb-16 { margin-bottom: 16px; }
.u-mb-18 { margin-bottom: 18px; }
.u-mb-20 { margin-bottom: 20px; }
.u-mb-24 { margin-bottom: 24px; }
.u-mb-28 { margin-bottom: 28px; }
.u-mb-30 { margin-bottom: 30px; }
.u-mb-32 { margin-bottom: 32px; }
.u-mb-40 { margin-bottom: 40px; }
.u-mt-18 { margin-top: 18px; }
.u-mt-40 { margin-top: 40px; }
.u-ml-5 { margin-left: 5px; }
.u-p-0 { padding: 0; }
.u-p-20 { padding: 20px; }
.u-p-24 { padding: 24px; }
.u-p-25 { padding: 25px; }

/* Typography */
.u-text-center { text-align: center; }
.u-text-left { text-align: left; }
.u-text-right { text-align: right; }
.u-text-muted { color: #64748b; }
.u-text-gray { color: #666; }
.u-text-dark { color: #333; }
.u-text-primary { color: #2971b7; }
.u-text-danger { color: #dc3545; }
.u-text-white { color: #fff; }
.u-fw-500 { font-weight: 500; }
.u-fw-600 { font-weight: 600; }
.u-fw-700 { font-weight: 700; }
.u-fw-800 { font-weight: 800; }
.u-fs-13 { font-size: 13px; }
.u-fs-14 { font-size: 14px; }
.u-fs-15 { font-size: 15px; }
.u-fs-16 { font-size: 16px; }
.u-fs-18 { font-size: 18px; }
.u-fs-20 { font-size: 20px; }
.u-lh-14 { line-height: 1.4; }
.u-lh-16 { line-height: 1.6; }
.u-lh-18 { line-height: 1.8; }
.u-no-decoration { text-decoration: none; }
.u-inherit-color { color: inherit; }

/* Backgrounds */
.u-bg-light { background: #f8f9fa; }
.u-bg-white { background: #fff; }
.u-bg-primary-soft { background: #e3f2fd; }
.u-bg-warning-soft { background: #fff3cd; }

/* Borders & radius */
.u-rounded-8 { border-radius: 8px; }
.u-rounded-12 { border-radius: 12px; }
.u-rounded-15 { border-radius: 15px; }
.u-rounded-16 { border-radius: 16px; }
.u-border-eee { border: 1px solid #eee; }

/* Grid */
.u-grid-auto-300 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.u-grid-col-full {
    grid-column: 1 / -1;
}

/* Misc */
.u-block { display: block; }
.u-inline-block { display: inline-block; }
.u-hidden { display: none !important; }

/* JS alert placeholders — never show empty boxes */
.alert.u-hidden,
.alert[hidden] {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    min-height: 0 !important;
}
.u-overflow-hidden { overflow: hidden; }
.u-object-cover { object-fit: cover; }
.u-cursor-pointer { cursor: pointer; }
.u-list-none { list-style: none; }
.u-shadow-sm { box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); }

/* Badges */
.u-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.u-badge-primary {
    background: #e3f2fd;
    color: #2971b7;
}

.u-badge-warning {
    background: #fff3cd;
    color: #856404;
}

/* Empty states */
.u-empty-box {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.u-empty-icon {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 20px;
}

/* Form field block */
.u-field-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.u-field-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
}
