* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.awards-header {
  background: white;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.header-content h1 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 10px;
}

.header-content h1 i {
  color: #f39c12;
  margin-right: 10px;
}

.header-content p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 20px;
}

.user-info {
  font-size: 1rem;
  color: #555;
  font-weight: 600;
}

.points {
  color: #f39c12;
}

.points i {
  margin-right: 5px;
}

/* Tabs */
.awards-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  gap: 10px;
}

.tab-btn {
  padding: 12px 24px;
  background: white;
  border: 2px solid #ddd;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  color: #666;
}

.tab-btn:hover {
  border-color: #667eea;
  color: #667eea;
}

.tab-btn.active {
  background: #667eea;
  border-color: #667eea;
  color: white;
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Awards Grid */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* Award Card */
.award-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.award-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.award-card.claimed {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border: 2px solid #28a745;
}

.award-card.claimable {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border: 2px solid #f39c12;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  }
  50% {
    box-shadow: 0 5px 20px rgba(243, 156, 18, 0.3);
  }
  100% {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  }
}

.award-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.award-icon {
  font-size: 2.5rem;
  margin-right: 15px;
  min-width: 60px;
  text-align: center;
}

.award-info h3 {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 5px;
}

.award-info p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
}

.award-progress {
  margin: 15px 0;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #555;
}

.progress-percentage {
  font-weight: bold;
  color: #667eea;
}

.progress-bar {
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 4px;
  transition: width 0.8s ease;
  width: 0%;
}

.award-reward {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 8px;
  font-weight: bold;
  color: #f39c12;
}

.award-reward i {
  margin-right: 5px;
}

.award-status {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: bold;
}

.award-status.claimed {
  background: #28a745;
  color: white;
}

.award-status.claimable {
  background: #f39c12;
  color: white;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
  60% {
    transform: translateY(-3px);
  }
}

.award-status.locked {
  background: #6c757d;
  color: white;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 0;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  animation: slideIn 0.3s ease;
}

.modal-content.success {
  max-width: 400px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid #eee;
  background: #f8f9fa;
  border-radius: 15px 15px 0 0;
}

.modal-header h3 {
  margin: 0;
  color: #333;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: #e9ecef;
  color: #333;
}

.modal-body {
  padding: 25px;
}

.award-detail {
  text-align: center;
}

.award-icon-large {
  font-size: 4rem;
  margin-bottom: 15px;
}

.award-detail h4 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 10px;
}

.award-detail p {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.progress-section {
  margin: 20px 0;
  text-align: left;
}

.claim-btn {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.claim-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.claim-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Success Modal */
.success-content {
  text-align: center;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.success-content h3 {
  color: #28a745;
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.success-content p {
  color: #666;
  margin-bottom: 25px;
  font-size: 1.1rem;
}

.success-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.success-btn:hover {
  background: #218838;
  transform: translateY(-2px);
}

/* Loading States */
.loading {
  text-align: center;
  padding: 40px;
  color: #666;
  font-style: italic;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.loading-spinner {
  text-align: center;
  color: #667eea;
}

.loading-spinner i {
  font-size: 3rem;
  margin-bottom: 15px;
}

.loading-spinner p {
  font-size: 1.1rem;
  font-weight: 600;
}

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

  .awards-header {
    padding: 20px;
  }

  .header-content h1 {
    font-size: 2rem;
  }

  .awards-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .award-card {
    padding: 20px;
  }

  .awards-tabs {
    flex-direction: column;
    align-items: center;
  }

  .tab-btn {
    width: 200px;
    margin-bottom: 10px;
  }

  .modal-content {
    width: 95%;
    margin: 10% auto;
  }
}

@media (max-width: 480px) {
  .award-header {
    flex-direction: column;
    text-align: center;
  }

  .award-icon {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .progress-info {
    flex-direction: column;
    gap: 5px;
  }
}

/* Print Styles */
@media print {
  body {
    background: white;
  }

  .modal,
  .loading-overlay {
    display: none !important;
  }

  .award-card {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }
}
