html, body {
  color: #eaeaf0;
  font-family: Inter, sans-serif;
}

/* ---------- Container Grid ---------- */
.containerx {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns like your previous flex layout */
  grid-auto-rows: 160px; /* default row height */
  gap: 20px;
  padding: 20px;
  justify-content: flex-start;
}

/* ---------- Card Styles ---------- */
.card, .activity-card, .spotify-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  background: #141417;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  position: relative;
  margin-bottom: 0px;
}

/* Double-height card */
.card-tall {
  grid-row: span 3; /* spans 2 rows */
}

/* Responsive: stack cards on smaller screens */
@media (max-width: 900px) {
  .containerx {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on smaller screens */
  }
  .card {
    grid-column: span 1; /* spans 2 rows */
  }
  .gomini {
  grid-column: span 1; /* spans 2 rows */
}
}

@media (max-width: 700px) {
  .containerx {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on smaller screens */
  }
  .card {
    grid-column: span 2; /* spans 2 rows */
  }
  .gomini {
  grid-column: span 1; /* spans 2 rows */
}
}

/* ---------- Activity Card ---------- */
.activitytitle {
  font-size: 14px;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 4px;
  letter-spacing: 0.8px;
}

.activityname {
  font-size: 14px;
  text-transform: uppercase;
  color: var(--skin-color);
  margin-bottom: 4px;
  font-weight: 400;
  letter-spacing: 0.8px;
}

.activitydetail { font-size: 20px; font-weight: 600; }

.activitystatus { font-size: 14px; color: #9ca3af; margin-top: 4px; }

.activitytime { font-size: 12px; width: 100%; color: #9ca3af; margin-top: 4px; }
.activity-progress-container {
  width: 100%;          /* full width of parent container */
  height: 6px;
  background: #222;
  border-radius: 3px;
  margin-bottom: 2px;
  display: flex; 
  align-items: center; 
}

.activity-progress-bar {
  height: 100%;
  width: 0%;             /* starts empty */
  background: var(--skin-color);
  border-radius: 3px;
  transition: width 0.2s linear;
}


.progress-container { 
  width: 100%; 
  height: 8px; 
  background: rgba(255,255,255,0.2); 
  border-radius: 4px; 
  margin-top: 4px; 
  display: flex; 
  align-items: center; 
}
.progress-bar { 
  height: 8px; 
  background: #1db954; 
  border-radius: 4px; 
  width: 0%; 
}



.label {
  font-size: 14px;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 8px;
  letter-spacing: 0.8px;
}

/* ---------- Row layout inside cards ---------- */
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Text Sizes ---------- */
.temp { font-size: 42px; font-weight: 700; }
.cond { color: #a5a7b0; font-size: 18px; }
.big { font-size: 20px; font-weight: 600; }

/* ---------- Status Dots ---------- */
.dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.dot.green { background: #22c55e; }
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.gray { background: #8b8d93; }

.small { font-size: 14px; color: #9ca3af; margin-top: 8px; }

/* ---------- Spotify / Activity Card Images ---------- */
.spotify-card img, 
.activity-card img.large-icon {
  width: 80px;
  height: 80px;
  border-radius: 8px;
}

/* ---------- Spotify & Activity cards shared layout ---------- */
.spotify-card, 
.activity-card {
  flex-direction: row;         /* side by side */
  align-items: center;
  text-align: left;
  justify-content: flex-start;
  padding: 16px 20px;
}


/* Text block inside cards */
.spotify-card .text, 
.activity-card .activity-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  flex: 1;
}

/* Small icon top-right */
.activity-card .small-top-right,
.spotify-card .small-top-right {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 6px;
}

/* ---------- Progress Bar ---------- */
.smallspot { font-size: 12px; color: #9ca3af; margin-top: 3px; }
.bigspot { font-size: 18px; font-weight: 600; }
.labelspot {
  font-size: 12px;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 4px;
  font-weight: 300;
  letter-spacing: 0.8px;
}

.progress-container { 
  width: 100%; 
  height: 8px; 
  background: rgba(255,255,255,0.2); 
  border-radius: 4px; 
  margin-top: 4px; 
  display: flex; 
  align-items: center; 
}
.progress-bar { 
  height: 8px; 
  background: #1db954; 
  border-radius: 4px; 
  width: 0%; 
}
.spotify-time { 
  display: flex; 
  justify-content: space-between; 
  font-size: 10px; 
  color: #9ca3af; 
  margin-top: 2px; 
}


@keyframes spinicon {
            from {transform:rotate(0deg);}
            to {transform: rotate(360deg);}
        }

        



        /* ---------- Email Card ---------- */
.email-card {
  box-sizing: border-box;
  align-items: center;
  text-align: center;
  justify-content: center;
  position: relative;
  margin-bottom: 0px;

  display: flex;
  flex-direction: column;
  color: #eaeaf0;
  height: 100%; /* make it stretch to grid row height */
}

.email-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #141417; /* same as other cards */
  padding: 8px;
  padding-top: 5px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  color: #eaeaf0;
  height: 100%; /* make it stretch to grid row height */

}

/* Title of the card */
.email-title {
  font-size: 12px;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 5px;
  letter-spacing: 0.8px;
}

/* Message textarea on top, takes max available space */
.email-message {
  width: 100%;
  flex: 1; /* expand to fill available space */
  padding: 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.2);
  background: #1a1a1f;
  color: #eaeaf0;
  resize: none;
  font-size: 14px;
  margin-bottom: 5px;
}

/* Bottom row for inputs and send button */
.email-input-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr); /* 7 equal columns */
  gap: 5px;
  width: 100%; /* full width */
  align-items: center;
}

/* Name input spans 3 columns */
.email-name {
  grid-column: span 3;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.2);
  background: #1a1a1f;
  color: #eaeaf0;
  font-size: 14px;
}

/* Email input spans 3 columns */
.email-email {
  grid-column: span 3;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.2);
  background: #1a1a1f;
  color: #eaeaf0;
  font-size: 14px;
}

/* Send button spans 1 column */
.email-send-btn {
  grid-column: span 1;
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  border: 1px solid rgba(255,255,255,0.2);
  background: var(--skin-color);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.email-send-btn:hover {
  background: #484848;
}






