/* Swish Payment System - Custom Styles */

:root {
  --swish-primary: #007AC9;
  --swish-secondary: #005B99;
  --swish-accent: #009AFF;
  --swish-success: #0A8754;
  --swish-warning: #FFC107;
  --swish-danger: #DC3545;
  --swish-light: #F8F9FA;
  --swish-dark: #343A40;
  --swish-gray: #6C757D;
  --swish-border-radius: 0.5rem;
  --swish-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  --swish-transition: all 0.3s ease;
  --sidebar-width: 250px;
  --header-height: 56px;
}

/* Typography Improvements */
body {
  font-family: 'Poppins', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--swish-dark);
  background-color: #f9fafb;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
}

/* Layout Structure */
.wrapper {
  width: 100%;
  min-height: 100vh;
  position: relative;
}

.content {
  padding-top: calc(var(--header-height) + 1rem);
  width: 100%;
  transition: margin-left 0.3s ease, width 0.3s ease;
}

/* Card Enhancements */
.card {
  border: none;
  border-radius: var(--swish-border-radius);
  box-shadow: var(--swish-box-shadow);
  transition: var(--swish-transition);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.card:hover {
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.card-header {
  font-weight: 600;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.card-dashboard {
  border-left: 4px solid var(--swish-primary);
  transition: var(--swish-transition);
}

.card-dashboard:hover {
  border-left-color: var(--swish-accent);
}

/* Button Enhancements */
.btn {
  border-radius: var(--swish-border-radius);
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  transition: var(--swish-transition);
}

.btn-swish {
  background: linear-gradient(to right, var(--swish-primary), var(--swish-accent));
  border: none;
  color: white;
  font-weight: 500;
}

.btn-swish:hover {
  background: linear-gradient(to right, var(--swish-secondary), var(--swish-primary));
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 122, 201, 0.3);
}

.btn-outline-primary {
  border-color: var(--swish-primary);
  color: var(--swish-primary);
}

.btn-outline-primary:hover {
  background-color: var(--swish-primary);
  color: white;
}

/* Navbar Improvements */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: var(--header-height);
  z-index: 1030;
}

.bg-swish {
  background: linear-gradient(to right, var(--swish-primary), var(--swish-accent));
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.navbar-toggler {
  padding: 0.25rem;
  font-size: 1.2rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Mobile specific navbar fixes */
@media (max-width: 767.98px) {
  .navbar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background: linear-gradient(to right, var(--swish-primary), var(--swish-accent)) !important;
  }
  
  .navbar-toggler {
    padding: 0.4rem;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.25rem;
  }
  
  .navbar-toggler:active {
    background-color: rgba(255, 255, 255, 0.2);
  }
  
  .navbar-toggler .navbar-toggler-icon {
    width: 1.25rem;
    height: 1.25rem;
  }
  
  .navbar-brand {
    font-size: 1.15rem;
  }
}

/* Sidebar Enhancements */
.sidebar {
  width: var(--sidebar-width);
  position: fixed;
  top: var(--header-height);
  bottom: 0;
  left: 0;
  z-index: 1020;
  background-color: white;
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, width 0.3s ease, background-color 0.3s ease;
  overflow-y: auto;
}

/* Sidebar Overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1010;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Responsive Adjustments for mobile sidebar */
@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(-100%);
    width: min(80%, var(--sidebar-width));
    z-index: 1050;
  }
  
  .sidebar.show {
    transform: translateX(0);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  }
  
  .sidebar-overlay.show {
    display: block;
    opacity: 1;
  }
  
  body.sidebar-open {
    overflow: hidden;
  }
  
  .navbar-toggler.sidebar-toggler {
    display: block;
    position: relative;
    z-index: 1040;
  }
  
  .content {
    margin-left: 0;
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Minimized sidebar state */
.sidebar.minimized {
  width: 60px;
  background-color: #f8fafc;
  box-shadow: 1px 0 8px rgba(0, 0, 0, 0.08);
}

/* Sidebar item hover indicator */
.sidebar.minimized::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 3px;
  height: 0;
  background-color: var(--swish-primary);
  transition: height 0.3s ease;
  opacity: 0;
}

.sidebar.minimized:hover::after {
  height: 100%;
  opacity: 1;
}

.sidebar.minimized .nav-link {
  padding: 0.75rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0.5rem auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
}

.sidebar.minimized .nav-link i {
  margin-right: 0 !important;
  margin-bottom: 0;
  font-size: 1.25rem;
}

.sidebar.minimized .nav-link span {
  display: none;
}

.sidebar.minimized .nav-link:hover {
  transform: scale(1.1);
  background-color: rgba(0, 122, 201, 0.1);
}

.sidebar.minimized .nav-link.active {
  background: var(--swish-primary);
  transform: scale(1.1);
}

.sidebar.minimized .sidebar-minimize-btn i {
  transform: rotate(180deg);
}

.sidebar.minimized .nav-item.mt-4 {
  margin-top: 2rem !important;
}

/* Tooltip enhancement for minimized sidebar */
.sidebar.minimized .tooltip .tooltip-inner {
  background-color: var(--swish-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  font-weight: 500;
  padding: 0.5rem 0.75rem;
}

.sidebar.minimized .tooltip .tooltip-arrow::before {
  border-right-color: var(--swish-primary);
}

.sidebar-minimize {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background-color: rgba(255, 255, 255, 0.95);
  position: sticky;
  top: 0;
  z-index: 1;
}

.sidebar-minimize-btn {
  color: var(--swish-primary);
  background-color: #f0f8ff;
  border: 1px solid rgba(0, 122, 201, 0.2);
  cursor: pointer;
  transition: var(--swish-transition);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.sidebar-minimize-btn:hover {
  background-color: var(--swish-primary);
  color: white;
  transform: scale(1.1);
}

.sidebar-minimize-btn i {
  transition: var(--swish-transition);
  font-size: 0.85rem;
}

/* Sidebar header for mobile */
.sidebar-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background-color: rgba(255, 255, 255, 0.95);
  position: sticky;
  top: 0;
  z-index: 1;
}

.sidebar-close {
  cursor: pointer;
  opacity: 0.6;
  transition: var(--swish-transition);
}

.sidebar-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

.sidebar .nav-link {
  font-weight: 500;
  color: var(--swish-dark);
  border-radius: var(--swish-border-radius);
  padding: 0.75rem 1.25rem;
  margin: 0.25rem 0.75rem;
  transition: var(--swish-transition);
}

.sidebar .nav-link:hover {
  background-color: rgba(0, 122, 201, 0.1);
  color: var(--swish-primary);
  transform: translateX(5px);
}

.sidebar .nav-link.active {
  background: linear-gradient(to right, var(--swish-primary), var(--swish-accent));
  color: white;
  box-shadow: 0 4px 8px rgba(0, 122, 201, 0.2);
}

.sidebar .nav-link i {
  margin-right: 0.75rem;
  font-size: 1.1rem;
  width: 1.5rem;
  text-align: center;
}

/* Form Controls */
.form-control {
  border-radius: var(--swish-border-radius);
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: var(--swish-transition);
}

.form-control:focus {
  border-color: var(--swish-primary);
  box-shadow: 0 0 0 0.25rem rgba(0, 122, 201, 0.25);
}

.form-select {
  border-radius: var(--swish-border-radius);
  padding: 0.75rem 1rem;
  background-position: right 1rem center;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: var(--swish-transition);
}

.form-select:focus {
  border-color: var(--swish-primary);
  box-shadow: 0 0 0 0.25rem rgba(0, 122, 201, 0.25);
}

/* Table Improvements */
.table {
  border-collapse: separate;
  border-spacing: 0;
}

.table th {
  font-weight: 600;
  background-color: rgba(0, 0, 0, 0.03);
}

.table td, .table th {
  padding: 1rem;
  vertical-align: middle;
}

.table-hover tbody tr {
  transition: var(--swish-transition);
}

.table-hover tbody tr:hover {
  background-color: rgba(0, 122, 201, 0.05);
}

/* Badge Enhancements */
.badge {
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--swish-border-radius);
}

.bg-success {
  background-color: var(--swish-success) !important;
}

.bg-warning {
  background-color: var(--swish-warning) !important;
}

.bg-danger {
  background-color: var(--swish-danger) !important;
}

/* Alerts */
.alert {
  border-radius: var(--swish-border-radius);
  border: none;
  padding: 1rem 1.25rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Stats Cards */
.stats-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 122, 201, 0.1);
  color: var(--swish-primary);
}

/* Animations */
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Toast customization */
.toast-container {
  z-index: 1100;
}

.toast {
  border-radius: var(--swish-border-radius);
  box-shadow: var(--swish-box-shadow);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(-100%);
    width: min(80%, var(--sidebar-width));
  }
  
  .sidebar.show {
    transform: translateX(0);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  }
  
  .sidebar-overlay.show {
    display: block;
    opacity: 1;
  }
  
  .content {
    margin-left: 0;
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Hover effects for action buttons */
.btn-sm {
  transition: var(--swish-transition);
}

.btn-sm:hover {
  transform: scale(1.1);
}

/* Loading Spinner */
.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner-border.text-primary {
  color: var(--swish-primary) !important;
  width: 3rem;
  height: 3rem;
}

/* Custom Progress Bar */
.progress {
  height: 0.8rem;
  border-radius: 0.4rem;
  background-color: rgba(0, 122, 201, 0.1);
}

.progress-bar {
  background: linear-gradient(to right, var(--swish-primary), var(--swish-accent));
  border-radius: 0.4rem;
}

/* Dropdown Enhancements */
.dropdown-menu {
  border-radius: var(--swish-border-radius);
  border: none;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item {
  padding: 0.5rem 1.5rem;
  transition: var(--swish-transition);
}

.dropdown-item:hover {
  background-color: rgba(0, 122, 201, 0.1);
  color: var(--swish-primary);
}

.dropdown-item-text {
  padding: 0.5rem 1.5rem;
  color: var(--swish-gray);
  font-weight: 500;
}

/* Container padding */
.container-fluid {
  padding: 1.5rem;
}

/* Client selection styling */
.client-select-container {
  margin-bottom: 1.5rem;
}

.client-selection {
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--swish-border-radius);
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: var(--swish-transition);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.client-selection:hover {
  border-color: var(--swish-primary);
  box-shadow: 0 2px 8px rgba(0, 122, 201, 0.15);
}

.client-selection.selected {
  background-color: white;
  border-color: var(--swish-primary);
  box-shadow: 0 0 0 1px var(--swish-primary);
}

.client-selection .client-info {
  display: flex;
  flex-direction: column;
}

.client-selection .client-name {
  font-weight: 600;
  color: var(--swish-dark);
}

.client-selection .client-id {
  font-size: 0.85rem;
  color: var(--swish-gray);
}

.client-selection .check-icon {
  margin-right: 0.75rem;
  color: var(--swish-primary);
}

.client-selection-dropdown {
  position: relative;
}

.client-selection-dropdown .dropdown-menu {
  width: 100%;
  padding: 0.5rem 0;
  max-height: 300px;
  overflow-y: auto;
}

.client-selection-dropdown .dropdown-item {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
}

.client-selection-dropdown .dropdown-item:hover {
  background-color: rgba(0, 122, 201, 0.08);
}

.client-selection-dropdown .dropdown-item.active {
  background-color: rgba(0, 122, 201, 0.12);
  color: var(--swish-primary);
}

.client-selection-dropdown .client-name {
  font-weight: 500;
}

.client-selection-dropdown .client-id {
  font-size: 0.85rem;
  color: var(--swish-gray);
  margin-left: auto;
}

/* Client select responsive styles */
@media (max-width: 767.98px) {
  .client-selection {
    padding: 0.75rem;
  }
  
  .client-selection .client-info {
    width: 100%;
  }
  
  .client-selection-dropdown .dropdown-menu {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 50vh;
    border-radius: 1rem 1rem 0 0;
    border-top: 3px solid var(--swish-primary);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.15);
    padding-top: 1rem;
    z-index: 1050;
  }
}

/* Mobile Enhancements */
@media (max-width: 767.98px) {
  .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  /* Card enhancements */
  .card {
    margin-bottom: 1rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  }
  
  .card-body {
    padding: 1.25rem !important;
  }
  
  /* Filter section improvements */
  .filter-section {
    padding: 1.25rem;
    background: linear-gradient(to bottom, #fcfcfc, #f5f8fc);
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.25rem;
  }
  
  /* Search box improvements */
  .input-group {
    margin-bottom: 1rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
  }
  
  .input-group-text {
    border: none;
    background: white;
    padding-left: 1rem;
  }
  
  .form-control, .form-select {
    height: 3.25rem;
    font-size: 1rem;
    border: none;
    box-shadow: none !important;
    padding: 0.75rem 1rem;
  }
  
  .form-control:focus, .form-select:focus {
    border: none;
    box-shadow: none;
    background-color: #f8fcff;
  }
  
  /* Improved date picker */
  input[type="date"] {
    background-color: white;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    height: 3.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: none;
  }
  
  /* Filter title styling */
  .filter-title {
    display: flex;
    align-items: center;
    font-weight: 600;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
  }
  
  .filter-title i {
    margin-right: 0.5rem;
    color: #717171;
  }
  
  /* Toggle filters button */
  .btn-toggle-filters {
    width: 100%;
    border-radius: 0.75rem;
    height: 3.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    background-color: #f0f8ff;
    color: var(--swish-primary);
    border: 1px solid rgba(0, 122, 201, 0.2);
    box-shadow: 0 2px 6px rgba(0, 122, 201, 0.1);
  }
  
  .btn-toggle-filters:active {
    background-color: #e5f2ff;
    transform: scale(0.98);
  }
  
  .btn-toggle-filters i {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
  }
  
  /* Reset button */
  .btn-reset {
    width: 100%;
    border-radius: 0.75rem;
    height: 3.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    background-color: #f7f7f7;
    color: #666;
    border: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .btn-reset:active {
    background-color: #f0f0f0;
    transform: scale(0.98);
  }
  
  .btn-reset i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
  }
  
  /* Table enhancements */
  .table-container {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    background: white;
    margin: 0 -0.75rem;
    width: calc(100% + 1.5rem);
  }
  
  .table thead th {
    background: #f8f9fa;
    padding: 1rem;
    font-weight: 600;
    color: #505050;
    font-size: 0.95rem;
    border-bottom: 2px solid #eee;
    white-space: nowrap;
  }
  
  .table tbody td {
    padding: 1rem;
    border-bottom: 1px solid #f2f2f2;
    vertical-align: middle;
  }
  
  /* Reference ID styling */
  .reference-id {
    font-size: 0.9rem;
    color: #505050;
    font-weight: 500;
    font-family: monospace;
    letter-spacing: -0.5px;
  }
  
  /* Recipient styling with user icon */
  .recipient {
    display: flex;
    align-items: center;
  }
  
  .recipient-icon {
    background: rgba(0, 122, 201, 0.1);
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    color: var(--swish-primary);
  }
  
  .recipient-number {
    font-weight: 500;
    color: #505050;
  }
  
  /* Empty state styling */
  .empty-state {
    padding: 2rem 1rem;
    text-align: center;
    color: #767676;
  }
  
  .empty-state-icon {
    font-size: 2.5rem;
    color: #d0d0d0;
    margin-bottom: 1rem;
  }
  
  /* Enhanced animation for better perceived performance */
  .fade-in {
    animation: fadeInUp 0.4s ease-out;
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Loading states */
  .btn-loading {
    position: relative;
    color: transparent !important;
  }
  
  .btn-loading::after {
    content: "";
    position: absolute;
    width: 1rem;
    height: 1rem;
    top: calc(50% - 0.5rem);
    left: calc(50% - 0.5rem);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
  }
  
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
}

/* Increase tap targets on mobile */
@media (max-width: 767.98px) {
  .nav-link, .navbar-toggler, .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
  }
  
  /* SSN field enhancements */
  #id_ssn {
    letter-spacing: 0.5px;
    font-size: 1.1rem;
  }
  
  /* Create payout page specific improvements */
  .back-button {
    padding: 0.625rem 1rem !important;
    border-radius: 0.5rem !important;
    font-size: 0.9rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Improved alerts on mobile */
  .alert {
    border-radius: 0.75rem;
    padding: 1rem;
  }
  
  .alert-info {
    background-color: #f0f9ff;
    border-color: #d0e7ff;
  }
  
  /* Fix mobile header layout */
  .d-flex.justify-content-between.align-items-center.mb-4 {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem;
  }
  
  .d-flex.justify-content-between.align-items-center.mb-4 .btn {
    align-self: stretch;
  }
}

/* Enhance form controls for mobile specifically */
@media (max-width: 575.98px) {
  .container-fluid {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
  
  .card {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    border-radius: 1rem 1rem 0 0;
    width: calc(100% + 1.5rem);
  }
  
  .card-header {
    padding: 1.25rem;
    border-radius: 1rem 1rem 0 0 !important;
  }
  
  /* Better layout for very small screens */
  .row {
    flex-direction: column;
  }
  
  .col-md-6 {
    width: 100%;
  }
  
  /* Improve button visual hierarchy */
  .btn-swish {
    font-size: 1.1rem;
    padding: 0.875rem 1.5rem;
  }
}

/* Make the header and back button more mobile-friendly */
@media (max-width: 767.98px) {
  .back-to-payments {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
  }
  
  .back-to-payments i {
    font-size: 0.8rem;
  }
  
  .page-title {
    width: 100%;
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
}

/* Touch-friendly form adjustments */
.form-control:focus, .form-select:focus, .btn:focus {
  box-shadow: 0 0 0 3px rgba(0, 122, 201, 0.25);
}

/* Touch-friendly form enhancements */
.mobile-view .form-control,
.mobile-view .form-select,
.mobile-view .btn {
  -webkit-tap-highlight-color: rgba(0, 122, 201, 0.1);
}

.mobile-view .form-control:focus,
.mobile-view .form-select:focus {
  background-color: #f8fcff;
  border-color: var(--swish-primary);
}

.mobile-view .mobile-focused {
  transform: scale(1.02);
  box-shadow: 0 0 0 3px rgba(0, 122, 201, 0.25);
}

.mobile-view .form-control.has-content,
.mobile-view .form-select.has-content {
  border-color: #8bc9f5;
  background-color: #f0f8ff;
}

.mobile-view .touch-friendly {
  transform: scale(1.02);
  transition: transform 0.2s ease;
}

.mobile-view .touch-friendly:active {
  transform: scale(0.98);
}

/* Loading state for inputs */
.form-control.loading {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23007AC9' d='M12,4V2A10,10 0 0,0 2,12H4A8,8 0 0,1 12,4Z'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='1s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
}

/* Visual feedback for valid selection */
.form-control.is-valid {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%230A8754' d='M9,16.17L4.83,12l-1.42,1.41L9,19 21,7l-1.41-1.41L9,16.17z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  border-color: var(--swish-success) !important;
  animation: highlight-success 1s ease;
}

@keyframes highlight-success {
  0% { background-color: rgba(10, 135, 84, 0.1); }
  100% { background-color: transparent; }
}

/* Enhanced mobile form alerts */
@media (max-width: 767.98px) {
  .alert-info {
    border-left: 4px solid var(--swish-primary);
  }
  
  .alert-danger {
    border-left: 4px solid var(--swish-danger);
  }
  
  .alert-success {
    border-left: 4px solid var(--swish-success);
  }
  
  .alert-warning {
    border-left: 4px solid var(--swish-warning);
  }
  
  /* Improved buttons */
  .btn-clicked {
    transform: scale(0.96);
  }
  
  /* Enhance dropdown in small screens */
  .dropdown-menu {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-radius: 0.75rem;
  }
}

/* Form validation improvements for mobile */
@media (max-width: 767.98px) {
  .was-validated .form-control:invalid,
  .form-control.is-invalid {
    background-position: right 12px center;
    background-size: 18px;
    border-width: 2px;
  }
  
  .was-validated .form-control:valid,
  .form-control.is-valid {
    background-position: right 12px center;
    background-size: 18px;
    border-width: 2px;
  }
  
  .invalid-feedback {
    font-weight: 500;
    padding: 0.35rem 0.5rem;
  }
}

/* Adjusted content to make room for sidebar */
@media (min-width: 992px) {
  .content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    transition: var(--swish-transition);
  }
  
  .sidebar.minimized + .sidebar-overlay + .content {
    margin-left: 60px;
    width: calc(100% - 60px);
  }
} 