/* Auto-Suni Brand Colors */
:root {
  --brand-red: #E8283B;
  --brand-red-dark: #c21e30;
  --brand-red-darker: #a11827;
  --brand-black: #1a1a1a;
  --brand-gray-dark: #2d2d2d;
  --brand-gray: #6c757d;
  --brand-gray-light: #f8f9fa;
  
  --bs-primary: #E8283B;
  --bs-primary-rgb: 232, 40, 59;
  --bs-primary-text: #ffffff;
  --bs-dark: #1a1a1a;
}

/* Typography improvements */
body {
  color: #2d3748;
  line-height: 1.6;
  font-size: 0.95rem;
}

p {
  margin-bottom: 1rem;
}

.text-muted {
  color: #6c757d !important;
}

small, .small {
  font-size: 0.875rem;
}

/* Buttons */
.btn {
  font-weight: 500;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.85rem;
  border-radius: 0.4rem;
}

.btn i {
  margin-right: 0.35rem;
}

.btn i:last-child {
  margin-right: 0;
  margin-left: 0.35rem;
}

.btn-primary {
  background-color: var(--bs-primary) !important;
  border-color: rgba(var(--bs-primary-rgb), 1) !important;
  color: var(--bs-primary-text) !important;
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--brand-red-dark) !important;
  border-color: var(--brand-red-darker) !important;
  color: var(--bs-primary-text) !important;
}

/* Action bar specific buttons - black and white */
.btn-action-bar {
  background-color: var(--brand-black) !important;
  border-color: var(--brand-black) !important;
  color: white !important;
  border-radius: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-action-bar:hover, .btn-action-bar:focus {
  background-color: var(--brand-gray-dark) !important;
  border-color: var(--brand-gray-dark) !important;
  color: white !important;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-action-bar i {
  color: var(--brand-red);
}

/* Outline primary */
.btn-outline-primary {
  color: var(--bs-primary) !important;
  border-color: rgba(var(--bs-primary-rgb), 0.85) !important;
}
.btn-outline-primary:hover {
  background-color: rgba(var(--bs-primary-rgb), 0.08) !important;
}

/* Subtle outline buttons for secondary actions */
.btn-outline-dark {
  color: var(--brand-black);
  border-color: #dee2e6;
  transition: all 0.2s ease;
}
.btn-outline-dark:hover {
  background-color: var(--brand-black);
  border-color: var(--brand-black);
  color: white;
}

/* Form controls - clean and modern */
.form-control, .form-select {
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 0.625rem 0.875rem;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
  box-shadow: 0 0 0 0.15rem rgba(var(--bs-primary-rgb), 0.15);
  border-color: var(--bs-primary);
  outline: none;
}

.form-label {
  font-weight: 500;
  color: var(--brand-black);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* Links - subtle black to red */
a {
  color: var(--brand-black);
  transition: color 0.2s ease;
  text-decoration: none;
}
a:hover {
  color: var(--bs-primary);
  text-decoration: none;
}

/* Navbar links - white with subtle hover */
.navbar .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  transition: all 0.2s ease;
  font-weight: 500;
}
.navbar .nav-link:hover {
  color: white !important;
}

/* Heading accents - black with red icons */
h1, h2, h3, h4, h5, h6 {
  color: var(--brand-black) !important;
  font-weight: 600;
  line-height: 1.3;
}

.card-header h5 {
  color: var(--brand-black) !important;
  font-size: 1rem;
}

.card-header h5 i,
h1 i, h2 i, h3 i, h4 i, h5 i, h6 i {
  color: var(--brand-red) !important;
}

/* Modern table styling */
.table {
  font-size: 0.9rem;
}

.table thead th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  color: var(--brand-gray);
  border-bottom: 2px solid #e9ecef;
}

.table tbody tr {
  transition: background-color 0.15s ease;
}

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

.table td {
  vertical-align: middle;
  padding: 0.875rem 0.75rem;
}

/* Card styling improvements */
.card {
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid #e9ecef;
}

.card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  padding: 1rem 1.25rem;
}

.card-body {
  padding: 1.5rem;
}

/* Badge styling */
.badge {
  font-weight: 500;
  padding: 0.4em 0.7em;
  border-radius: 0.4rem;
  font-size: 0.8rem;
}

/* Alert styling */
.alert {
  border-radius: 0.75rem;
  border: none;
  padding: 1rem 1.25rem;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
}

/* Shadow utilities */
.shadow-sm {
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.05) !important;
}

.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.08) !important;
}

/* Form controls focus ring use primary */
.form-control:focus, .form-select:focus {
  box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
  border-color: rgba(var(--bs-primary-rgb), 1);
}

/* Modern action bar styling - black/white with red accents */
.action-bar {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: white;
}

.action-bar .btn {
  background: var(--brand-black);
  border: 1px solid var(--brand-black);
  border-radius: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  color: white;
}

.action-bar .btn i {
  color: var(--brand-red);
  transition: transform 0.3s ease;
}

.action-bar .btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.action-bar .btn:hover::before {
  width: 200px;
  height: 200px;
}

.action-bar .btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  background: var(--brand-gray-dark);
}

.action-bar .btn:hover i {
  transform: scale(1.1);
}

.action-bar .btn:active {
  transform: translateY(-2px);
}

/* Dropdown menu styling - clean with red accents */
.action-bar .dropdown-menu {
  border-radius: 1rem;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  border: 1px solid #e5e5e5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.action-bar .dropdown-item {
  border-radius: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
  color: var(--brand-black);
}

.action-bar .dropdown-item i {
  color: var(--brand-red);
}

.action-bar .dropdown-item:hover {
  background-color: rgba(var(--bs-primary-rgb), 0.05);
  transform: translateX(4px);
  color: var(--brand-red);
}
  transform: translateX(4px);
  color: var(--brand-red);
}

.action-bar .dropdown-toggle::after {
  margin-left: 0;
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.7rem;
}

/* Modern submit button styling */
#submit-btn {
  border-radius: 0.5rem;
  padding: 0.75rem 2rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  background: var(--brand-red);
  border: none;
  box-shadow: 0 2px 8px rgba(232, 40, 59, 0.25);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#submit-btn i { 
  opacity: 1;
  margin-right: 0.5rem;
}

#submit-btn:hover:not(:disabled) {
  background: #d91d37;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 40, 59, 0.35);
}

#submit-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(232, 40, 59, 0.3);
}

#submit-btn:disabled {
  opacity: 0.6;
  transform: none;
  box-shadow: none;
  cursor: not-allowed;
}

/* ========================================
   MODERN BOTTOM NAVIGATION
   ======================================== */

.modern-bottom-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 1040;
}

.nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    position: relative;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1rem;
    min-width: 60px;
    position: relative;
}

.nav-item i {
    font-size: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-label {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.nav-item:hover {
    color: var(--brand-black);
    background: rgba(0, 0, 0, 0.03);
    transform: translateY(-2px);
}

.nav-item:hover i {
    transform: scale(1.1);
}

.nav-item:hover .nav-label {
    opacity: 1;
}

.nav-item:active {
    transform: translateY(0);
}

/* Floating Action Button */
.fab-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-red) 0%, #d91d37 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(232, 40, 59, 0.4), 
                0 2px 4px rgba(0, 0, 0, 0.1);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -28px;
}

.fab-icon,
.fab-close {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.fab-close {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-90deg);
}

.fab.active .fab-icon {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg);
}

.fab.active .fab-close {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
}

.fab:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(232, 40, 59, 0.5), 
                0 4px 8px rgba(0, 0, 0, 0.15);
}

.fab:active {
    transform: translateY(-1px) scale(0.98);
}

/* FAB Menu */
.fab-menu {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.fab-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
    pointer-events: all;
}

.fab-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    background: white;
    border-radius: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1),
                0 2px 4px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: var(--brand-black);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    min-width: 200px;
}

.fab-menu-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12),
                0 3px 6px rgba(0, 0, 0, 0.08);
    background: #fafafa;
}

.fab-menu-label {
    font-weight: 500;
    font-size: 0.95rem;
    flex: 1;
}

.fab-menu-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-red) 0%, #d91d37 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.95rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .nav-container {
        padding: 0.25rem 0.5rem;
    }
    
    .nav-item {
        min-width: 50px;
        padding: 0.4rem 0.5rem;
    }
    
    .nav-item i {
        font-size: 1.1rem;
    }
    
    .nav-label {
        font-size: 0.6rem;
    }
    
    .fab {
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
        margin-top: -26px;
    }
    
    .fab-menu-item {
        min-width: 180px;
        padding: 0.65rem 1rem;
    }
}

/* Add bottom padding to main content to account for nav */
body {
    padding-bottom: 75px;
}
