/* Wallet Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 실시간 알림 애니메이션 */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.real-time-notification {
  animation: slideIn 0.3s ease;
}

.real-time-notification.notification-close {
  animation: slideOut 0.3s ease;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.wallet-header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.wallet-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-left h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
  color: #2d3748;
}

.header-nav {
  display: flex;
  gap: 1.5rem;
}

.header-nav a {
  color: #718096;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.header-nav a:hover,
.header-nav a.active {
  color: #2d3748;
  background-color: #f7fafc;
}

.header-right {
  display: flex;
  align-items: center;
}

.user-menu {
  position: relative;
  cursor: pointer;
}

.user-name {
  font-weight: 600;
  color: #2d3748;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  min-width: 150px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  margin-top: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.user-menu:hover .user-dropdown {
  opacity: 1;
  visibility: visible;
}

.user-dropdown a {
  display: block;
  padding: 0.75rem 1rem;
  color: #333;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.user-dropdown a:hover {
  background-color: #f8f9fa;
}

/* Main Content */
.wallet-main {
  padding: 2rem 0;
}

/* BTC Wallet Section */
.btc-wallet {
  margin-bottom: 2rem;
}

.wallet-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.wallet-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.crypto-icon,
.balance-icon {
  font-size: 2rem;
  background: linear-gradient(135deg, #f7931a 0%, #e85d00 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.crypto-info h3,
.balance-info h3 {
  font-size: 0.9rem;
  color: #718096;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3748;
}

.balance {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.balance-krw {
  font-size: 0.85rem;
  color: #718096;
  line-height: 1.4;
}

.krw-amount {
  font-weight: 600;
  color: #2d3748;
}

/* Transaction Section */
.transaction-section {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

.transaction-header h2 {
  color: #2d3748;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.wallet-address-section {
  text-align: center;
}

.address-info {
  margin-bottom: 2rem;
  color: #718096;
  line-height: 1.6;
}

.address-input {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.address-input input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8f9fa;
  color: #2d3748;
  font-family: monospace;
  font-size: 0.9rem;
}

.copy-btn {
  padding: 0.75rem 1rem;
  background: #4299e1;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.copy-btn:hover {
  background: #3182ce;
}

.transaction-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn {
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-send {
  background: #2d3748;
  color: white;
}

.btn-send:hover {
  background: #1a202c;
}

.btn-receive {
  background: #ed8936;
  color: white;
}

.btn-receive:hover {
  background: #dd6b20;
}

.btn-primary {
  background: #4299e1;
  color: white;
}

.btn-primary:hover {
  background: #3182ce;
}

/* Withdrawal Info */
.withdrawal-info {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

.withdrawal-info h3 {
  color: #2d3748;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.account-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.info-item label {
  font-weight: 600;
  color: #2d3748;
  margin: 0;
}

.info-item span {
  color: #4a5568;
  font-family: inherit;
}

/* Recent Transactions */
.recent-transactions {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

.recent-transactions h3 {
  color: #2d3748;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.transactions-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.transaction-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.transaction-item:hover {
  background-color: #f8f9fa;
}

.tx-icon {
  font-size: 1.5rem;
  margin-right: 1rem;
}

.tx-info {
  flex: 1;
}

.tx-type {
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.25rem;
}

.tx-date {
  font-size: 0.85rem;
  color: #718096;
}

.tx-amount {
  text-align: right;
}

.amount {
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.25rem;
  font-family: monospace;
}

.status {
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-pending {
  background: #fef5e7;
  color: #d69e2e;
}

.status-confirmed {
  background: #f0fff4;
  color: #38a169;
}

.status-failed {
  background: #fed7d7;
  color: #e53e3e;
}

.status-cancelled {
  background: #edf2f7;
  color: #718096;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
  margin: 0;
  color: #2d3748;
}

.close {
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  color: #718096;
}

.close:hover {
  color: #2d3748;
}

.modal-body {
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #2d3748;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.unit {
  position: absolute;
  right: 0.75rem;
  top: 2.25rem;
  color: #718096;
  font-weight: 600;
}

/* QR Section */
.qr-section {
  text-align: center;
  margin-bottom: 2rem;
}

.qr-placeholder {
  display: inline-block;
  width: 150px;
  height: 150px;
  border: 2px dashed #e2e8f0;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.qr-code {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.address-section label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #2d3748;
}

.address-display {
  display: flex;
  gap: 0.5rem;
}

.address-display input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8f9fa;
  font-family: monospace;
  font-size: 0.9rem;
}

.address-display button {
  padding: 0.75rem 1rem;
  background: #4299e1;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .wallet-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .header-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .header-nav {
    overflow-x: auto;
  }

  .wallet-cards {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 15px;
  }

  .wallet-main {
    padding: 1rem 0;
  }

  .transaction-section,
  .recent-transactions {
    padding: 1.5rem;
  }

  .transaction-buttons {
    flex-direction: column;
  }

  .address-input {
    flex-direction: column;
  }

  .address-display {
    flex-direction: column;
  }

  .modal-content {
    margin: 10% auto;
    width: 95%;
  }

  .modal-body {
    padding: 1.5rem;
  }
}
