/* SynergyFlow Theme - Inspired by GlideApps */
/* Version: 1.0 - 29 Ene 2026 */

/* ========================================
   1. TYPOGRAPHY - Inter font + tighter tracking
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
	/* Font family */
	--sf-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

	/* Colors - keeping Frappe defaults but can override */
	--sf-primary: rgb(82, 146, 247);
	--sf-text-primary: #1a1a2e;
	--sf-text-secondary: #64748b;
	--sf-text-muted: #94a3b8;
	--sf-border: #e2e8f0;
	--sf-bg-subtle: #f8fafc;

	/* Spacing */
	--sf-radius-sm: 6px;
	--sf-radius-md: 8px;
	--sf-radius-lg: 12px;

	/* Shadows */
	--sf-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
	--sf-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Apply Inter font globally */
body,
.frappe-control,
.form-control,
.btn,
.dropdown-menu,
.modal-content {
	font-family: var(--sf-font-family) !important;
}

/* ========================================
   2. HEADINGS - Tighter letter-spacing
   ======================================== */

h1, h2, h3, h4, h5, h6,
.page-title,
.widget-title,
.section-head,
.head-title {
	font-family: var(--sf-font-family) !important;
	letter-spacing: -0.02em;
	font-weight: 600;
	color: var(--sf-text-primary);
}

/* Page titles */
.page-title,
.title-text {
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -0.03em;
}

/* Section headings in workspace */
.widget-title,
.section-head {
	font-size: 1.1rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--sf-text-primary);
	margin-bottom: 12px;
}

/* ========================================
   3. WORKSPACE SHORTCUTS - Modern cards
   ======================================== */

/* Workspace container */
.workspace-sidebar-item,
.shortcut-widget-box {
	border-radius: var(--sf-radius-md);
	transition: all 0.2s ease;
}

/* Shortcut links in workspace */
.shortcut-widget-box .widget-body {
	padding: 16px 20px;
}

.shortcut-widget-box .shortcut {
	padding: 8px 0;
	border-radius: var(--sf-radius-sm);
	transition: all 0.15s ease;
}

.shortcut-widget-box .shortcut:hover {
	background: var(--sf-bg-subtle);
	padding-left: 8px;
	padding-right: 8px;
}

.shortcut-widget-box .shortcut a {
	color: var(--sf-text-primary);
	font-weight: 500;
	font-size: 0.9rem;
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 6px;
}

.shortcut-widget-box .shortcut a:hover {
	color: var(--sf-primary);
}

/* ========================================
   4. CARDS & CONTAINERS
   ======================================== */

.frappe-card,
.widget,
.form-group,
.modal-content {
	border-radius: var(--sf-radius-md);
	border: 1px solid var(--sf-border);
	box-shadow: var(--sf-shadow-sm);
}

/* List view cards */
.list-row {
	border-radius: var(--sf-radius-sm);
	transition: background 0.15s ease;
}

.list-row:hover {
	background: var(--sf-bg-subtle);
}

/* ========================================
   5. BUTTONS - Smoother, modern
   ======================================== */

.btn {
	border-radius: var(--sf-radius-sm);
	font-weight: 500;
	font-size: 0.875rem;
	padding: 8px 16px;
	transition: all 0.2s ease;
	letter-spacing: -0.01em;
}

.btn-primary {
	background: var(--sf-primary);
	border-color: var(--sf-primary);
}

.btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(82, 146, 247, 0.3);
}

.btn-default,
.btn-secondary {
	background: white;
	border: 1px solid var(--sf-border);
	color: var(--sf-text-primary);
}

.btn-default:hover,
.btn-secondary:hover {
	background: var(--sf-bg-subtle);
	border-color: #cbd5e1;
}

/* ========================================
   6. FORM CONTROLS
   ======================================== */

.form-control,
.frappe-control input,
.frappe-control select,
.frappe-control textarea {
	border-radius: var(--sf-radius-sm);
	border: 1px solid var(--sf-border);
	padding: 10px 12px;
	font-size: 0.9rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.frappe-control input:focus,
.frappe-control select:focus,
.frappe-control textarea:focus {
	border-color: var(--sf-primary);
	box-shadow: 0 0 0 3px rgba(82, 146, 247, 0.1);
	outline: none;
}

/* ========================================
   7. SIDEBAR & NAVIGATION
   ======================================== */

.desk-sidebar {
	background: white;
	border-right: 1px solid var(--sf-border);
}

.sidebar-menu .sidebar-label {
	font-weight: 600;
	font-size: 0.75rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--sf-text-muted);
	padding: 16px 16px 8px;
}

.sidebar-menu a {
	border-radius: var(--sf-radius-sm);
	margin: 2px 8px;
	padding: 8px 12px;
	transition: all 0.15s ease;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
	background: var(--sf-bg-subtle);
}

/* ========================================
   8. TABLES & LISTS
   ======================================== */

.frappe-list .list-row,
table.table tbody tr {
	border-bottom: 1px solid var(--sf-border);
}

table.table th {
	font-weight: 600;
	font-size: 0.75rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--sf-text-muted);
	border-bottom: 2px solid var(--sf-border);
}

/* ========================================
   9. MODALS & DIALOGS
   ======================================== */

.modal-content {
	border-radius: var(--sf-radius-lg);
	border: none;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
	border-bottom: 1px solid var(--sf-border);
	padding: 20px 24px;
}

.modal-title {
	font-weight: 600;
	letter-spacing: -0.02em;
}

.modal-body {
	padding: 24px;
}

.modal-footer {
	border-top: 1px solid var(--sf-border);
	padding: 16px 24px;
}

/* ========================================
   10. SEARCH BAR
   ======================================== */

.search-bar,
#navbar-search {
	border-radius: 20px;
	background: var(--sf-bg-subtle);
	border: 1px solid var(--sf-border);
	padding: 8px 16px;
}

.search-bar:focus-within,
#navbar-search:focus-within {
	background: white;
	border-color: var(--sf-primary);
	box-shadow: 0 0 0 3px rgba(82, 146, 247, 0.1);
}

/* ========================================
   11. WORKSPACE SPECIFIC
   ======================================== */

/* Main workspace container */
.workspace-main-section {
	padding: 24px;
}

/* Section dividers */
.workspace-main-section .widget-group {
	margin-bottom: 32px;
}

/* ========================================
   11.1 WORKSPACE SHORTCUTS - GlideApps Style
   ======================================== */

/* Shortcut cards container */
.workspace-main-section .shortcut-widget-box {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
}

/* Individual shortcut items - card style */
.workspace-main-section .shortcut-widget-box .widget-body .shortcut {
	background: white;
	border: 1px solid var(--sf-border);
	border-radius: var(--sf-radius-lg);
	padding: 16px 20px !important;
	margin: 6px 0;
	transition: all 0.2s ease;
	box-shadow: var(--sf-shadow-sm);
}

.workspace-main-section .shortcut-widget-box .widget-body .shortcut:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1);
	border-color: var(--sf-primary);
}

/* Shortcut icon styling - circular background */
.workspace-main-section .shortcut .shortcut-icon,
.workspace-main-section .shortcut svg.icon {
	width: 40px !important;
	height: 40px !important;
	padding: 10px;
	background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
	border-radius: 12px;
	margin-right: 14px;
	flex-shrink: 0;
}

/* Different icon background colors based on section */
.workspace-main-section .shortcut[data-color="Blue"] .shortcut-icon,
.workspace-main-section .shortcut[data-color="Blue"] svg.icon {
	background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
	color: #2563eb;
}

.workspace-main-section .shortcut[data-color="Green"] .shortcut-icon,
.workspace-main-section .shortcut[data-color="Green"] svg.icon {
	background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
	color: #16a34a;
}

.workspace-main-section .shortcut[data-color="Orange"] .shortcut-icon,
.workspace-main-section .shortcut[data-color="Orange"] svg.icon {
	background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
	color: #ea580c;
}

.workspace-main-section .shortcut[data-color="Yellow"] .shortcut-icon,
.workspace-main-section .shortcut[data-color="Yellow"] svg.icon {
	background: linear-gradient(135deg, #fef9c3 0%, #fef08a 100%);
	color: #ca8a04;
}

.workspace-main-section .shortcut[data-color="Red"] .shortcut-icon,
.workspace-main-section .shortcut[data-color="Red"] svg.icon {
	background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
	color: #dc2626;
}

.workspace-main-section .shortcut[data-color="Grey"] .shortcut-icon,
.workspace-main-section .shortcut[data-color="Grey"] svg.icon {
	background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
	color: #475569;
}

/* Shortcut title styling */
.workspace-main-section .shortcut .shortcut-label,
.workspace-main-section .shortcut .ellipsis {
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--sf-text-primary);
	letter-spacing: -0.01em;
}

/* Arrow icon */
.workspace-main-section .shortcut .icon-arrow-up-right {
	opacity: 0.3;
	transition: all 0.2s ease;
	margin-left: auto;
}

.workspace-main-section .shortcut:hover .icon-arrow-up-right {
	opacity: 1;
	transform: translate(2px, -2px);
}

/* Section headers */
.workspace-main-section .widget-head .widget-title {
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--sf-text-primary);
	margin-bottom: 16px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--sf-border);
}

/* Number cards styling */
.workspace-main-section .number-card {
	background: white;
	border-radius: var(--sf-radius-lg);
	border: 1px solid var(--sf-border);
	padding: 20px 24px;
	transition: all 0.2s ease;
}

.workspace-main-section .number-card:hover {
	box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1);
}

.workspace-main-section .number-card .widget-label {
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--sf-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.workspace-main-section .number-card .number {
	font-size: 2rem;
	font-weight: 700;
	letter-spacing: -0.03em;
}

/* Links section - make it cleaner */
.links-section-link {
	padding: 10px 0;
	border-bottom: 1px solid transparent;
}

.links-section-link:hover {
	border-bottom-color: var(--sf-border);
}

/* Arrow icon on links */
.links-section-link .icon-arrow-up-right {
	opacity: 0.5;
	transition: opacity 0.15s ease;
}

.links-section-link:hover .icon-arrow-up-right {
	opacity: 1;
}

/* ========================================
   12. SCROLLBAR - Subtle
   ======================================== */

::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

::-webkit-scrollbar-track {
	background: transparent;
}

::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: #94a3b8;
}

/* ========================================
   13. ANIMATIONS
   ======================================== */

/* Smooth transitions for interactive elements */
a, button, .btn, input, select, textarea {
	transition: all 0.15s ease;
}

/* Hover lift effect for cards */
.frappe-card:hover,
.widget:hover {
	box-shadow: var(--sf-shadow-md);
}
