/* css/common/grid.css */
/* Grid sistem için sadeleştirilmiş CSS */

.widget-grid {
  display: grid;
  width: 100%;
  height: 100%;
  gap: 8px;
  grid-template-columns: repeat(20, 1fr);
  grid-template-rows: repeat(10, 1fr);
}

.widget-item {
  background-color: #2a2a2a;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition-duration: 100ms;
  position: relative;
}

/* Edit modu stilleri */
.widget-item.edit-mode {
  outline: 2px dashed #3498db;
  cursor: move;
}

.widget-drag-handle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background-color: rgba(52, 152, 219, 0.7);
  cursor: move;
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
  z-index: 5;
}

.widget-resize-handle {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20px;
  height: 20px;
  background-color: rgba(52, 152, 219, 0.7);
  cursor: nwse-resize;
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
  z-index: 5;
}

.widget-item.edit-mode .widget-drag-handle,
.widget-item.edit-mode .widget-resize-handle {
  opacity: 1;
}

/* Widget mode için placeholder */
.widget-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  color: #ccc;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.widget-item.dragging {
  z-index: 10;
  opacity: 0.8;
}

.widget-item.resizing {
  z-index: 10;
  opacity: 0.8;
}

/* Widget hata durumu */
.widget-error {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 10px;
  text-align: center;
  color: #ff5252;
  font-size: 12px;
}