/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #09090b;
    color: #e5e7eb;
    line-height: 1.5;
  }
  
  .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem;
  }
  
  .bg-dark {
    background-color: #111827;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 1rem;
  }
  
  .section-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
  }
  
  .icon {
    margin-right: 0.5rem;
  }
  
  .icon-small {
    margin-right: 0.25rem;
  }
  
  .text-right {
    text-align: right;
  }
  
  .mono {
    font-family: monospace;
  }
  
  .hidden {
    display: none;
  }
  
  /* Grid Layout */
  .grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  @media (min-width: 1024px) {
    .grid-layout {
      grid-template-columns: 3fr 1fr;
    }
  }
  
  /* Trading Chart */
  .trading-chart {
    padding: 1rem;
  }
  
  .chart-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
  }
  
  @media (min-width: 640px) {
    .chart-header {
      flex-direction: row;
      align-items: center;
    }
  }
  
  .chart-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
  }
  
  @media (min-width: 640px) {
    .chart-title {
      margin-bottom: 0;
    }
  }
  
  .time-intervals {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .interval-btn {
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    background-color: #1f2937;
    color: #9ca3af;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
  }
  
  .interval-btn:hover {
    background-color: #374151;
    transform: scale(1.05);
  }
  
  .interval-btn.active {
    background-color: #2563eb;
    color: white;
  }
  
  .interval-btn:active {
    transform: scale(0.95);
  }
  
  .chart-container {
    position: relative;
    width: 100%;
    height: 400px;
  }
  
  canvas {
    width: 100%;
    height: 100%;
  }
  
  .candle-info {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: #1f2937;
    border: 1px solid #374151;
    border-radius: 0.5rem;
    padding: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 10;
  }
  
  .candle-date {
    font-weight: bold;
    margin-bottom: 0.25rem;
  }
  
  /* Trading Form */
  .trading-form {
    padding: 1rem;
  }
  
  .balance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
  }
  
  .balance-amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4ade80;
  }
  
  .trading-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  @media (min-width: 768px) {
    .trading-grid {
      grid-template-columns: 1fr 1fr;
    }
  }
  
  .trading-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .percentage-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  @media (min-width: 640px) {
    .percentage-buttons {
      grid-template-columns: repeat(4, 1fr);
    }
  }
  
  .percentage-btn {
    padding: 0.5rem;
    border-radius: 0.25rem;
    background-color: #1f2937;
    color: #9ca3af;
    border: 1px solid #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
  }
  
  .percentage-btn:hover {
    background-color: #374151;
    color: #e5e7eb;
  }
  
  .form-input {
    padding: 0.5rem;
    border-radius: 0.25rem;
    background-color: #1f2937;
    color: #e5e7eb;
    border: 1px solid #374151;
  }
  
  .form-input::placeholder {
    color: #9ca3af;
  }
  
  .action-btn {
    padding: 0.5rem;
    border-radius: 0.25rem;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: background-color 0.2s;
  }
  
  .buy-btn {
    background-color: #16a34a;
  }
  
  .buy-btn:hover {
    background-color: #15803d;
  }
  
  .sell-btn {
    background-color: #dc2626;
  }
  
  .sell-btn:hover {
    background-color: #b91c1c;
  }
  
  /* Order Book */
  .order-book {
    padding: 1rem;
  }
  
  .order-table {
    width: 100%;
    border-collapse: collapse;
  }
  
  .order-table th {
    padding: 0.5rem;
    text-align: left;
    color: #9ca3af;
    font-weight: normal;
    border-bottom: 1px solid #1f2937;
  }
  
  .order-table td {
    padding: 0.5rem;
    border-bottom: 1px solid #1f2937;
  }
  
  .order-table tr:hover {
    background-color: rgba(31, 41, 55, 0.5);
  }
  
  .price-sell {
    color: #ef4444;
  }
  
  .price-buy {
    color: #22c55e;
  }
  
  /* Assets */
  .assets {
    padding: 1rem;
  }
  
  .assets-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .asset-item {
    background-color: #1f2937;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: transform 0.2s;
  }
  
  .asset-item:hover {
    transform: scale(1.02);
  }
  
  .asset-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .asset-name {
    font-weight: bold;
  }
  
  .asset-symbol {
    font-size: 0.875rem;
    color: #9ca3af;
  }
  
  .asset-value {
    font-weight: bold;
    text-align: right;
  }
  
  .asset-amount {
    font-size: 0.875rem;
    color: #9ca3af;
    text-align: right;
  }
