﻿/* CSS Variables */
:root {
  --primary: #1F2937;
  --primary-light: #4B5563;
  --secondary: #6B7280;
  --accent: #9CA3AF;
  --dark: #1F2937;
  --light: #F9FAFB;
}

/* Base Styles */
body {
  font-family: 'Inter', sans-serif;
  background-color: #F3F4F6;
  color: var(--dark);
  min-height: 100vh;
}

/* Header Styles */
header {
  min-height: 64px;
}

/* User Dropdown */
.user-dropdown {
  position: relative;
}

.user-dropdown-content {
  transition: all 0.2s ease-out;
  transform: scale(0.95);
  opacity: 0;
  transform-origin: top right;
  display: none;
  position: absolute;
  right: 0;
  background-color: #f9f9f9;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  border-radius: 8px;
  z-index: 100;
  overflow: hidden;
}

.user-dropdown:hover .user-dropdown-content {
  transform: scale(1);
  opacity: 1;
  display: block;
}

.user-dropdown-content a {
  color: #111827;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.2s;
}

.user-dropdown-content a:hover {
  background-color: #f1f1f1;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
}

.user-info {
  padding: 16px;
  background: var(--primary);
  color: white;
  border-bottom: 1px solid var(--primary-light);
}

.user-name {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.user-email {
  font-size: 0.85rem;
  color: var(--accent);
}

/* Card Component */
.card {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #E5E7EB;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.08);
}

/* Tab Navigation */
.tab-btn {
  transition: all 0.3s ease;
  position: relative;
  padding: 12px 24px;
  font-weight: 600;
  border-radius: 8px 8px 0 0;
}

.tab-btn.active {
  color: var(--primary);
  background: #FFFFFF;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  border-radius: 3px;
}

/* Buttons */
.btn-primary {
  background: var(--primary);
  color: white;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(55, 65, 81, 0.2);
}

/* Form Elements */
.input-field {
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  padding: 12px 16px;
  transition: all 0.3s ease;
  width: 100%;
  background-color: #F9FAFB;
}

.input-field:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.1);
  outline: none;
}

/* File Upload */
.file-upload-area {
  border: 2px dashed #D1D5DB;
  border-radius: 8px;
  padding: 32px 16px;
  text-align: center;
  background-color: #F9FAFB;
  transition: all 0.3s ease;
  cursor: pointer;
}

.file-upload-area:hover {
  border-color: var(--secondary);
  background-color: rgba(55, 65, 81, 0.03);
}

.file-upload-area.drag-over {
  border-color: var(--primary);
  background-color: rgba(55, 65, 81, 0.05);
}

/* File Previews */
.file-previews-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.preview-thumb {
  height: 80px;
  width: 80px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #E5E7EB;
}

.preview-file {
  background-color: #F3F4F6;
  color: var(--primary);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  margin: 4px;
  border: 1px solid #E5E7EB;
}

.preview-container {
  position: relative;
  display: inline-block;
}

.remove-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.remove-btn i {
  font-size: 12px;
  color: #EF4444;
}

/* Payment Methods */
.payment-method {
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.payment-method:hover,
.payment-method.active {
  border-color: var(--primary);
  background-color: #F3F4F6;
}

/* Badges */
.summary-badge {
  background-color: #ffa500;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Progress Bar */
.progress-bar {
  height: 6px;
  background-color: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: #3b82f6;
  transition: width 0.3s ease;
}

/* QR Code Container */
.qr-container {
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
  overflow: hidden;
}

.qr-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: white;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 20px;
  border-top: 1px solid #E5E7EB;
  display: flex;
  justify-content: flex-end;
}

.close-modal {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #6B7280;
}

/* PayPal Instructions */
.paypal-instructions {
  background-color: #F9FAFB;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.paypal-instructions ul {
  list-style-type: disc;
  padding-left: 20px;
  margin-top: 10px;
}

.paypal-instructions li {
  margin-bottom: 8px;
}

/* Notifications */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 25px;
  border-radius: 8px;
  background-color: #10B981;
  color: white;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  z-index: 2000;
  display: flex;
  align-items: center;
  transform: translateX(200%);
  transition: transform 0.3s ease;
}

.notification.show {
  transform: translateX(0);
}

.notification.error {
  background-color: #EF4444;
}

.notification i {
  margin-right: 10px;
  font-size: 20px;
}

/* Upload Progress */
.upload-progress {
  padding: 8px;
  margin: 5px 0;
  background: #f5f5f5;
  border-radius: 4px;
  font-size: 14px;
  color: #555;
}

/* Tab Content Transitions */
.tab-content {
  transition: opacity 0.3s ease;
}

/* Loading Spinner */
.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  #activeView .card {
    padding: 1.25rem;
  }
  #activeView .text-sm {
    font-size: 0.875rem;
  }
  #activeView .text-lg {
    font-size: 1rem;
  }
  #activeView .font-semibold {
    font-weight: 600;
  }
  #activeView .font-medium {
    font-weight: 500;
  }
  #activeView .gap-4 {
    gap: 1rem;
  }
  #activeView .flex-col {
    flex-direction: column;
  }
  #activeView .text-right {
    text-align: left;
  }
  #activeView .items-end {
    align-items: flex-start;
  }
  #activeView .w-full {
    width: 100%;
  }
}

.file-preview-container {
  transition: all 0.2s ease;
}

.file-preview-container:hover {
  transform: translateY(-2px);
}

.preview-container {
  position: relative;
  margin: 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  overflow: hidden;
  width: 120px;
  display: inline-block;
}

.preview-content {
  position: relative;
}

.preview-thumb {
  width: 100%;
  height: 80px;
  object-fit: cover;
}

.preview-filename {
  padding: 0.25rem;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.preview-delete-btn {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.preview-delete-btn:hover {
  background: rgba(0,0,0,0.7);
}

.drag-over {
  border: 2px dashed #4299e1;
  background-color: #ebf8ff;
}