/* Modern animated wallet design */
:root {
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --secondary: #06b6d4;
    --dark-bg: #0f172a;
    --card-bg: rgba(255, 255, 255, 0.85);
    --glass-bg: rgba(255, 255, 255, 0.15);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --radius: 16px;
  }
  
  * {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    animation: gradientShift 8s ease infinite;
  }
  
  @keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  
  /* Glassmorphism cards */
  .card, .modal-content {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    animation: fadeInUp 0.6s ease both;
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Buttons */
  .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    transition: all 0.3s ease;
  }
  
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
  }
  
  .btn-primary:active {
    transform: translateY(0);
  }
  
  /* Sidebar */
  .sidebar {
    width: 260px;
    background: rgba(15, 23, 42, 0.9) !important;
    backdrop-filter: blur(25px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideInLeft 0.5s ease;
  }
  
  @keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
  }
  
  .sidebar .nav-link {
    border-radius: 8px;
    margin: 4px 8px;
    padding: 10px 16px;
    font-weight: 500;
    transition: all 0.3s;
    color: #cbd5e1 !important;
  }
  
  .sidebar .nav-link:hover,
  .sidebar .nav-link.active {
    background: var(--glass-bg);
    color: #fff !important;
    transform: translateX(8px);
  }
  
  /* Main content */
  .main-content {
    background: rgba(248, 249, 250, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 30px 0 0 30px;
    margin: 20px 20px 20px 0;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.05);
    animation: fadeIn 0.8s ease;
  }
  
  /* Balance card special */
  .balance-card {
    background: linear-gradient(145deg, #ffffff 0%, #f0f4ff 100%);
    border-left: 5px solid var(--primary);
    border-radius: var(--radius);
    transition: all 0.4s;
  }
  
  .balance-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.2);
  }
  
  /* Table rows animation */
  .table tbody tr {
    animation: fadeIn 0.5s ease backwards;
  }
  
  .table tbody tr:nth-child(1) { animation-delay: 0.1s; }
  .table tbody tr:nth-child(2) { animation-delay: 0.2s; }
  .table tbody tr:nth-child(3) { animation-delay: 0.3s; }
  .table tbody tr:nth-child(4) { animation-delay: 0.4s; }
  .table tbody tr:nth-child(5) { animation-delay: 0.5s; }
  
  /* Loading spinner (used in JS) */
  .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
  }
  
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  
  /* Ripple effect on buttons */
  .ripple {
    position: relative;
    overflow: hidden;
  }
  
  .ripple::after {
    content: '';
    position: absolute;
    width: 100%;
    padding-top: 100%;
    top: 50%;
    left: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    opacity: 0;
    transition: transform 0.5s, opacity 0.5s;
  }
  
  .ripple:active::after {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
    transition: 0s;
  }
  
  /* Form animations */
  input:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2) !important;
    border-color: var(--primary) !important;
  }