
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100;1,100&display=swap');

body {
  margin: 0;
  background: #000000;
  height: 100vh;
  overflow: hidden; /* Prevent body scroll */
}

.container {
  background-color: rgb(0 0 0);
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background:
    linear-gradient(240deg, rgb(255 255 255 / 0.15), transparent 30%),
    linear-gradient(175deg, rgb(255 255 255 / 0.2), transparent 60%);
  z-index: 5;
}

.border {
  height: 1px;
  width: 100%;
  top: 99%;
  background-color: rgb(255, 255, 255);
  position: absolute;
  background:
    linear-gradient(179deg, rgb(100, 100, 100), transparent 80%),
    linear-gradient(240deg, rgb(100, 100, 100), transparent 50%);
}

.header-left {
  font-family: "Raleway", sans-serif;
  font-size: 48px;
  color: #787878;
  display: flex;
  text-align: center;
  align-items: center;
  margin-top: -20px;
  margin-left: 30px;
  margin-bottom: -20px;
  text-shadow: 10px -6px 50px rgb(100, 100, 100);
  background:
    linear-gradient(#c6c6c6, #161616);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.profile-pic {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border-width: 1px;
  border-color: #ffffff;
  overflow: hidden;
  cursor: pointer;
  position: absolute;
  top: 28px;
  right: 45px;
  box-shadow: 2px -6px 30px 2px rgb(72, 72, 72);
}

.profile-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Grid container styles */
.grid-container {
  position: fixed;
  top: 120px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  background: #000;
  cursor: grab;
}

.grid-container.panning {
  cursor: grabbing;
}

.grid {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
  transition: transform 0.05s ease-out;
  display: grid;
  /* grid-template-columns: repeat(10, 61px);
  grid-gap: 0px;
  padding: 0px; */
  width: calc(20 * 50px + 1px);
  height: calc(48 * 50px + 1px);
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 50px 50px;
}

.grid-item {
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.05s ease;
  user-select: none;
  display: inline-block;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.grid-item:hover {
  transform: scale(1.02);
}

.grid-item.dragging {
  z-index: 6;
  transform: scale(1.02);
}

.grid-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  border-radius: 4px;
}

/* Shadow only on the image when dragging */
.grid-item.dragging img {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Context Menu Styles */
.context-menu {
  position: fixed;
  background: #222;
  border: 2px solid #333;
  padding: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 7;
  min-width: 150px;
  display: none;
}

.context-menu.show {
  display: block;
}

.context-menu-title {
  padding: 4px 12px;
  color: #fff;
  font-weight: bold;
  border-bottom: 1px solid #555;
  font-size: 12px;
  background: #444;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  margin: 0;
}

.context-menu-items {
  padding: 0px;
}

.context-menu-item {
  padding: 4px 12px;
  color: #ccc;
  cursor: pointer;
  font-size: 12px;
  transition: background-color 0.2s;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.context-menu-item:hover {
  background: #555;
  color: #fff;
}

.context-menu-item.danger {
  color: #c80000;
}

.context-menu-item.danger:hover {
  background: #f00;
  color: #fff;
}

.add-image-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #111;
  color: white;
  border: 0px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 12px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  z-index: 8;
  transition: all 0.2s ease;
}

.add-image-btn:hover {
  background: #222;
  transform: scale(1.05);
}