/* Mobile-First Styles - Only applies below 768px */
@media (max-width: 768px) {
  /* Hide desktop header on mobile */
  header {
    display: none !important;
  }

  /* Show mobile navigation */
  .mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text2);
    opacity: 0.6;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 50px;
    flex: 1;
  }

  .mobile-nav-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
  }

  .mobile-nav-item.active {
    opacity: 1;
    color: var(--light);
    background: rgba(205, 214, 255, 0.1);
  }

  .nav-icon {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
  }

  .nav-label {
    font-size: 0.65rem;
    font-weight: 500;
    text-align: center;
  }

  .header-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
  }

  .theme-toggle,
  .language-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
  }

  /* Adjust container padding for mobile */
  .container {
    padding-bottom: 70px;
  }

 .quick-actions{
  display: none;
 }

  /* Mobile responsive adjustments */
  .summary-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .summary-card {
    padding: 1rem;
  }

  .summary-card .amount {
    font-size: 1.3rem;
  }

  .card {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .filter-options {
    flex-direction: column;
    gap: 0.5rem;
  }

  .filter-options select,
  .filter-options input {
    min-width: 100%;
  }

  /* Transaction items mobile optimization */
  .transaction-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem;
  }

  .transaction-info {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .transaction-amount {
    align-self: flex-end;
    margin-bottom: 0.5rem;
  }

  .transaction-actions {
    align-self: flex-end;
  }

  /* Form adjustments for mobile */
  .form-group {
    margin-bottom: 1rem;
  }

  input,
  select,
  textarea {
    padding: 0.6rem;
    font-size: 16px;
  }

  button {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    width: 100%;
  }

  /* Floating Action Button */
  .fab {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(67, 97, 238, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(67, 97, 238, 0.4);
  }

  /* Settings page mobile optimization */
  .settings-option {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .toggle-switch {
    margin-left: auto;
  }

  /* Mobile page header */
  .mobile-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 1rem;
  }

  .mobile-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
  }

  .mobile-header-actions {
    display: flex;
    gap: 0.5rem;
  }

  .mobile-action-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .mobile-action-btn:hover {
    background: var(--background);
  }

  .action-icon {
    font-size: 1.2rem;
  }
}

/* Desktop styles - hide mobile elements */
@media (min-width: 769px) {
  .mobile-nav {
    display: none;
  }

  .fab {
    display: none;
  }

  .mobile-page-header {
    display: none;
  }
}

/* Very small screens optimization */
@media (max-width: 320px) {
  .mobile-nav {
    padding: 0.25rem 0;
  }

  .mobile-nav-item {
    padding: 0.25rem;
    min-width: 45px;
  }

  .nav-icon {
    font-size: 1.1rem;
  }

  .nav-label {
    font-size: 0.6rem;
  }

  .fab {
    width: 50px;
    height: 50px;
    bottom: 70px;
    right: 15px;
  }
}
/* Force Dark Mode - if using class-based dark mode */
.dark-mode .mobile-nav {
  background: #1f2937;
  border-top: 1px solid #374151;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.dark-mode .mobile-nav-item.active {
  background: #2563eb;
}

.dark-mode .mobile-nav-item:not(.active):hover {
  background: #374151;
}

.dark-mode .mobile-nav-item.active .nav-label {
  color: #f9fafb;
}

.dark-mode .mobile-nav-item:not(.active) .nav-label {
  color: #9ca3af;
}

.dark-mode .language-toggle,
.dark-mode .theme-toggle {
  background: #374151;
  border: 1px solid #4b5563;
  color: #f9fafb;
}

.dark-mode .language-toggle:hover,
.dark-mode .theme-toggle:hover {
  background: #4b5563;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .mobile-nav {
    padding: 6px 2px;
  }

  .mobile-nav-item {
    padding: 6px 8px;
    max-width: 70px;
  }

  .nav-icon {
    font-size: 18px;
  }

  .nav-label {
    font-size: 11px;
  }

  .mobile-nav .header-controls {
    gap: 6px;
    padding: 0 8px;
  }

  .language-toggle,
  .theme-toggle {
    padding: 6px 10px;
    font-size: 12px;
  }
}
