:root {
	--dashcommerce-primary: #22b127;
	--dashcommerce-primary-light: #e9fce1;
  --dashcommerce-green: #89c76d;
  --dashcommerce-blue: #5d9bcc;
  --dashcommerce-yellow: #fdc32a;
  --dashcommerce-red: #f25b62;
}

.dashcommerce-bg-green {
	background-color: var(--dashcommerce-green) !important;
}

.dashcommerce-bg-blue {
	background-color: var(--dashcommerce-blue) !important;
}

.dashcommerce-bg-yellow {
	background-color: var(--dashcommerce-yellow) !important;
}

.dashcommerce-bg-red {
	background-color: var(--dashcommerce-red) !important;
}

.dashcommerce-loading-spinner-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px;
}

.dashcommerce-loading-spinner {
  background-image: url('./assets/dashcommerce-loader.svg'); 
  min-width: 20px;
  min-height: 20px;
  background-size: cover;
  background-position: center;
  animation: spin 1s linear infinite;
}

.dashcommerce-icon {
  background-image: url('./assets/dashcommerce-icon.png');
  min-height: 30px;
  min-width: 30px;
  background-size: contain;
  background-position: center; 
  background-repeat: no-repeat;
  margin: 10px 0;
}

.dashcommerce-name {  
  background-image: url('./assets/dashcommerce-name.png');
  min-height: 50px;
  background-size: contain;
  background-position: left; 
  background-repeat: no-repeat;
  margin: 20px;
}

.dashcommerce-badge-app-store {  
  background-image: url('./assets/dashcommerce-badge-app-store.png');
  min-width: 120px;
  min-height: 40px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin: 10px;
}

.dashcommerce-badge-play-store {  
  background-image: url('./assets/dashcommerce-badge-play-store.png');
  min-width: 120px;
  min-height: 40px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin: 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.dashcommerce-small-donut-wrapper {
	margin: 0 10%;
	display: flex;
	justify-content: end;
	height: 175px;
}

.dashcommerce-page-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.dashcommerce-background-tr {
	background-image: url('./assets/dashcommerce-upper-right.png');
	background-size: auto 170px;
	background-position: top right; /* Align to the top left */
	background-repeat: no-repeat; /* Prevent repeating */
}

.dashcommerce-4x4-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: repeat(2, 1fr);
	grid-column-gap: 0px;
	grid-row-gap: 0px;
	height: 100%;
	box-sizing: border-box;
}

.dashcommerce-4x4-grid > * {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.dashcommerce-initially-shown {
	display: flex;
}

.dashcommerce-initially-hidden {
	display: none;
}

.dashcommerce-utm-table {
	border-collapse: collapse; /* Shared borders */
	width: max-content;
	line-height: 1.2; /* Tighter line spacing */
}

.dashcommerce-utm-table th,
.dashcommerce-utm-table td {
	padding: 2px; /* Reduced padding */
	border: 1px solid #ccc; /* Thinner borders */
}

.dashcommerce-settings-separator {
	margin: 25px 0;
}

.dashcommerce-settings-section-title {
	margin-bottom: 10px;
}

.dashcommerce-bar {
	display: flex;
	height: 15px;
	width: 100%;
	border-radius: 5px;
	background-color: #f0f0f0;
}

.dashcommerce-bar > .dashcommerce-bar-filled {
	display: flex;
	justify-content: center;
	align-items: center;
	font-weight: 600;
	height: 100%;
	border-radius: inherit;
}

.dashcommerce-bar > .dashcommerce-bar-empty {
	display: flex;
	justify-content: center;
	align-items: center;
	font-weight: 600;
	height: 100%;
	flex-grow: 1;
}

.dashcommerce-bar.dashcommerce-bar-vertical {
	flex-direction: column-reverse;
	width: 15px;
	height: 100%;
}

.dashcommerce-bar.dashcommerce-bar-vertical > .dashcommerce-bar-filled {
	width: 100%;
	height: auto;
}

.dashcommerce-bar.dashcommerce-bar-vertical > .dashcommerce-bar-empty {
	width: 100%;
	height: auto;
	flex-grow: 1;
}

.dashcommerce-button {
	background-color: var(--dashcommerce-primary-light) !important;
	border-color: var(--dashcommerce-primary) !important;
	color: var(--dashcommerce-primary) !important;
	transition: all 150ms !important;
}

.dashcommerce-button:hover {
  background: var(--dashcommerce-green) !important;
	color: white !important;
	transition: all 150ms !important;
}

.dashcommerce-rounded {
	display: flex; 
	justify-content: center; 
	align-items: center;
	width: 100%;
	box-sizing: border-box;
	padding: 5px;
	border-radius: 5px;
	background-color: #f0f0f0;
}

.dashcommerce-flex-horizontal-responsive {
	display: flex;
	flex-direction: row;
}

@media (max-width: 768px) {
	.dashcommerce-flex-horizontal-responsive {
		flex-direction: column;
	}
}

.dashcommerce-modal {
	display: none;
	position: fixed;
	z-index: 1;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.4);
}

.dashcommerce-modal-content {
	background-color: white;
	margin: 15% auto;
	padding: 20px;
	border: 1px solid #888;
	width: 80%;
	max-width: 500px;
	border-radius: 10px;
}

.dashcommerce-modal-close {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
}

.dashcommerce-modal-close:hover,
.close:focus {
	color: black;
	text-decoration: none;
	cursor: pointer;
}

.dashcommerce-centered-col {
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}
