/* PSW CRM Branding Styles */

:root {
	--psw-primary: #2563eb;
	--psw-primary-dark: #1d4ed8;
	--psw-primary-light: #3b82f6;
	--psw-secondary: #06b6d4;
	--psw-text: #1f2937;
	--psw-text-light: #6b7280;
	--psw-border: #d1d5db;
	--psw-bg: #f9fafb;
}

/* Override default Frappe branding colors */
.btn-primary,
.btn-primary-light {
	background-color: var(--psw-primary) !important;
	border-color: var(--psw-primary) !important;
}

.btn-primary:hover {
	background-color: var(--psw-primary-dark) !important;
}

/* Links and accents */
a {
	color: var(--psw-primary);
}

a:hover {
	color: var(--psw-primary-dark);
}

/* Form focus states */
input:focus,
textarea:focus,
select:focus {
	border-color: var(--psw-primary) !important;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

/* Page headers */
.page-title {
	color: var(--psw-text);
}

/* Sidebar active state */
.sidebar-item.active {
	background-color: rgba(37, 99, 235, 0.1);
	border-left: 3px solid var(--psw-primary);
}

/* Cards and containers */
.card {
	border: 1px solid var(--psw-border);
	border-radius: 8px;
}

/* Badges and labels with PSW colors */
.badge-primary {
	background-color: var(--psw-primary);
}

/* Success states */
.badge-success,
.text-success {
	color: #10b981 !important;
}

/* Warning states */
.badge-warning,
.text-warning {
	color: #f59e0b !important;
}

/* Danger states */
.badge-danger,
.text-danger {
	color: #ef4444 !important;
}

/* Loading indicators */
.spinner-border,
.spinner-grow {
	color: var(--psw-primary);
}

/* Navbar branding */
.navbar-brand {
	font-weight: 700;
	color: var(--psw-primary) !important;
}

/* Custom checkbox/radio */
input[type="checkbox"]:checked,
input[type="radio"]:checked {
	background-color: var(--psw-primary);
	border-color: var(--psw-primary);
}

/* Tables */
.table thead th {
	background-color: var(--psw-bg);
	color: var(--psw-text);
}

.table tbody tr:hover {
	background-color: rgba(37, 99, 235, 0.05);
}

/* Tabs */
.nav-tabs .nav-link.active {
	color: var(--psw-primary);
	border-bottom: 2px solid var(--psw-primary);
}

/* Progress bars */
.progress-bar {
	background-color: var(--psw-primary);
}

/* Dropdown menus */
.dropdown-item:hover,
.dropdown-item:focus {
	background-color: rgba(37, 99, 235, 0.1);
	color: var(--psw-primary);
}

/* Modals */
.modal-header {
	border-bottom: 1px solid var(--psw-border);
}

.modal-footer {
	border-top: 1px solid var(--psw-border);
}

/* PSW Logo/Branding area */
.psw-logo-text {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-weight: 700;
	color: var(--psw-primary);
	font-size: 24px;
}

.psw-tagline {
	font-size: 12px;
	color: var(--psw-text-light);
	font-weight: 400;
}

/* Footer branding */
.footer-text {
	color: var(--psw-text-light);
	font-size: 12px;
}

/* Override Frappe "blue" class to use PSW blue */
.text-blue {
	color: var(--psw-primary) !important;
}

.bg-blue {
	background-color: var(--psw-primary) !important;
}
