/* Yii ActiveForm validation classes → Tailwind equivalents */
.help-block {
    display: block;
    font-size: 0.75rem;
    color: #ef4444;
    margin-top: 0.25rem;
}

.has-error input,
.has-error textarea,
.has-error select {
    border-color: #ef4444 !important;
    --tw-ring-color: rgba(239, 68, 68, 0.5);
}

.has-error input:focus,
.has-error textarea:focus {
    --tw-ring-color: rgba(239, 68, 68, 0.5);
}

/* Breadcrumbs */
.breadcrumb {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    list-style: none;
    padding: 0.5rem 0;
    margin-bottom: 1.25rem;
    font-size: 0.8rem;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    min-width: 0;
}

.breadcrumb li + li::before {
    content: '/';
    margin: 0 0.4rem;
    color: #d1d5db;
    flex-shrink: 0;
}

.breadcrumb li:last-child {
    color: #374151;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
}

.breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color .15s;
    white-space: nowrap;
}

.breadcrumb a:hover {
    color: #0891b2;
}

/* Captcha image */
.site-contact img[src*="captcha"] {
    border-radius: 0.5rem;
    height: 36px;
}

/* Pagination — page active */
.active-page a {
    background-color: #06b6d4;
    color: #ffffff !important;
    font-weight: 700;
    border-color: #06b6d4 !important;
    box-shadow: 0 1px 4px rgba(6,182,212,.4);
    pointer-events: none;
}

/* GridView sort icons */
a.asc::after,
a.desc::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 4px transparent;
    margin: 0 4px;
}

a.asc::after {
    border-bottom: solid 6px currentColor;
    border-top-width: 0;
    vertical-align: middle;
}

a.desc::after {
    border-top: solid 6px currentColor;
    border-bottom-width: 0;
    vertical-align: middle;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    color: #6b7280;
}

.error-summary {
    color: #b91c1c;
    background: #fef2f2;
    border-left: 3px solid #fca5a5;
    padding: 10px 20px;
    margin-bottom: 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}
