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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: linear-gradient(135deg, #38A3A5 0%, #22577A 100%);
  min-height: 100vh;
}

/* Container */
.container {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
}

/* Cards */
.card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
}

.card-header {
  text-align: center;
  margin-bottom: 20px;
}

.card-header h1 {
  color: #333;
  font-size: 24px;
  margin-bottom: 8px;
}

.card-header p {
  color: #666;
  font-size: 14px;
}

/* Forms */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #333;
  font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 2px solid #e1e5eb;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #38A3A5;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #38A3A5 0%, #22577A 100%);
  color: white;
  width: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(56, 163, 165, 0.4);
}

.btn-secondary {
  background: #f0f0f0;
  color: #333;
}

.btn-secondary:hover {
  background: #e0e0e0;
}

.btn-danger {
  background: #dc3545;
  color: white;
}

.btn-danger:hover {
  background: #c82333;
}

.btn-small {
  padding: 8px 16px;
  font-size: 14px;
}

/* Links */
.link {
  color: #38A3A5;
  text-decoration: none;
  font-weight: 500;
}

.link:hover {
  text-decoration: underline;
}

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

.alert-error {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.alert-success {
  background: #d1fae5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

/* Navigation */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  margin-bottom: 20px;
}

.nav-brand {
  font-size: 20px;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 16px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  opacity: 0.9;
}

.nav-links a:hover {
  opacity: 1;
}

/* Card list */
.card-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-item {
  background: white;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-item-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  background: #e1e5eb;
}

.card-item-info {
  flex: 1;
}

.card-item-info h3 {
  font-size: 16px;
  color: #333;
  margin-bottom: 4px;
}

.card-item-info p {
  font-size: 14px;
  color: #666;
}

.card-item-actions {
  display: flex;
  gap: 8px;
}

/* Profile image upload */
.image-upload {
  text-align: center;
  margin-bottom: 20px;
}

.image-preview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  display: block;
  background: #e1e5eb;
  border: 4px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-upload input[type="file"] {
  display: none;
}

.image-upload-btn {
  display: inline-block;
  padding: 8px 16px;
  background: #f0f0f0;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  color: #666;
}

.image-upload-btn:hover {
  background: #e0e0e0;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.tab {
  flex: 1;
  padding: 12px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.tab.active {
  background: white;
  color: #38A3A5;
}

/* Section divider */
.section-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
  margin: 20px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e1e5eb;
}

/* Utility */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 16px;
}

.mb-4 {
  margin-bottom: 16px;
}

.hidden {
  display: none !important;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 16px;
  padding: 24px;
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.modal-content img {
  max-width: 100%;
  margin: 16px 0;
}

.qr-url {
  background: #f5f5f5;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  word-break: break-all;
  margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 480px) {
  .container {
    padding: 12px;
  }

  .card {
    padding: 20px;
  }

  .card-item {
    flex-direction: column;
    text-align: center;
  }

  .card-item-actions {
    width: 100%;
    justify-content: center;
  }
}
