/**
 * BerryDunn Corporate Colors Override
 * Applies BerryDunn corporate branding to Bootstrap and UIkit components
 * @version 2.0.0
 * @date 2025-10-17
 */

/* ===== BOOTSTRAP PRIMARY COLOR OVERRIDE ===== */

/* Primary buttons - BerryDunn dark blue */
.btn-primary {
	background-color: #003a5d !important;  /* BerryDunn 302 C */
	border-color: #003a5d !important;
	color: white !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
	background-color: #002d47 !important;  /* 20% darker */
	border-color: #002d47 !important;
	color: white !important;
}

.btn-primary:focus {
	box-shadow: 0 0 0 0.2rem rgba(0, 58, 93, 0.5) !important;
}

.btn-primary:disabled,
.btn-primary.disabled {
	background-color: #005580 !important;  /* Lighter variant */
	border-color: #005580 !important;
	opacity: 0.65;
}

/* Primary links */
a.btn-primary {
	color: white !important;
}

a.btn-primary:hover {
	color: white !important;
	text-decoration: none;
}

/* ===== UIKIT PRIMARY COLOR OVERRIDE ===== */

/* UIkit primary buttons */
.uk-button-primary {
	background-color: #003a5d !important;  /* BerryDunn dark blue */
	color: white !important;
	border: 1px solid #003a5d !important;
}

.uk-button-primary:hover,
.uk-button-primary:focus {
	background-color: #002d47 !important;
	border-color: #002d47 !important;
	color: white !important;
}

/* ===== FOCUS STATES - BERRYDUNN ACCENT GREEN ===== */

/* All interactive elements */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus,
.uk-button:focus,
.btn:focus {
	outline: 2px solid #a1d038 !important;  /* BerryDunn 2299 C */
	outline-offset: 2px;
}

/* Input focus - use accent green */
.form-control:focus,
.uk-input:focus,
.uk-select:focus,
.uk-textarea:focus {
	border-color: #a1d038 !important;
	box-shadow: 0 0 0 0.2rem rgba(161, 208, 56, 0.25) !important;
}

/* ===== STATUS COLORS - BERRYDUNN CORPORATE ===== */

/* Success - BerryDunn Olive Green */
.btn-success,
.uk-button-success,
.uk-label-success,
.alert-success,
.badge-success {
	background-color: #71984a !important;  /* BerryDunn 7490 C */
	border-color: #71984a !important;
	color: white !important;
}

.btn-success:hover,
.uk-button-success:hover {
	background-color: #5d7d3d !important;
	border-color: #5d7d3d !important;
}

/* Warning - BerryDunn Orange */
.btn-warning,
.uk-button-warning,
.uk-label-warning,
.alert-warning,
.badge-warning {
	background-color: #ffa400 !important;  /* BerryDunn 137 C */
	border-color: #ffa400 !important;
	color: #212529 !important;
}

.btn-warning:hover,
.uk-button-warning:hover {
	background-color: #e69300 !important;
	border-color: #e69300 !important;
}

/* Danger - Keep functional red */
.btn-danger,
.uk-button-danger,
.uk-label-danger,
.alert-danger,
.badge-danger {
	background-color: #dc3545 !important;
	border-color: #dc3545 !important;
	color: white !important;
}

.btn-danger:hover,
.uk-button-danger:hover {
	background-color: #c82333 !important;
	border-color: #c82333 !important;
}

/* Info - BerryDunn Teal */
.btn-info,
.uk-button-info,
.alert-info,
.badge-info {
	background-color: #007481 !important;  /* BerryDunn 7474 C */
	border-color: #007481 !important;
	color: white !important;
}

.btn-info:hover {
	background-color: #005f6a !important;
	border-color: #005f6a !important;
}

/* ===== TABLE HEADERS ===== */

/* DataTables and standard tables */
table.dataTable thead th,
table.style-table th,
.table thead th {
	background-color: #003a5d !important;  /* BerryDunn dark blue */
	color: white !important;
}

/* ===== ACTIVE STATES ===== */

/* Active navigation items */
.nav-link.active,
.uk-button-group .uk-active {
	background-color: #003a5d !important;
	border-color: #003a5d !important;
	color: white !important;
}

/* ===== PROGRESS BARS ===== */

.progress-bar,
.uk-progress::-webkit-progress-value {
	background-color: #71984a !important;  /* BerryDunn olive green */
}

/* ===== LINKS ===== */

/* Primary links - use BerryDunn dark blue */
a {
	color: #003a5d;
}

a:hover {
	color: #002d47;
}

/* ===== BADGES AND LABELS ===== */

.badge-primary,
.uk-label-primary {
	background-color: #003a5d !important;
}

/* ===== ACCESSIBILITY ===== */

/* Ensure proper contrast for all text */
.btn-primary,
.btn-success,
.btn-danger,
.btn-info,
.uk-button-primary,
.uk-button-success,
.uk-button-danger,
.uk-label-success,
.uk-label-danger {
	color: white !important;
}

.btn-warning,
.uk-button-warning,
.uk-label-warning {
	color: #212529 !important;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
	button:focus,
	a:focus,
	input:focus {
		transition: none !important;
	}
}
