/* ===================================
   POS Button Grid Layout
   Modern, Touch-Friendly Interface
   =================================== */

/* Sidebar hidden globally - handled in yellow-black-theme.css */
/* Main panel full width on all pages */
.main-panel {
  width: 100% !important;
  margin-left: 0 !important;
  max-width: 100% !important;
}

/* POS Button Grid Container */
.pos-button-grid {
  padding: 30px 20px;
  max-width: 1400px;
  margin: 0 auto;
  min-height: calc(100vh - 200px);
}

.pos-grid-header {
  text-align: center;
  margin-bottom: 40px;
}

.pos-grid-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c2c54;
  margin-bottom: 10px;
}

.pos-grid-header p {
  font-size: 1.1rem;
  color: #706d8f;
}

/* Button Grid Layout */
.pos-buttons-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .pos-buttons-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .pos-buttons-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Individual Button Tile */
.pos-button-tile {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 30px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 200px;
}

.pos-button-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pos-button-tile:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.pos-button-tile:hover::before {
  opacity: 1;
}

.pos-button-tile:active {
  transform: translateY(-5px);
}

/* Color Variants */
.pos-button-tile.color-purple {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.pos-button-tile.color-blue {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.pos-button-tile.color-green {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.pos-button-tile.color-orange {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.pos-button-tile.color-red {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.pos-button-tile.color-teal {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.pos-button-tile.color-pink {
  background: linear-gradient(135deg, #fccb90 0%, #d57eeb 100%);
}

.pos-button-tile.color-indigo {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.pos-button-tile.color-cyan {
  background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
}

/* Button Icon */
.pos-button-icon {
  font-size: 4rem;
  color: white;
  margin-bottom: 20px;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

/* Button Text */
.pos-button-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-align: center;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.pos-button-subtitle {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  font-weight: 400;
}

/* Pagination Controls */
.pos-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 40px;
}

.pos-page-info {
  font-size: 1rem;
  color: #706d8f;
  font-weight: 600;
}

.pos-nav-btn {
  padding: 12px 30px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.pos-nav-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.pos-nav-btn:active {
  transform: translateY(-1px);
}

.pos-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.pos-nav-btn i {
  font-size: 1.2rem;
}

/* Badge for notifications */
.pos-button-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
  .pos-button-grid {
    padding: 20px 15px;
  }

  .pos-grid-header h2 {
    font-size: 2rem;
  }

  .pos-buttons-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .pos-button-tile {
    padding: 20px;
    min-height: 150px;
  }

  .pos-button-icon {
    font-size: 3rem;
    margin-bottom: 15px;
  }

  .pos-button-title {
    font-size: 1.2rem;
  }

  .pos-button-subtitle {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .pos-buttons-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .pos-button-tile {
    min-height: 180px;
  }
}

/* Loading Animation */
.pos-button-tile.loading {
  pointer-events: none;
  opacity: 0.7;
}

.pos-button-tile.loading .pos-button-icon {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Quick Stats Bar (Optional) */
.pos-quick-stats {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  margin-bottom: 40px;
  padding: 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.pos-stat-item {
  text-align: center;
}

.pos-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #2c2c54;
  margin-bottom: 5px;
}

.pos-stat-label {
  font-size: 0.9rem;
  color: #706d8f;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .pos-quick-stats {
    flex-direction: column;
    gap: 15px;
  }
}

