/* ============================================
   PAGINATION STYLES (Copied from exercise_systems)
   ============================================ */

.active-page a {
    background-color: #2563eb !important; /* blue-600 */
    color: white !important;
    border-color: #2563eb !important;
    pointer-events: none;
}

.disabled-page span, 
.disabled-page a {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f9fafb !important;
    pointer-events: none;
}

/* ============================================
   GLOBAL ERROR DISPLAY STYLES
   ============================================ */
.help-block {
    color: #ef4444; /* red-500 */
    font-size: 0.875rem; /* text-sm */
    margin-top: 0.25rem;
    font-style: italic;
    display: block;
}

.has-error .form-control {
    border-color: #ef4444 !important;
    background-color: #fef2f2; /* red-50 */
}

.has-error .help-block {
    color: #ef4444;
}

/* ============================================
   GRIDVIEW & YII DEFAULT STYLES (From site.css)
   ============================================ */
/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

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

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #b91c1c; /* red-700 */
    background: #fef2f2; /* red-50 */
    border-left: 3px solid #f87171; /* red-400 */
    padding: 10px 20px;
    margin: 0 0 15px 0;
}
