/* Base: dark glass with blurred background, matching kdevelopment.nl/clock */
body {
    min-height: 100vh;
    margin: 0;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    background: linear-gradient(135deg, #23243a 0%, #151623 100%);
    background-attachment: fixed;
    color: #f3f6fa;
}

.glass {
    background: rgba(36, 40, 57, 0.62);
    box-shadow: 0 8px 32px 0 rgba(15,18,34,0.35);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 18px;
    border: 1.5px solid rgba(97, 216, 255, 0.10);
}

.dashboard-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 2.2rem;
    justify-content: center;
    margin-top: 8rem;
}

.tile {
    width: 215px;
    height: 215px;
    position: relative;
    transition: box-shadow .2s, transform .15s;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: rgba(29, 32, 48, 0.7);
    border-radius: 16px;
    border: 1.5px solid rgba(120,255,240,0.12);
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.20);
}

.tile.glass:hover {
    box-shadow: 0 8px 32px 0 rgba(97, 216, 255, 0.09), 0 2px 24px 0 #14d2ff38;
    transform: translateY(-6px) scale(1.03);
}

.tile img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 1rem;
    margin-bottom: 10px;
    border: 1.5px solid rgba(240,240,255,0.13);
    box-shadow: 0 2px 12px 0 rgba(31,38,135,0.06);
    background: #23243a;
}

.tile-name {
    font-size: 1.16em;
    font-weight: 600;
    color: #e6f9ff;
    text-shadow: 0 2px 12px #0d223355, 0 1px 8px #0e2233cc;
}

.tile-actions {
    position: absolute;
    top: 12px; right: 14px; display: flex; gap: 8px;
}

.tile-actions button {
    background: rgba(65,110,255,0.16);
    border: none;
    border-radius: 50%; width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1em; color: #77f2ee; transition: background .15s;
}
.tile-actions button:hover {
    background: #f53b57; color: #fff;
}

.add-tile {
    font-size: 3.5rem; color: #14d2ff;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 100%; min-height: 140px;
    border: 2px dashed #12e6ff44;
    background: rgba(20,26,40,0.32);
}

/* --- NAV GLASS (top-right menu) styled like privacy bar --- */
.nav-glass {
  position: fixed;
  top: 22px;
  right: 40px;
  z-index: 1000;
  padding: 0.6rem 1.2rem;
  background: rgba(36, 40, 57, 0.7);
  border-top: 1.5px solid rgba(97, 216, 255, 0.3);
  box-shadow: 0 3px 20px rgba(20, 200, 255, 0.3);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 1rem;
  font-weight: 600;
  font-size: 1rem;
  color: #a5e4fd;
  user-select: none;
  transition: background-color 0.25s ease;
}

.nav-glass .btn-outline-dark {
  border-color: #14d2ff;
  color: #14d2ff;
  background: transparent;
  font-weight: 600;
}

.nav-glass .btn-outline-dark:hover, 
.nav-glass .btn-outline-dark:focus {
  background-color: rgba(20, 210, 255, 0.2);
  color: #0dcfff;
}

.nav-glass .dropdown-menu {
  background: rgba(36, 40, 57, 0.9);
  border: 1.5px solid rgba(97, 216, 255, 0.15);
  box-shadow: 0 8px 32px rgba(15,18,34,0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 1rem;
  color: #a5e4fd;
  font-weight: 600;
  min-width: 220px;
}

.nav-glass .dropdown-item {
  color: #a5e4fd;
  font-weight: 600;
}

.nav-glass .dropdown-item:hover, 
.nav-glass .dropdown-item:focus {
  background-color: rgba(20, 210, 255, 0.15);
  color: #14d2ff;
}

.login-error { color: #f55a4e; font-size: 0.99em; margin-top: 0.5em; text-align:center;}
.modal-content {
    border-radius: 1.1em;
    background: rgba(38, 40, 54, 0.92);
    color: #eafcff;
    border: 1px solid #12e6ff38;
    box-shadow: 0 2px 12px 0 #08142a36;
}

/* --- PRIVACY BAR LIKE COUNTDOWN CLOCK --- */
.privacy-bar-clock-style {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  padding: 0.6rem 1rem;
  background: rgba(36, 40, 57, 0.7);
  border-top: 1.5px solid rgba(97, 216, 255, 0.3);
  box-shadow: 0 -3px 20px rgba(20, 200, 255, 0.3);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: #a5e4fd;
  font-size: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  z-index: 9999;
  font-weight: 600;
  user-select: none;
  flex-wrap: wrap;
  text-align: center;
  white-space: normal;
  transition: transform 0.3s ease-in-out;
}

.privacy-bar-clock-style .privacy-bar-text {
  max-width: 100%;
  word-break: break-word;
  font-size: 0.9rem;
}

.privacy-bar-clock-style a {
  color: #14d2ff;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.privacy-bar-clock-style a:hover {
  color: #09c5ff;
}

#privacy-bar-hide-btn {
  background: transparent;
  border: 1.5px solid #14d2ff;
  border-radius: 6px;
  color: #14d2ff;
  padding: 0.2rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.25s ease;
  flex-shrink: 0;
}

#privacy-bar-hide-btn:hover {
  background-color: rgba(20, 210, 255, 0.2);
}

.privacy-bar-clock-style.hide {
  transform: translateY(105%);
}

/* Modal glass style adjustment */
.modal-content.glass {
  background: rgba(36, 40, 57, 0.82);
  box-shadow: 0 8px 32px 0 rgba(15,18,34,0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 1rem;
  border: 1.5px solid rgba(97, 216, 255, 0.15);
  color: #a5e4fd;
}

@media (max-width: 650px) {
    .dashboard-tiles { margin-top: 5.7rem; gap: 1.3rem;}
    .nav-glass { right: 10px; padding: 0.7em 0.5em;}
}
.dashboard-wrapper {
    display: flex;
    flex-wrap: nowrap;  /* prevent wrapping */
    gap: 1rem;
    align-items: flex-start;
    min-height: 400px;  /* adjust as needed */
}

.ads-container-left,
.ads-container-right {
    width: 220px; /* fixed width for side ads */
    display: flex;
    flex-direction: column;
}

.dashboard-main {
    flex-grow: 1;
    display: block !important; /* needed for tile-grid to work */
}

.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tile {
    width: 220px;
    height: 220px;
    cursor: pointer;
}

.ads-container-top,
.ads-container-bottom {
    width: 100%;
}

@media (max-width: 768px) {
    .dashboard-wrapper {
        flex-wrap: wrap;
    }
    .ads-container-left,
    .ads-container-right {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    .dashboard-main {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    .tile {
        width: 100%;
        height: auto;
    }
}
