/* ---------------------------------------------------------
   2. GLOBAL BUTTON SYSTEM
--------------------------------------------------------- */

/* Base Button Structure */
.udj-btn,
.udj-btn-primary,
.udj-btn-secondary,
.udj-btn-view,
.udj-btn-remove,
.udj-job-view-btn,
.udj-job-approve-btn,
.udj-job-reject-btn,
.udj-job-restore-btn,
.udj-job-complete-btn,
.udj-job-delete-btn,
.udj-login-btn,
.udj-register-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--udj-btn-height);
    padding: 0 18px;
    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: var(--udj-radius);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 0;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.udj-btn br,
.udj-btn-primary br,
.udj-btn-secondary br {
    display: none !important;
}

.udj-apply-btn {
    text-decoration: none !important;
}

/* Button States: Primary (Solid) */
.udj-btn,
.udj-btn-primary,
.udj-job-approve-btn,
.udj-job-complete-btn {
    background: var(--udj-primary);
    border-color: var(--udj-primary);
    color: #ffffff;
}

.udj-btn:hover,
.udj-btn-primary:hover,
.udj-job-approve-btn:hover,
.udj-job-complete-btn:hover {
    background: var(--udj-accent);
    border-color: var(--udj-accent);
    color: #ffffff;
}

/* Button States: Secondary (Outline Primary) */
.udj-btn-secondary,
.udj-btn-view,
.udj-job-view-btn,
.udj-job-restore-btn {
    background: #ffffff;
    border-color: var(--udj-primary);
    color: var(--udj-primary);
}

.udj-btn-secondary:hover,
.udj-btn-view:hover,
.udj-job-view-btn:hover,
.udj-job-restore-btn:hover {
    background: var(--udj-primary);
    border-color: var(--udj-primary);
    color: #ffffff;
}

/* Button States: Danger (Outline Red) */
.udj-btn-remove,
.udj-job-reject-btn,
.udj-job-delete-btn {
    background: #ffffff;
    border-color: var(--udj-danger);
    color: var(--udj-danger);
}

.udj-btn-remove:hover,
.udj-job-reject-btn:hover,
.udj-job-delete-btn:hover {
    background: var(--udj-danger);
    border-color: var(--udj-danger);
    color: #ffffff;
}

/* Focus & Disabled States */
.udj-btn:focus,
.udj-btn-primary:focus,
.udj-btn-secondary:focus,
.udj-btn-view:focus,
.udj-btn-remove:focus,
.udj-job-view-btn:focus,
.udj-job-approve-btn:focus,
.udj-job-reject-btn:focus,
.udj-job-restore-btn:focus,
.udj-job-complete-btn:focus,
.udj-job-delete-btn:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(29, 54, 101, 0.15) !important;
}

.udj-btn:disabled,
.udj-btn-primary:disabled,
.udj-btn-secondary:disabled,
.udj-btn-view:disabled,
.udj-btn-remove:disabled,
.udj-job-view-btn:disabled,
.udj-job-approve-btn:disabled,
.udj-job-reject-btn:disabled,
.udj-job-restore-btn:disabled,
.udj-job-complete-btn:disabled,
.udj-job-delete-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.udj-password-field {
	position: relative;
	width: 100%;
}

.udj-password-field input {
	padding-right: 50px !important;
}

.udj-password-toggle {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);

	width: 32px !important;
	height: 32px !important;

	padding: 0 !important;
	margin: 0 !important;

	border: none !important;
	background: transparent !important;

	color: #777 !important;

	display: flex !important;
	align-items: center;
	justify-content: center;

	cursor: pointer;
	box-shadow: none !important;
}

.udj-password-toggle i {
	font-size: 16px !important;
	line-height: 1 !important;
}

.udj-password-toggle:hover {
	background: transparent !important;
	color: #1d3665 !important;
}