.dn-splash {
  background-color: var(--dn-bg-primary);  
  top: 0;
  left: 0;
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  flex-flow: column;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  row-gap: 30px;
}

.dn-splash img {
  opacity: 1.0;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dn-bg-primary);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
    color: var(--white);
}

.splash-logo {
    margin-bottom: var(--spacing-lg);
}

.splash-logo-image {
    width: 180px;
    /* height: 120px; */
    object-fit: contain;
}

.splash-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xl);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.splash-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 1.1rem;
    opacity: 0.9;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide main content until splash is hidden */
body:not(.splash-hidden) .header,
body:not(.splash-hidden) .sidebar,
body:not(.splash-hidden) .main-content,
body:not(.splash-hidden) .footer {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

body.splash-hidden .header,
body.splash-hidden .sidebar,
body.splash-hidden .main-content,
body.splash-hidden .footer {
    opacity: 1;
}
