/* Hero Section */
.giftcode-hero {
  position: relative;
  background: linear-gradient(135deg, #1877F2 0%, #0d5dbf 50%, #084a99 100%);
  padding: 80px 20px;
  border-radius: 24px;
  margin-bottom: 40px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(24, 119, 242, 0.3);
}

.hero-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.hero-icon-container {
  margin-bottom: 30px;
}

.icon-circle {
  width: 100px;
  height: 100px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  animation: float 3s ease-in-out infinite;
}

.icon-circle i {
  font-size: 3rem;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-main-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 15px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
  letter-spacing: -1px;
}

.hero-description {
  font-size: 1.2rem;
  opacity: 0.95;
  font-weight: 300;
}

/* Floating Elements */
.floating-element {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float-random 15s ease-in-out infinite;
}

.element-1 {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.element-2 {
  top: 60%;
  right: 10%;
  animation-delay: -5s;
}

.element-3 {
  bottom: 20%;
  left: 15%;
  animation-delay: -10s;
}

@keyframes float-random {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(30px, -30px) rotate(120deg);
  }
  66% {
    transform: translate(-20px, 20px) rotate(240deg);
  }
}

/* Stats Overview Grid */
.stats-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}

.stat-overview-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-overview-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--stat-color), transparent);
}

.stat-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.stat-total { --stat-color: #1877F2; }
.stat-available { --stat-color: #28a745; }
.stat-used { --stat-color: #ffc107; }
.stat-lots { --stat-color: #dc3545; }

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--stat-color), var(--stat-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: #2c3e50;
  line-height: 1;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: #6c757d;
  font-weight: 500;
}

.stat-trend {
  font-size: 1.5rem;
  color: var(--stat-color);
  opacity: 0.3;
}

/* Legend Modern Card */
.legend-modern-card {
  background: white;
  border-radius: 20px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.legend-header {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.legend-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.legend-item-modern {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #495057;
}

.legend-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-yesterday { background: linear-gradient(135deg, #ffc107, #ff9800); }
.dot-today { background: linear-gradient(135deg, #0dcaf0, #0891b2); }
.dot-tomorrow { background: linear-gradient(135deg, #28a745, #20c997); }

/* Summary Tables Grid */
.summary-tables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.summary-table-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.table-card-header {
  padding: 25px 30px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gradient-primary {
  background: linear-gradient(135deg, #1877F2, #0d5dbf);
}

.gradient-secondary {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.header-content {
  display: flex;
  align-items: center;
}

.header-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
}

.header-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.table-wrapper {
  padding: 20px;
}

.modern-data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.modern-data-table thead th {
  background: #f8f9fa;
  color: #495057;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  padding: 12px;
  text-align: center;
}

.modern-data-table tbody tr {
  transition: all 0.3s ease;
}

.modern-data-table tbody tr:hover {
  transform: scale(1.02);
}

.modern-data-table tbody td {
  padding: 12px;
  text-align: center;
}

.amount-badge {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, #1877F2, #0d5dbf);
  color: white;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
}

.usage-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
}

.pill-yesterday {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  color: #856404;
}

.pill-today {
  background: linear-gradient(135deg, #cfe2ff, #9ec5fe);
  color: #084298;
}

.pill-tomorrow {
  background: linear-gradient(135deg, #d1e7dd, #a3cfbb);
  color: #0f5132;
}

/* Quick Actions Section */
.quick-actions-section {
  margin-bottom: 40px;
}

.section-title {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 25px;
}

.actions-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.action-card-modern {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.action-card-modern:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.action-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.gradient-green { background: linear-gradient(135deg, #28a745, #20c997); }
.gradient-blue { background: linear-gradient(135deg, #0dcaf0, #0891b2); }
.gradient-purple { background: linear-gradient(135deg, #667eea, #764ba2); }
.gradient-red { background: linear-gradient(135deg, #dc3545, #c82333); }

.action-card-modern h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 20px;
}

.action-form-modern {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.modern-input,
.modern-select {
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: #f8f9fa;
  width: 100%;
  box-sizing: border-box;
}

.modern-input:focus,
.modern-select:focus {
  outline: none;
  border-color: #1877F2;
  background: white;
  box-shadow: 0 0 0 4px rgba(24, 119, 242, 0.1);
}

.input-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.input-group-row .modern-input {
  min-width: 0;
}

.action-submit-btn {
  padding: 12px;
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.action-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.file-upload-area {
  position: relative;
  margin-bottom: 10px;
}

.file-input {
  display: none;
}

.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  border: 2px dashed #dee2e6;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.file-upload-label:hover {
  border-color: #1877F2;
  background: rgba(24, 119, 242, 0.05);
}

.file-upload-label i {
  font-size: 1.5rem;
  color: #6c757d;
}

.file-upload-label span {
  font-size: 0.9rem;
  color: #6c757d;
}

.import-buttons-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.import-bulk-btn {
  padding: 12px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.import-bulk-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
  color: white;
}

.form-note {
  font-size: 0.8rem;
  color: #6c757d;
  text-align: center;
  margin-top: 8px;
}

.export-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.export-btn {
  padding: 12px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  text-decoration: none;
  color: #495057;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.export-btn:hover {
  background: white;
  border-color: #1877F2;
  color: #1877F2;
  transform: translateX(5px);
}

/* Enhanced Form Styles */
.expire-date-group {
  margin-top: 5px;
  width: 100%;
}

.expire-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 8px;
  padding-left: 4px;
}

.expire-input {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.expire-input:focus {
  background: white;
  border-color: #28a745;
  box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.1);
}

.modern-input::placeholder {
  color: #adb5bd;
  font-weight: 500;
}

/* Stock Summary Card */
.stock-summary-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
}

.stock-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-left h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
}

.stock-count {
  background: linear-gradient(135deg, #1877F2, #0d5dbf);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.stock-table-wrapper {
  overflow-x: auto;
}

.stock-data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.stock-data-table thead th {
  background: #f8f9fa;
  color: #495057;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  padding: 12px;
  text-align: center;
}

.stock-data-table tbody td {
  padding: 14px;
  text-align: center;
  background: #f8f9fa;
}

.stock-data-table tbody tr {
  transition: all 0.3s ease;
}

.stock-data-table tbody tr:hover td {
  background: #e9ecef;
}

.stock-amount-badge {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, #1877F2, #0d5dbf);
  color: white;
  border-radius: 12px;
  font-weight: 700;
}

.stock-stat {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.stat-available {
  background: linear-gradient(135deg, #d1e7dd, #a3cfbb);
  color: #0f5132;
}

.stat-today {
  background: linear-gradient(135deg, #cfe2ff, #9ec5fe);
  color: #084298;
}

.stat-yesterday {
  background: linear-gradient(135deg, #e2e3e5, #d3d3d4);
  color: #383d41;
}

.stat-tomorrow {
  background: linear-gradient(135deg, #d1e7dd, #a3cfbb);
  color: #0f5132;
}

.stat-used {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  color: #856404;
}

.stat-total {
  background: linear-gradient(135deg, #d1ecf1, #a4d4de);
  color: #0c5460;
}

/* Divider */
.management-divider {
  text-align: center;
  margin: 20px 0;
  position: relative;
}

.management-divider::before,
.management-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: #e9ecef;
}

.management-divider::before {
  left: 0;
}

.management-divider::after {
  right: 0;
}

.management-divider span {
  background: white;
  padding: 0 15px;
  color: #6c757d;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-main-title {
    font-size: 2rem;
  }
  
  .stats-overview-grid {
    grid-template-columns: 1fr;
  }
  
  .summary-tables-grid {
    grid-template-columns: 1fr;
  }
  
  .actions-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .input-group-row {
    grid-template-columns: 1fr;
  }
}
