/* General Reset and Layout */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  color: #333;
}

header {
  background-color: #4CAF50;
  color: white;
  padding: 20px;
  text-align: center;
}

main.dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
}

.card {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card h2 {
  margin-bottom: 10px;
}

footer {
  text-align: center;
  padding: 10px;
  background-color: #ddd;
  margin-top: 20px;
}

.iframe-card-wrapper {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 6px;
  margin-top: 10px;
  background-color: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Locked, cropped, and perfectly centered iframe */
.iframe-card-wrapper iframe {
  position: absolute;
  top: -80px;         /* crop the top */
  left: -100px;       /* crop from left to center horizontally */
  width: 1200px;      /* widen the iframe to fit cropping */
  height: 800px;      /* tall enough to avoid bottom white space */
  transform: scale(0.5);  /* shrink to fit inside card */
  transform-origin: top left;
  border: none;
  pointer-events: none;  /* lock interaction */
}

/* Hide scrollbars if any */
.iframe-card-wrapper iframe::-webkit-scrollbar {
  display: none;
}

.iframe-card-wrapper iframe {
  scrollbar-width: none;
}


/* Buttons */
button {
  background-color: #4CAF50;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
}

button:hover {
  background-color: #45a049;
}
