/* ========================= */
/* BASE / BACKGROUND         */
/* ========================= */
body {
  margin: 0;
  min-height: 100vh;
  padding-top: 40px;
  padding-bottom: 40px;

  font-family: "Baloo 2", Verdana, sans-serif;
  background: url("images/background.png") no-repeat center center fixed;
  background-size: cover;
  color: #003c3c;
}

/* LINKS */
a {
  color: #0099cc;
  text-decoration: none;
}

/* CRT / MONITOR FEEL */
.crt {
  position: relative;
  margin: 60px auto; /* substitui margin-top e margin 0 auto */
  max-width: 1020px;
  width: calc(100% - 48px);
  z-index: 2;

  box-shadow:
    0 30px 60px rgba(0,0,0,0.25),
    0 0 40px rgba(0,255,255,0.25),
    inset 0 0 20px rgba(0,0,0,0.15);

  background: rgba(255, 255, 255, 0.1);
  border-radius: 24px;
}

.crt::after {
  content: "";
  position: absolute; /* alterado de fixed para absolute */
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0.03),
    rgba(0,0,0,0.03) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  opacity: 0.25;
}

/* ========================= */
/* HEADER                     */
/* ========================= */
.top-bar {
  position: relative;
  background: linear-gradient(to right, #7fffe6, #8fdfff);
  text-align: center;
  padding: 28px;
  overflow: hidden;
  border-bottom: 3px solid #66dddd;
  border-radius: 24px 24px 0 0;
}

.top-bar h1 {
  margin: 0;
  font-size: 34px;
  text-shadow:
    0 0 6px #ffffff,
    0 0 12px #9fffff;
}

.subtitle {
  font-size: 12px;
}

/* ========================= */
/* LAYOUT                     */
/* ========================= */
.layout {
  display: grid;
  grid-template-columns: 220px 1fr 200px;
  gap: 14px;
  padding: 14px;
}

/* ========================= */
/* SIDEBAR                    */
/* ========================= */
.sidebar {
  background: rgba(255,255,255,0.7);
  border-radius: 24px;
  padding: 14px;
  box-shadow: 0 0 18px rgba(120,220,220,0.5);
}

.icon {
  width: 22px;
  vertical-align: middle;
  margin-right: 6px;
}

.divider {
  width: 100%;
  opacity: 0.4;
  margin: 10px 0;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  padding: 6px;
  border-radius: 8px;
}

.sidebar li:hover {
  background: #e8ffff;
}

.badge {
  margin-top: 16px;
  text-align: center;
  font-size: 10px;
  background: #eaffff;
  border-radius: 10px;
  padding: 6px;
}

/* ========================= */
/* CONTENT WINDOWS (OS STYLE) */
/* ========================= */
.content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.window {
  position: relative;
  background: rgba(255,255,255,0.8);
  border-radius: 24px;
  padding: 18px;
  border: 2px solid #bfffff;
  box-shadow:
    inset 0 0 10px rgba(255,255,255,0.9),
    0 0 20px rgba(120,220,220,0.4);
}

.window h3 {
  margin: -18px -18px 12px -18px;
  padding: 6px 12px;
  background: linear-gradient(to right, #bfffff, #e8ffff);
  border-radius: 16px 16px 0 0;
  color: #007777;
}

/* CORNER DECOR */
.corner-deco {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 56px;
  opacity: 0.6;
  animation: float 12s ease-in-out infinite;
}

.corner-deco.left {
  left: -14px;
  right: auto;
}

/* IMAGES */
.float-img {
  width: 120px;
  filter: drop-shadow(0 0 10px #99ffff);
}

/* ========================= */
/* WIDGETS                    */
/* ========================= */
.widgets {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.widget {
  position: relative;
  background: linear-gradient(180deg, #ffffff, #ddffff);
  border-radius: 24px;
  padding: 12px;
  box-shadow: 0 0 16px rgba(120,220,220,0.5);
}

.widget-icon {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 40px;
  opacity: 0.6;
  animation: float 14s ease-in-out infinite;
}

/* ========================= */
/* FOOTER                     */
/* ========================= */
footer {
  position: relative;
  margin-top: 5px;
  padding: 20px;
  text-align: center;
  font-size: 20px;
  background: linear-gradient(180deg, #a3ffff 0%, #66dddd 100%);
  
  border-radius: 0 0 24px 24px;
}

.footer-bg {
  position: absolute;
  bottom: 163px;
  left: 0;
  width: 100%;
  opacity: 0.3;
  pointer-events: none;
}

/* ========================= */
/* BLINK                      */
/* ========================= */
.blink {
  animation: blink 1s steps(2, start) infinite;
}

/* ========================= */
/* ANIMATIONS                 */
/* ========================= */
@keyframes blink {
  to { visibility: hidden; }
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0); }
}

@keyframes drift {
  from { background-position: 0 0; }
  to { background-position: 200px 400px; }
}

/* ========================= */
/* REAL FLOATING BUBBLES     */
/* ========================= */
.bubble-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.bubble-field span {
  position: absolute;
  bottom: -160px;
  background: url("images/bubbles-bg.png") center / contain no-repeat;
  opacity: 0.85;

  animation-name: bubble-rise;
  animation-timing-function: linear;
  animation-iteration-count: infinite;

  will-change: transform;
}

.bubble-field span:nth-child(1)  { left: 5%;  width: 24px; height: 24px; animation-duration: 9s;  animation-delay: -2s; }
.bubble-field span:nth-child(2)  { left: 12%; width: 48px; height: 48px; animation-duration: 14s; animation-delay: -6s; }
.bubble-field span:nth-child(3)  { left: 22%; width: 36px; height: 36px; animation-duration: 11s; animation-delay: -4s; }
.bubble-field span:nth-child(4)  { left: 32%; width: 72px; height: 72px; animation-duration: 18s; animation-delay: -9s; }
.bubble-field span:nth-child(5)  { left: 42%; width: 28px; height: 28px; animation-duration: 10s; animation-delay: -5s; }
.bubble-field span:nth-child(6)  { left: 52%; width: 44px; height: 44px; animation-duration: 13s; animation-delay: -7s; }
.bubble-field span:nth-child(7)  { left: 60%; width: 20px; height: 20px; animation-duration: 8s;  animation-delay: -3s; }
.bubble-field span:nth-child(8)  { left: 70%; width: 60px; height: 60px; animation-duration: 16s; animation-delay: -10s; }
.bubble-field span:nth-child(9)  { left: 78%; width: 34px; height: 34px; animation-duration: 11s; animation-delay: -6s; }
.bubble-field span:nth-child(10) { left: 88%; width: 80px; height: 80px; animation-duration: 20s; animation-delay: -12s; }
.bubble-field span:nth-child(11) { left: 95%; width: 18px; height: 18px; animation-duration: 7s;  animation-delay: -4s; }
.bubble-field span:nth-child(12) { left: 48%; width: 52px; height: 52px; animation-duration: 15s; animation-delay: -8s; }

@keyframes bubble-rise {
  from { transform: translateY(0) translateX(0); }
  to { transform: translateY(-160vh) translateX(60px); }
}

.header-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  pointer-events: none;
}
