
/* Component styles - buttons, cards, search, etc. */

/* Search styles */
.search-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 15px 50px 15px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 50px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s;
}

.search-input:focus {
  border-color: var(--primary-color);
}

.search-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
  margin-top: 5px;
}

.search-result-item {
  padding: 12px 20px;
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-result-item:hover {
  background-color: #f9fafb;
}

.search-result-item:last-child {
  border-bottom: none;
}

/* Country flag styles */
.country-flag {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
}

.country-flag.round {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

/* Package card enhancements */
.package-card {
  position: relative;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.package-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  text-decoration: none;
  color: inherit;
}

/* Country package card hover border effect */
#country-packages .bg-white.rounded-lg.border,
#destination-packages .bg-white.rounded-lg.border {
  transition: all 0.3s ease;
  border: 2px solid #e5e7eb;
}

#country-packages .bg-white.rounded-lg.border:hover,
#destination-packages .bg-white.rounded-lg.border:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

.package-price-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary-color);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

/* Tab button styles */
.tab-btn {
  position: relative;
  transition: all 0.3s;
}

.tab-btn.active {
  background-color: var(--primary-color);
  color: white;
}

.tab-btn:not(.active):hover {
  background-color: rgba(14, 165, 233, 0.1);
}

/* FAQ styles */
.faq-category-btn {
  background: transparent;
  color: #6b7280;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-category-btn.active {
  background-color: var(--primary-color, #0EA5E9) !important;
  color: white !important;
}

.faq-category-btn:hover:not(.active) {
  background-color: rgba(14, 165, 233, 0.1);
  color: var(--primary-color, #0EA5E9);
}

.faq-category {
  display: none !important;
}

.faq-category.active {
  display: block !important;
}

.faq-question {
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #f9fafb;
}

.faq-answer {
  display: none !important;
  animation: fadeIn 0.3s ease-in;
}

.faq-answer.show {
  display: block !important;
}

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

/* Cookie consent styles */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1f2937;
  color: white;
  padding: 20px;
  z-index: 9998;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.cookie-consent.hidden {
  display: none;
}

.cookie-consent-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.cookie-consent-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
}

.cookie-consent-actions {
  display: flex;
  gap: 10px;
}

.cookie-consent-btn {
  padding: 8px 16px;
  border: 1px solid #d1d5db;
  background: transparent;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.cookie-consent-btn.primary {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.cookie-consent-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

/* SIM Card styles */
.sim-card {
  position: relative;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.sim-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.sim-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #ea580c);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.data-usage-bar {
  width: 100%;
  height: 8px;
  background-color: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.data-usage-fill {
  height: 100%;
  background: linear-gradient(90deg, #f97316, #ea580c);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Detail view styles */
.sim-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid #f3f4f6;
}

.sim-detail-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
}

.sim-detail-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #111827;
}

.action-button {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-align: center;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.action-button.primary {
  background: #f97316;
  color: white;
  border: none;
}

.action-button.primary:hover {
  background: #ea580c;
}

.action-button.secondary {
  background: white;
  color: #374151;
  border: 1px solid #d1d5db;
}

.action-button.secondary:hover {
  background: #f9fafb;
}

.action-button.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.action-button.success:hover {
  background: #bbf7d0;
}

.action-button.info {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.action-button.info:hover {
  background: #bfdbfe;
}

/* Transaction history styles */
.transaction-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background: #f9fafb;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
}

.transaction-item:last-child {
  margin-bottom: 0;
}

.transaction-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.transaction-flag {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
}

/* Back button styles */
.back-button {
  display: inline-flex;
  align-items: center;
  color: #6b7280;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.back-button:hover {
  color: #374151;
}

.back-button svg {
  margin-right: 0.5rem;
}
