:root {
    --text-base: #e5e9ea;
    --dark-background: #24272C;
    --outer-box-shadow: 5px 5px 9px 0px rgba(0, 0, 0, 0.5), -5px -5px 9px 0px rgba(255, 255, 255, 0.1);
    --outer-box-shadow-hover: 2px 2px 6px 0px rgba(0, 0, 0, 0.5), -2px -2px 6px 0px rgba(255, 255, 255, 0.15);
}

#barebones_view-stats-button {
    background-color: !important;
    border: 1px solid white !important;
    padding: 10px 70px 10px 70px !important;
}

.quick-date-buttons { }

#barebones_last-7-days {
    background-color: #242424;
    color: white;
    border: 1px solid white;
    margin-right: 20px;
    padding-left: 40px;
    padding-right: 40px;
    margin-bottom: 20px;
    margin-top: 20px;
}

#barebones_last-28-days {
    background-color: #141414;
    color: white;
    border: 1px solid white;
    margin-right: 20px;
    padding-left: 40px;
    padding-right: 40px;
    margin-bottom: 20px;
    margin-top: 20px;
}

/* Analytics */
#matomo-result {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 4rem;
}

#custom-matomo-controls {
    background: #26292a !important;
    background: var(--dark-background) !important;
}

.stats-item {
    display: flex;
    flex-direction: column;
    background: var(--dark-background);
    box-shadow: var(--outer-box-shadow);
    padding: 0.5rem 1rem;
    border-radius: 16px;
    color: var(--text-base);
    cursor: pointer;
    transition: 0.1s box-shadow ease-in-out;
}

.stats-item.selected {
    outline: 1px solid #444;
    box-shadow: var(--outer-box-shadow-hover);
}

.stats-item:not(.unique-links):hover {
    box-shadow: var(--outer-box-shadow-hover);
}

.close-unique-links-wrapper {
    display: flex;
    justify-content: end;
}

.close-unique-links-wrapper svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: white;
    cursor: pointer;
}

.unique-links {
    cursor: auto;
    position: fixed;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    padding: 1rem;
}

.unique-links-list {
    padding: 1rem 1rem;
}

.unique-link {
    position: relative;
}

.unique-link a {
    color: #7dbafd !important;
}

.stats-item em {
    color: #a2a2a2 !important;
    font-size: 15pt;
    text-align: center;
    font-weight: 700;
}

.stats-item strong {
    text-align: center;
}

.white {
    color: var(--text-base);
}

.title--2 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem !important;
}

.title--3 {
    font-size: 1rem;
    margin-bottom: 0.65rem !important;
}

#custom-matomo-controls {
    background: linear-gradient(109.6deg, rgba(0, 0, 0, 0.93) 11.2%, rgb(63, 61, 61) 78.9%)!important;
}

#myChart {
    color: white !important;
}

#phoneimg {
    pointer-events: none !important;
}

.button__ButtonSquare-sc-1wfpfsz-2 {
    display: none !important;
}

body.logged-in .loggedin {
    display: none;
}

body:not(.logged-in) .loggedout {
    display: none;
}

.wpautoterms-footer {
    display: none;
}

#user_pass {
    color: white !important;
}

.highlight-text-color--active:focus {
    color: white;
}

.adsocial {
    width: 300px !important;
    margin-left: 10px !important;
    margin-top: 5px !important;
}

@media only screen and (max-width: 600px) {
    .adsocial {
        width: 300px !important;
        margin-left: 0px !important;
        margin-top: 5px !important;
    }
}

iframe {
    border: none !important;
}

/* Spinner CSS */
.barebones-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top: 4px solid #273F79;
    animation: spin 1s linear infinite, pulse 1.5s ease-in-out infinite, colorChange 2s linear infinite;
    margin-top: 150px; /* Added to move the spinner down */
}


@keyframes spin {
	  to {
		transform: translate(-50%, -50%) rotate(360deg);
	  }
	}

	@keyframes pulse {
	  0%, 100% {
		border-width: 4px;
	  }
	  50% {
		border-width: 8px;
	  }
	}

	@keyframes colorChange {
	  0%, 100% {
		border-top-color: #E5B325; /* Gold1 */
	  }
	  25% {
		border-top-color: #F8E75D; /* Gold Shade 1 */
	  }
	  35% {
		border-top-color: #FEF987; /* Gold Shade 2 */
	  }
	  50% {
		border-top-color: #F5DC64; /* Gold Shade 3 */
	  }
	  60% {
		border-top-color: #E5B325; /* Gold Shade 4 */
	  }
	  70% {
		border-top-color: #F5DC64; /* Gold Shade 3 */
	  }
	  80% {
		border-top-color: #FEF987; /* Gold Shade 2 */
	  }
	  90% {
		border-top-color: #FDFB81; /* Gold Shade 1 */
	  }
	}

/* No Data Message CSS */
.no-data {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: red;
    font-size: 16px;
    margin-top: 150px; /* Adjust as needed to align with spinner position */
}
