
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14.5px;
    line-height: 1;
    padding: 13px 28px;
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    box-sizing: border-box;
    outline: none;
    background-image: none;
    text-shadow: none;
    box-shadow: none;
}
.btn:focus-visible  { box-shadow: 0 0 0 3px rgba(124,58,237,.3); }
.btn:hover          { text-decoration: none; transform: translateY(-2px); }
.btn:active         { transform: translateY(0); }
.btn:disabled,
.btn[disabled]      { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn:focus,
.btn:active:focus,
.btn.active:focus   { outline: none; }

.btn--pill    { border-radius: 30px; }   
.btn--rect    { border-radius: 12px; }   
.btn--md-rect { border-radius: 10px; padding: 8px 20px; font-size: 13.5px; line-height: 1.5; } 
.btn--rect-sm { border-radius: 8px;  }   

.btn--xs   { font-size: 11.5px; padding: 5px 12px;   gap: 4px; border-radius: 7px; letter-spacing: .02em; }
.btn--sm   { font-size: 12px;   padding: 6px 14px;   gap: 5px; }
.btn--lg   { font-size: 15.5px; padding: 15px 36px; }
.btn--icon { padding: 8px; min-width: 36px; height: 36px; border-radius: 8px; }

.btn--md-sq { padding: 0; width: 38px; height: 38px; gap: 0; flex-shrink: 0; }

.btn--outline .fa-sliders { color: #7c3aed; }
.btn--outline .fa-spinner { color: #7c3aed; }   

.btn--md-sq { position: relative; overflow: visible; }

.filter-badge {
    display: none;
    position: absolute;
    top: -5px;
    right: -5px;
    background: #7c3aed;
    color: #fff;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    box-sizing: border-box;
    border: 2px solid #fff;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.filter-badge.is-active { display: inline-flex; }

.btn--primary {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(124,58,237,.3);
}
.btn--primary:hover {
    background: linear-gradient(135deg, #6d28d9, #5b21b6);
    box-shadow: 0 6px 20px rgba(124,58,237,.4);
    color: #fff;
}

.btn--outline {
    background: #fff;
    color: #374151;
    border-color: #e5e7eb;
}
.btn--outline:hover {
    border-color: #c4b5fd;
    color: #7c3aed;
    background: #faf8ff;
}

.btn--ghost {
    background: rgba(255,255,255,.12);
    color: #fff;
    border-color: rgba(255,255,255,.35);
    backdrop-filter: blur(4px);
}
.btn--ghost:hover {
    background: rgba(255,255,255,.2);
    border-color: rgba(255,255,255,.6);
    color: #fff;
}

.btn--success { background: #16a34a; color: #fff; border-color: transparent; }
.btn--success:hover { background: #15803d; color: #fff; }

.btn--disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }

.btn--danger { background: #fee2e2; color: #dc2626; border-color: transparent; }
.btn--danger:hover { background: #dc2626; color: #fff; }

.btn--outline-danger { background: #fff; color: #dc2626; border-color: #fca5a5; }
.btn--outline-danger:hover { background: #dc2626; color: #fff; border-color: #dc2626; }

.btn--info { background: #dbeafe; color: #2563eb; border-color: transparent; }
.btn--info:hover { background: #2563eb; color: #fff; }

.btn--view   { background: #ede9fe; color: #7c3aed; border-color: transparent; }
.btn--edit   { background: #dbeafe; color: #2563eb; border-color: transparent; }
.btn--delete { background: #fee2e2; color: #dc2626; border-color: transparent; }
.btn--schedule { background: #ccfbf1; color: #0d9488; border-color: transparent; }
.btn--enrollment { background: #fce7f3; color: #be185d; border-color: transparent; }
.btn--enrollment:hover { background: #be185d; color: #fff; }
.btn--view:hover   { background: #7c3aed; color: #fff; }
.btn--edit:hover   { background: #2563eb; color: #fff; }
.btn--delete:hover { background: #dc2626; color: #fff; }
.btn--schedule:hover { background: #0d9488; color: #fff; }

.btn--attendance { background: #dcfce7; color: #16a34a; border-color: transparent; }
.btn--approve    { background: #dcfce7; color: #16a34a; border-color: transparent; }
.btn--mark       { background: #fef3c7; color: #b45309; border-color: transparent; }
.btn--activity   { background: #cffafe; color: #0891b2; border-color: transparent; }
.btn--settings   { background: #f1f5f9; color: #475569; border-color: transparent; }
.btn--waiting    { background: #ffedd5; color: #c2410c; border-color: transparent; }
.btn--attendance:hover { background: #16a34a; color: #fff; }
.btn--approve:hover { background: #16a34a; color: #fff; }
.btn--mark:hover       { background: #b45309; color: #fff; }
.btn--activity:hover   { background: #0891b2; color: #fff; }
.btn--settings:hover   { background: #475569; color: #fff; }
.btn--waiting:hover    { background: #c2410c; color: #fff; }

.btn-default { background-color: #fff;    color: #374151; border: 1.5px solid #e5e7eb; border-radius: 8px; }
.btn-default:hover { background-color: #f9fafb; border-color: #c4b5fd; color: #7c3aed; }

.btn-primary { background: linear-gradient(135deg,#7c3aed,#6d28d9); color: #fff; border-color: transparent; border-radius: 10px; }
.btn-primary:hover, .btn-primary:focus { background: linear-gradient(135deg,#6d28d9,#5b21b6); color: #fff; }

.btn-success { background-color: #16a34a; color: #fff; border-color: transparent; border-radius: 8px; }
.btn-success:hover { background-color: #15803d; color: #fff; }

.btn-danger  { background-color: #fee2e2; color: #dc2626; border-color: transparent; border-radius: 8px; }
.btn-danger:hover { background-color: #dc2626; color: #fff; }

.btn-warning { background-color: #fef3c7; color: #d97706; border-color: transparent; border-radius: 8px; }
.btn-warning:hover { background-color: #d97706; color: #fff; }

.btn-info    { background-color: #dbeafe; color: #2563eb; border-color: transparent; border-radius: 8px; }
.btn-info:hover { background-color: #2563eb; color: #fff; }

.btn-lg { padding: 13px 28px; font-size: 15.5px; border-radius: 10px; }
.btn-sm { padding: 6px 14px;  font-size: 12px;   border-radius: 6px;  }
.btn-xs { padding: 4px 10px;  font-size: 11px;   border-radius: 5px;  }

.btn-submit {
    background: linear-gradient(135deg, #059669, #047857);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 3px 12px rgba(5,150,105,.3);
    transition: all 0.25s ease;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(5,150,105,.4); }
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled { opacity: .65; cursor: not-allowed; transform: none; }

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-secondary:hover { background: #e5e7eb; color: #111827; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    border-radius: 30px;
    padding: 14px 40px;
    width: fit-content;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}
.button:hover  { transform: translateY(-3px); text-decoration: none; }
.button:active { transform: translateY(0); }
.button:disabled { opacity: .5; cursor: not-allowed; }

.ui-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: all .2s ease;
    line-height: 1;
}
.ui-btn:hover  { opacity: .85; transform: translateY(-1px); text-decoration: none; }
.ui-btn:active { transform: translateY(0); }
.ui-btn i { font-size: 13px; }
.ui-btn--view i, .ui-btn--edit i, .ui-btn--delete i { font-size: 14px; }

.ui-btn--view    { background: #ede9fe; color: #7c3aed; width: 34px; height: 34px; padding: 0; justify-content: center; border-radius: 8px; }
.ui-btn--edit    { background: #dbeafe; color: #2563eb; width: 34px; height: 34px; padding: 0; justify-content: center; border-radius: 8px; }
.ui-btn--delete  { background: #fee2e2; color: #dc2626; width: 34px; height: 34px; padding: 0; justify-content: center; border-radius: 8px; }
.ui-btn--info    { background: #e0f2fe; color: #0369a1; width: 34px; height: 34px; padding: 0; justify-content: center; border-radius: 8px; }
.ui-btn--attendance { background: #dcfce7; color: #16a34a; width: 34px; height: 34px; padding: 0; justify-content: center; border-radius: 8px; }
.ui-btn--mark       { background: #fef3c7; color: #d97706; width: 34px; height: 34px; padding: 0; justify-content: center; border-radius: 8px; }
.ui-btn--activity   { background: #cffafe; color: #0891b2; width: 34px; height: 34px; padding: 0; justify-content: center; border-radius: 8px; }
.ui-btn--waiting    { background: #ffedd5; color: #c2410c; width: 34px; height: 34px; padding: 0; justify-content: center; border-radius: 8px; }
.ui-btn--schedule   { background: #ccfbf1; color: #0d9488; width: 34px; height: 34px; padding: 0; justify-content: center; border-radius: 8px; }
.ui-btn--success { background: #dcfce7; color: #16a34a; }
.ui-btn--primary { background: #7c3aed; color: #fff; }
.ui-btn--primary:hover { background: #6d28d9; color: #fff; opacity: 1; }
.ui-btn--outline { background: #fff; color: #374151; border: 1.5px solid #e5e7eb; }
.ui-btn--lg { padding: 9px 22px; font-size: 13.5px; border-radius: 10px; }

.dt-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.dt-buttons .ui-btn--outline { padding: 5px 10px; font-size: 12px; }

#scrollUp {
    position: fixed;
    width: 50px; height: 50px;
    background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
    right: 30px; bottom: 30px;
    color: #fff;
    font-size: 18px;
    border-radius: 100px;
    box-shadow: 0 8px 25px rgba(99,102,241,.25);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(.25,.46,.45,.94);
    display: flex; align-items: center; justify-content: center;
    border: 2px solid transparent;
    z-index: 999;
}
#scrollUp:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
    box-shadow: 0 15px 40px rgba(99,102,241,.4);
    transform: translateY(-8px);
}

.btn-spinner { display: none; }
form.is-saving .btn-spinner { display: inline; }

.btn--block {
    display: flex;
    width: 100%;
    justify-content: center;
}

.btn--link {
    background: transparent;
    border: none;
    box-shadow: none;
    color: #4f46e5;
    padding-left: 0;
    padding-right: 0;
}
.btn--link:hover {
    background: transparent;
    color: #3730a3;
    text-decoration: underline;
    transform: none;
    box-shadow: none;
}

.form-input-row .btn { margin-bottom: 0; }

.form-navigation .btn {
    padding: 11px 24px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

@media (max-width: 768px) {
    .form-navigation .btn { width: 100%; margin-left: 0 !important; }
    .btn-primary, .btn-submit { order: -1; }
}

.btn {
    display: inline-flex !important;
    visibility: visible !important;
}
