/* Modern Cashback Theme - Light & Clean */
:root {
  /* Light color palette */
  --primary-color: #ee4d2d;
  --primary-hover: #d73211;
  --secondary-color: #ff6533;
  --success-color: #00bfa5;
  --warning-color: #ffa726;
  --danger-color: #ef5350;
  --info-color: #29b6f6;

  /* Background colors - Lighter */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #e9ecef;
  --bg-light: #fafbfc;

  /* Text colors */
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --text-light: #adb5bd;
  --text-white: #ffffff;

  /* Border & Shadow */
  --border-color: #e0e0e0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 50%;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #ee4d2d 0%, #ff6533 100%);
  --gradient-success: linear-gradient(135deg, #00bfa5 0%, #00e676 100%);
  --gradient-cashback: linear-gradient(135deg, #00bfa5 0%, #1de9b6 100%);
  --gradient-light: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

/* Global Styles */
body {
  background-color: var(--bg-light);
  color: var(--text-primary);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

/* Modern Card Design */
.modern-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.modern-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Navbar Improvements */
.osahan-main-nav {
  background: var(--bg-primary);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-color);
}

.navbar {
  padding: 12px 0 !important;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 40px !important;
  width: 40px !important;
  object-fit: contain;
}

.text-logo {
  font-size: 18px !important;
  font-weight: 700;
  margin-left: 10px;
}

/* Clean Menu Bar */
.menu-bar {
  background: var(--bg-primary) !important;
  border-top: 1px solid var(--border-color);
  padding: 8px 0;
}

.menu-bar .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  padding: 8px 16px !important;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.menu-bar .nav-link:hover,
.menu-bar .nav-link.active {
  color: var(--primary-color) !important;
  background: var(--bg-secondary);
}

/* Modern Mobile Navigation */
.mobile-nav-modern {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: 60px;
}

.mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 16px;
}

.mobile-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-primary);
}

.mobile-logo img {
  height: 32px;
  width: 32px;
  object-fit: contain;
  margin-right: 10px;
}

.mobile-logo span {
  font-weight: 700;
  font-size: 18px;
  color: var(--primary-color);
}

.mobile-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-user-btn,
.mobile-login-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.mobile-user-btn img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.mobile-user-btn:hover,
.mobile-login-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.05);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu Sidebar */
.mobile-menu-sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100%;
  background: white;
  z-index: 1050;
  transition: left 0.3s ease;
  overflow-y: auto;
}

.mobile-menu-sidebar.active {
  left: 0;
  display: flex;
  flex-direction: column;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border-color);
}

.mobile-menu-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.close-menu {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-menu:hover {
  background: var(--primary-color);
  color: white;
}

.mobile-menu-content {
  padding: 10px 15px;
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: all 0.3s ease;
}

.mobile-menu-item:hover {
  background: var(--bg-secondary);
  color: var(--primary-color);
  transform: translateX(5px);
}

.mobile-menu-item i {
  font-size: 20px;
  margin-right: 12px;
  width: 24px;
  text-align: center;
}

.mobile-menu-divider {
  height: 1px;
  background: var(--border-color);
  margin: 16px 0;
}

/* Mobile Search Section Improvements */
@media (max-width: 768px) {
  .search-section {
    padding: 30px 15px !important;
    margin: 0 -15px !important;
    border-radius: 0 !important;
  }

  .search-section h2 {
    font-size: 22px !important;
    line-height: 1.3;
  }

  .search-section p {
    font-size: 14px !important;
    margin-bottom: 20px !important;
  }

  .search-section .input-group {
    flex-direction: row !important;
  }

  .search-section .form-control {
    height: 48px !important;
    font-size: 16px !important;
    border-radius: var(--radius-xl) 0 0 var(--radius-xl) !important;
    border-right: none !important;
    padding: 0 20px !important;
  }

  .search-section .button-search {
    height: 48px !important;
    padding: 0 24px !important;
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0 !important;
    font-size: 16px !important;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .search-section .button-search i {
    font-size: 18px;
  }

  .cashback-badge {
    font-size: 14px !important;
    padding: 10px 20px !important;
  }
}

/* Extra small devices */
@media (max-width: 576px) {
  .search-section .button-search {
    padding: 0 20px !important;
  }

  .search-section .button-search span {
    display: none;
  }

  .search-section .button-search i {
    margin: 0 !important;
  }
}

/* Search Section */
.search-section {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 40px 20px;
  margin: 20px 0;
  box-shadow: var(--shadow-sm);
}

.search-section h2 {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 28px;
}

.search-section .form-control {
  height: 50px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  padding: 0 20px;
  font-size: 16px;
}

.search-section .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(238, 77, 45, 0.1);
}

.search-section .button-search {
  height: 50px;
  padding: 0 30px;
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  background: var(--gradient-primary);
  border: none;
  color: white;
  font-weight: 600;
}

/* Info Cards */
.info-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.info-card .icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--primary-color);
}

/* Category Cards */
.category-card {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.category-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 12px;
}

/* Floating Action Buttons */
.floating-actions {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fab {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  position: relative;
  font-size: 24px;
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
  color: white;
}

.fab-primary {
  background: var(--gradient-primary);
}

.fab-support {
  background: linear-gradient(135deg, #29b6f6 0%, #0288d1 100%);
}

.fab-cashback {
  background: var(--gradient-cashback);
}

.fab-label {
  position: absolute;
  right: 70px;
  background: var(--text-primary);
  color: white;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.fab:hover .fab-label {
  opacity: 1;
}

/* Badges */
.cashback-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gradient-cashback);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}

/* Buttons */
.btn {
  border-radius: var(--radius-xl);
  padding: 10px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-primary {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: white;
}

/* Animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-in {
  animation: slideIn 0.6s ease-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Mobile Navbar */
  .osahan-main-nav {
    display: none !important;
  }

  .mobile-nav {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: var(--bg-primary) !important;
  }

  .osahan-main-body {
    margin-top: 75px;
  }

  /* Mobile Search */
  .search-section {
    padding: 20px 15px;
    margin: 10px -15px;
    border-radius: 0;
  }

  .search-section h2 {
    font-size: 20px;
  }

  .search-section p {
    font-size: 14px;
  }

  .search-section .form-control,
  .search-section .button-search {
    height: 44px;
    font-size: 14px;
  }

  .search-section .button-search {
    padding: 0 20px;
  }

  /* Mobile Cards */
  .info-card {
    padding: 20px;
    margin-bottom: 15px;
  }

  .info-card .icon-wrapper {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }

  .category-card {
    padding: 15px;
    margin-bottom: 10px;
  }

  .category-card img {
    width: 40px;
    height: 40px;
  }

  /* Mobile FABs */
  .floating-actions {
    bottom: 70px;
    right: 15px;
  }

  .fab {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .fab-label {
    display: none;
  }

  /* Mobile Typography */
  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }

  h3 {
    font-size: 18px;
  }

  h4 {
    font-size: 16px;
  }

  h5 {
    font-size: 14px;
  }

  /* Mobile Spacing */
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .modern-card {
    padding: 16px;
    margin-bottom: 15px;
  }
}

@media (max-width: 576px) {
  /* Extra small devices */
  .search-section .input-group {
    flex-direction: column;
  }

  .search-section .form-control {
    border-radius: var(--radius-xl);
    margin-bottom: 10px;
  }

  .search-section .button-search {
    border-radius: var(--radius-xl);
    width: 100%;
  }

  .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Utility Classes */
.text-primary {
  color: var(--primary-color) !important;
}

.text-secondary {
  color: var(--text-secondary) !important;
}

.bg-light {
  background-color: var(--bg-light) !important;
}

.bg-white {
  background-color: var(--bg-primary) !important;
}

.border-0 {
  border: none !important;
}

.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

.shadow-md {
  box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}

/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}
