/* stylelint-disable */
html,
body {
  width: 100%;
  height: 100%;
}
input::-ms-clear,
input::-ms-reveal {
  display: none;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  font-family: sans-serif;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -ms-overflow-style: scrollbar;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
body {
  margin: 0;
}
[tabindex='-1']:focus {
  outline: none;
}
hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-weight: 500;
}
p {
  margin-top: 0;
  margin-bottom: 1em;
}
abbr[title],
abbr[data-original-title] {
  -webkit-text-decoration: underline dotted;
  text-decoration: underline;
  text-decoration: underline dotted;
  border-bottom: 0;
  cursor: help;
}
address {
  margin-bottom: 1em;
  font-style: normal;
  line-height: inherit;
}
input[type='text'],
input[type='password'],
input[type='number'],
textarea {
  -webkit-appearance: none;
}
ol,
ul,
dl {
  margin-top: 0;
  margin-bottom: 1em;
}
ol ol,
ul ul,
ol ul,
ul ol {
  margin-bottom: 0;
}
dt {
  font-weight: 500;
}
dd {
  margin-bottom: 0.5em;
  margin-left: 0;
}
blockquote {
  margin: 0 0 1em;
}
dfn {
  font-style: italic;
}
b,
strong {
  font-weight: bolder;
}
small {
  font-size: 80%;
}
sub,
sup {
  position: relative;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
pre,
code,
kbd,
samp {
  font-size: 1em;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
}
pre {
  margin-top: 0;
  margin-bottom: 1em;
  overflow: auto;
}
figure {
  margin: 0 0 1em;
}
img {
  vertical-align: middle;
  border-style: none;
}
a,
area,
button,
[role='button'],
input:not([type='range']),
label,
select,
summary,
textarea {
  touch-action: manipulation;
}
table {
  border-collapse: collapse;
}
caption {
  padding-top: 0.75em;
  padding-bottom: 0.3em;
  text-align: left;
  caption-side: bottom;
}
input,
button,
select,
optgroup,
textarea {
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
}
button,
input {
  overflow: visible;
}
button,
select {
  text-transform: none;
}
button,
html [type='button'],
[type='reset'],
[type='submit'] {
  -webkit-appearance: button;
}
button::-moz-focus-inner,
[type='button']::-moz-focus-inner,
[type='reset']::-moz-focus-inner,
[type='submit']::-moz-focus-inner {
  padding: 0;
  border-style: none;
}
input[type='radio'],
input[type='checkbox'] {
  box-sizing: border-box;
  padding: 0;
}
input[type='date'],
input[type='time'],
input[type='datetime-local'],
input[type='month'] {
  -webkit-appearance: listbox;
}
textarea {
  overflow: auto;
  resize: vertical;
}
fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
legend {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-bottom: 0.5em;
  padding: 0;
  color: inherit;
  font-size: 1.5em;
  line-height: inherit;
  white-space: normal;
}
progress {
  vertical-align: baseline;
}
[type='number']::-webkit-inner-spin-button,
[type='number']::-webkit-outer-spin-button {
  height: auto;
}
[type='search'] {
  outline-offset: -2px;
  -webkit-appearance: none;
}
[type='search']::-webkit-search-cancel-button,
[type='search']::-webkit-search-decoration {
  -webkit-appearance: none;
}
::-webkit-file-upload-button {
  font: inherit;
  -webkit-appearance: button;
}
output {
  display: inline-block;
}
summary {
  display: list-item;
}
template {
  display: none;
}
[hidden] {
  display: none !important;
}
mark {
  padding: 0.2em;
  background-color: #feffe6;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu",
    "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace;
}

/* src/pages/Home.css */

/* Global Styles */
html,
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  font-family: "Arial", sans-serif;
  color: #333;
  line-height: 1.6;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* Main Content Container */
.home-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section Styles */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: #333;
}

.section-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

/* Top Navigation Bar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  padding: 0 24px;
  height: 70px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 999;
}

.nav-left {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.navbar-logo {
  width: 45px;
  height: auto;
  margin-right: 12px;
}

.nav-brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: #333;
}

.nav-center {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-center li a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  transition: color 0.3s;
  position: relative;
}

.nav-center li a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #1677ff;
  transition: width 0.3s;
}

.nav-center li a:hover {
  color: #1677ff;
}

.nav-center li a:hover::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cart-link {
  position: relative;
  display: flex;
}

.cart-icon-nav {
  width: 24px;
  height: 24px;
  fill: #333;
  transition: fill 0.3s;
}

.cart-link:hover .cart-icon-nav {
  fill: #1677ff;
}

.admin-button {
  background-color: #fa8c16;
  color: #fff;
  padding: 8px 16px;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.admin-button:hover {
  background-color: #d46b08;
  transform: translateY(-2px);
}

/* Hero Section with Video Background */
.hero-section {
  position: relative;
  height: 80vh;
  min-height: 600px;
  max-height: 800px;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 30px;
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 40px;
  color: #fff;
  margin-left: 5%;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 30px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-cta {
  background-color: #1677ff;
  color: #fff;
  padding: 16px 30px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(22, 119, 255, 0.3);
}

.hero-cta:hover {
  background-color: #0958d9;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(22, 119, 255, 0.4);
}

/* Video Showcase Section */
.video-showcase-section {
  padding: 80px 0;
  background-color: #f8f9fa;
  border-radius: 12px;
  margin-bottom: 60px;
}

.video-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.video-showcase-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  flex: 1 1 550px;
  min-width: 300px;
  max-width: 100%;
  max-height: 650px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.video-showcase-container .video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 100%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-overlay-content {
  text-align: center;
  color: #fff;
  padding: 20px;
  max-width: 90%;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.video-overlay-content h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: #fff;
}

.video-overlay-content p {
  font-size: 1.1rem;
  color: #fff;
  max-width: 700px;
  margin: 0 auto;
}

.showcase-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 100%;
  max-height: 650px;
}

.video-description {
  flex: 1 1 300px;
  min-width: 300px;
}

.video-description h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: #333;
}

.video-description p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 24px;
  color: #555;
}

.video-cta-button {
  display: inline-block;
  background-color: #2a2a2a;
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.video-cta-button:hover {
  background-color: #000;
  transform: translateY(-2px);
}

/* Features Section */
.features-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 30px;
  gap: 30px;
  margin-bottom: 80px;
}

.feature-card {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e6f7ff;
  border-radius: 50%;
  padding: 15px;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
  fill: #1677ff;
}

.feature-card h3 {
  font-size: I.3rem;
  margin-bottom: 12px;
  color: #333;
}

.feature-card p {
  color: #666;
  line-height: 1.6;
}

/* New Arrivals Section */
.new-arrivals-section {
  padding: 80px 0;
  margin-bottom: 60px;
}

.new-arrivals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: 30px;
  gap: 30px;
  margin-bottom: 40px;
}

.arrival-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.arrival-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.arrival-image-container {
  position: relative;
  padding-bottom: 100%; /* Square aspect ratio */
  overflow: hidden;
  background-color: #f9f9f9;
}

.arrival-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.arrival-card:hover .arrival-image {
  transform: scale(1.05);
}

.arrival-card h3 {
  font-size: 1.1rem;
  margin: 15px 15px 5px;
  color: #333;
}

.arrival-code {
  color: #888;
  font-size: 0.9rem;
  margin: 0 15px;
}

.arrival-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1677ff;
  margin: 10px 15px 15px;
}

.view-all-container {
  text-align: center;
}

.view-all-button {
  background-color: transparent;
  color: #1677ff;
  border: 2px solid #1677ff;
  padding: 12px 25px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.view-all-button:hover {
  background-color: #1677ff;
  color: white;
}

/* Testimonials Section */
.testimonials-section {
  padding: 80px 0;
  background-color: #f8f9fa;
  border-radius: 12px;
  margin-bottom: 60px;
}

.testimonials-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.testimonial-card {
  display: flex;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  max-width: 500px;
  flex: 1 1 450px;
}

.testimonial-image {
  flex: 0 0 120px;
  min-width: 120px;
}

.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-content {
  padding: 25px;
  flex: 1 1;
}

.testimonial-content p {
  font-style: italic;
  margin-bottom: 15px;
  color: #555;
  line-height: 1.6;
}

.testimonial-content h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: #333;
}

.testimonial-stars {
  color: #ffb400;
  font-size: 1.1rem;
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
  margin-bottom: 60px;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #eee;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: #333;
}

.faq-item p {
  color: #666;
  line-height: 1.7;
}

.faq-item a {
  color: #1677ff;
  text-decoration: none;
  font-weight: 500;
}

.faq-item a:hover {
  text-decoration: underline;
}

/* About Us Section */
.about-section {
  padding: 80px 0;
  margin-bottom: 60px;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.about-image {
  flex: 1 1 400px;
  min-width: 300px;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.about-text {
  flex: 1 1 500px;
}

.about-text p {
  margin-bottom: 20px;
  color: #555;
  line-height: 1.7;
  font-size: 1.05rem;
}

/* Footer */
.home-footer {
  background-color: #222222;
  color: #fff;
  padding: 60px 0 20px;
  margin-top: 80px;
  border-radius: 12px 12px 0 0;
  position: relative;
  overflow: hidden;
}

.home-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #1677ff, #fa8c16, #1677ff);
  z-index: 1;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.footer-logo {
  width: 180px;
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 50px;
  margin-bottom: 30px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px;
}

.footer-logo:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.footer-logo-img {
  width: 80%;
  height: auto;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.footer-logo:hover .footer-logo-img {
  transform: scale(1.05);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  flex: 1 1;
}

.footer-column {
  min-width: 150px;
}

.footer-column h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #fff;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: #1677ff;
  transition: width 0.3s ease;
}

.footer-column:hover h3::after {
  width: 60px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s, transform 0.3s;
  display: inline-block;
  position: relative;
  padding-left: 0;
}

.footer-column ul li a:hover {
  color: #fff;
  transform: translateX(5px);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #555;
  border-radius: 50%;
  transition: all 0.3s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  position: relative;
}

.social-icons a:hover {
  background-color: #777;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Fix for the Instagram icon alignment */
.social-icons svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 20px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  position: relative;
  z-index: 2;
}

.footer-bottom p {
  color: #999;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-bottom:hover p {
  color: #ccc;
}

/* Batman Button (Admin access) */
.admin-button-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  animation: fadeIn 0.5s ease;
}

button.batman {
  border: none;
  position: relative;
  width: 200px;
  height: 73px;
  padding: 0;
  z-index: 2;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 height=%27868%27 width=%272500%27 viewBox=%270 0 726 252.17%27%3E%3Cpath d=%27M483.92 0S481.38 24.71 466 40.11c-11.74 11.74-24.09 12.66-40.26 15.07-9.42 1.41-29.7 3.77-34.81-.79-2.37-2.11-3-21-3.22-27.62-.21-6.92-1.36-16.52-2.82-18-.75 3.06-2.49 11.53-3.09 13.61S378.49 34.3 378 36a85.13 85.13 0 0 0-30.09 0c-.46-1.67-3.17-11.48-3.77-13.56s-2.34-10.55-3.09-13.61c-1.45 1.45-2.61 11.05-2.82 18-.21 6.67-.84 25.51-3.22 27.62-5.11 4.56-25.38 2.2-34.8.79-16.16-2.47-28.51-3.39-40.21-15.13C244.57 24.71 242 0 242 0H0s69.52 22.74 97.52 68.59c16.56 27.11 14.14 58.49 9.92 74.73C170 140 221.46 140 273 158.57c69.23 24.93 83.2 76.19 90 93.6 6.77-17.41 20.75-68.67 90-93.6 51.54-18.56 103-18.59 165.56-15.25-4.21-16.24-6.63-47.62 9.93-74.73C656.43 22.74 726 0 726 0z%27/%3E%3C/svg%3E")
    no-repeat 50% 50%;
  mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 height=%27868%27 width=%272500%27 viewBox=%270 0 726 252.17%27%3E%3Cpath d=%27M483.92 0S481.38 24.71 466 40.11c-11.74 11.74-24.09 12.66-40.26 15.07-9.42 1.41-29.7 3.77-34.81-.79-2.37-2.11-3-21-3.22-27.62-.21-6.92-1.36-16.52-2.82-18-.75 3.06-2.49 11.53-3.09 13.61S378.49 34.3 378 36a85.13 85.13 0 0 0-30.09 0c-.46-1.67-3.17-11.48-3.77-13.56s-2.34-10.55-3.09-13.61c-1.45 1.45-2.61 11.05-2.82 18-.21 6.67-.84 25.51-3.22 27.62-5.11 4.56-25.38 2.2-34.8.79-16.16-2.47-28.51-3.39-40.21-15.13C244.57 24.71 242 0 242 0H0s69.52 22.74 97.52 68.59c16.56 27.11 14.14 58.49 9.92 74.73C170 140 221.46 140 273 158.57c69.23 24.93 83.2 76.19 90 93.6 6.77-17.41 20.75-68.67 90-93.6 51.54-18.56 103-18.59 165.56-15.25-4.21-16.24-6.63-47.62 9.93-74.73C656.43 22.74 726 0 726 0z%27/%3E%3C/svg%3E")
    no-repeat 50% 50%;
  -webkit-mask-size: 100%;
  cursor: pointer;
  background-color: transparent;
  transform: translateY(8px);
}

button.batman:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  box-shadow: 0px 0 0 0 white;
  transition: all 2s ease;
}

button.batman:hover:after {
  box-shadow: 0px -13px 56px 12px #ffffffa6;
}

button.batman span {
  position: absolute;
  width: 100%;
  font-size: 15px;
  font-weight: 100;
  left: 50%;
  top: 39%;
  letter-spacing: 3px;
  text-align: center;
  transform: translate(-50%, -50%);
  color: black;
  transition: all 2s ease;
}

button.batman:hover span {
  color: white;
}

button.batman:before {
  content: "";
  position: absolute;
  width: 0;
  height: 100%;
  background-color: black;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: all 1s ease;
}

button.batman:hover:before {
  width: 100%;
}

/* Media Queries */
@media (max-width: 992px) {
  .hero-section {
    height: auto;
    min-height: 500px;
  }

  .hero-content {
    padding: 40px 30px;
    max-width: 90%;
    margin: 0 auto;
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .video-container,
  .about-content {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 16px;
    height: 60px;
  }

  .nav-center {
    display: none;
  }

  .hero-section {
    min-height: 450px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .testimonial-card {
    flex-direction: column;
  }

  .testimonial-image {
    min-width: 100%;
    height: 180px;
  }

  .footer-content {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .footer-logo {
    width: 180px;
    height: 180px;
    margin-right: 0;
    margin-bottom: 30px;
  }

  .footer-links {
    justify-content: center;
    width: 100%;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-cta {
    width: 100%;
  }

  .features-section {
    gap: 15px;
  }

  .feature-card {
    padding: 20px 15px;
  }

  .footer-logo {
    width: 150px;
    height: 150px;
  }
}

.nav-shop-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 18px 6px 12px;
  font-size: 15px;
  font-weight: 600;
  color: #222;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 22px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  transition: background 0.18s, border 0.18s, color 0.18s;
  cursor: pointer;
  margin-left: 8px;
}
.nav-shop-btn:hover {
  background: #f5f5f5;
  border-color: #bdbdbd;
  color: #111;
}

.nav-shop-icon {
  display: flex;
  align-items: center;
  height: 18px;
  width: 18px;
}

.home-footer {
  background-color: #222222;
  color: #fff;
  padding: 40px 0 20px;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

.home-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #1677ff, #fa8c16, #1677ff);
  z-index: 1;
}

.footer-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-content {
  display: flex;
  position: relative;
  z-index: 2;
  align-items: flex-start;
}

.footer-logo {
  width: 120px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 40px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px;
}

.footer-logo:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.footer-logo-img {
  width: 80%;
  height: auto;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.footer-logo:hover .footer-logo-img {
  transform: scale(1.05);
}

.footer-links {
  display: flex;
  gap: 60px;
  flex: 1 1;
}

.footer-column {
  min-width: 120px;
}

.footer-column h3 {
  font-size: 1rem;
  margin-bottom: 15px;
  color: #fff;
  position: relative;
  padding-bottom: 8px;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: #1677ff;
  transition: width 0.3s ease;
}

.footer-column:hover h3::after {
  width: 50px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.footer-column ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s, transform 0.3s;
  display: inline-block;
  position: relative;
  padding-left: 0;
}

.footer-column ul li a:hover {
  color: #fff;
  transform: translateX(5px);
}

.inquiries-text {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #999;
  max-width: 180px;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 5px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: #555;
  border-radius: 50%;
  transition: all 0.3s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  position: relative;
}

.instagram-icon {
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
}

.social-icons a:hover {
  background-color: #777;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.instagram-icon:hover {
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
  opacity: 0.9;
}

.social-icons svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
}

.footer-bottom {
  margin: 30px auto 0;
  padding: 15px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  position: relative;
  z-index: 2;
}

.footer-bottom p {
  color: #999;
  font-size: 0.85rem;
  transition: color 0.3s;
  margin: 0;
}

.footer-bottom:hover p {
  color: #ccc;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .footer-content {
    flex-direction: column;
  }

  .footer-logo {
    margin: 0 auto 30px;
  }

  .footer-links {
    justify-content: space-around;
  }
}

@media (max-width: 768px) {
  .home-footer {
    padding: 40px 20px 20px;
  }

  .footer-content {
    max-width: 1200px;
    flex-direction: column;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .footer-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
  }

  .footer-links {
    gap: 30px;
    flex-wrap: wrap;
    justify-content: space-around;
  }

  .footer-column {
    min-width: 160px;
  }
}

@media (max-width: 480px) {
  .footer-logo {
    width: 100px;
    height: 100px;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
  }

  .footer-column h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .inquiries-text {
    max-width: 100%;
    text-align: center;
  }
}

/* src/pages/Login.css */

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh; /* full viewport height */
  background: linear-gradient(135deg, #ffffff, #f0f0f0);
  padding: 16px;
}

.login-card {
  background-color: #fff;
  max-width: 400px;
  width: 100%;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.login-logo {
  width: 120px;
  height: auto;
  margin-bottom: 16px;
}

.login-title {
  margin-bottom: 16px;
  font-size: 1.8rem;
  color: #333;
}

.login-form {
  width: 100%;
  max-width: 320px;
  margin: 0 auto; /* center the form horizontally */
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.login-error {
  color: red;
  margin-bottom: 12px;
}

.login-input-group {
  margin-bottom: 16px;
  text-align: left;
}

.login-input-group label {
  display: block;
  margin-bottom: 4px;
  font-weight: bold;
  color: #555;
}

.login-input-group input {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: border-color 0.2s;
}

.login-input-group input:focus {
  border-color: #007bff;
  outline: none;
}

.login-button {
  /* Remove width: 100% so it doesn't stretch full width */
  padding: 12px 24px;
  font-size: 16px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
  margin: 16px auto 0 auto; /* auto left and right margins centers the button */
}

.login-button:hover {
  background-color: #0056b3;
}

@media (max-width: 480px) {
  .login-card {
    padding: 16px;
  }
  .login-title {
    font-size: 1.5rem;
  }
}

/* PayPal Test Payment Component Styles */

.paypal-test-payment {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.payment-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 24px 32px;
  border-radius: 20px 20px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.payment-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.close-button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.payment-content {
  padding: 32px;
}

.test-info {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 20px 24px;
  border-radius: 16px;
  margin-bottom: 24px;
  border: 2px solid #e2e8f0;
}

.test-info h3 {
  margin: 0 0 16px 0;
  color: #1e293b;
  font-size: 18px;
  font-weight: 700;
}

.test-info p {
  margin: 8px 0;
  color: #475569;
  font-weight: 500;
}

.test-info strong {
  color: #1e293b;
  font-weight: 700;
}

.payment-section {
  text-align: center;
  margin: 24px 0;
}

.payment-section p {
  color: #64748b;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 24px;
}

/* PayPal button container */
.payment-section > div {
  margin: 20px 0;
}

.payment-result {
  text-align: center;
  padding: 32px 24px;
  border-radius: 16px;
  margin: 24px 0;
}

.payment-result.success {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #bbf7d0;
  color: #166534;
}

.payment-result.error {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 2px solid #fecaca;
  color: #dc2626;
}

.payment-result.cancelled {
  background: linear-gradient(135deg, #fefbeb 0%, #fef3c7 100%);
  border: 2px solid #fde68a;
  color: #d97706;
}

.success-icon,
.error-icon,
.cancelled-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.payment-result h3 {
  margin: 0 0 12px 0;
  font-size: 20px;
  font-weight: 700;
}

.payment-result p {
  margin: 8px 0;
  font-weight: 500;
}

.retry-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 16px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.retry-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}

.loading-spinner {
  border: 4px solid #f1f5f9;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-overlay p {
  color: #64748b;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.payment-footer {
  background: #f8fafc;
  padding: 20px 32px;
  border-radius: 0 0 20px 20px;
  border-top: 1px solid #e2e8f0;
}

.sandbox-notice {
  text-align: center;
}

.sandbox-notice p {
  margin: 4px 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
}

.sandbox-notice strong {
  color: #374151;
  font-weight: 700;
}

/* Responsive design */
@media (max-width: 768px) {
  .paypal-test-payment {
    max-width: 95%;
    margin: 20px auto;
  }

  .payment-header {
    padding: 20px 24px;
  }

  .payment-header h2 {
    font-size: 18px;
  }

  .payment-content {
    padding: 24px 20px;
  }

  .test-info {
    padding: 16px 20px;
  }

  .payment-result {
    padding: 24px 20px;
  }

  .payment-footer {
    padding: 16px 20px;
  }
}

@media (max-width: 480px) {
  .paypal-test-payment {
    max-width: 100%;
    margin: 10px;
    border-radius: 16px;
  }

  .payment-header {
    border-radius: 16px 16px 0 0;
    padding: 16px 20px;
  }

  .payment-header h2 {
    font-size: 16px;
  }

  .close-button {
    width: 28px;
    height: 28px;
    font-size: 18px;
  }

  .payment-content {
    padding: 20px 16px;
  }

  .test-info {
    padding: 16px;
  }

  .test-info h3 {
    font-size: 16px;
  }

  .payment-result {
    padding: 20px 16px;
  }

  .success-icon,
  .error-icon,
  .cancelled-icon {
    font-size: 36px;
  }

  .payment-result h3 {
    font-size: 18px;
  }

  .payment-footer {
    padding: 16px;
    border-radius: 0 0 16px 16px;
  }

  .sandbox-notice p {
    font-size: 13px;
  }
}

.admin-sidebar {
  width: 188px;
  height: 100vh;
  background-color: #fff;
  color: rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  transition: all 0.2s;
  box-shadow: 1px 0 0 0 #f0f0f0;
}

.admin-sidebar.collapsed {
  width: 50px;
}

.sidebar-header {
  height: 64px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  overflow: hidden;
  border-bottom: 1px solid #f0f0f0;
}

.admin-sidebar.collapsed .sidebar-header {
  padding: 0 8px;
  justify-content: center;
}

.logo {
  height: 32px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin-right: 8px;
}

.collapse-trigger {
  padding: 0 8px !important;
  font-size: 16px !important;
  height: 64px !important;
  cursor: pointer;
  transition: color 0.3s;
}

/* Ant Design Menu Overrides */
.sidebar-menu.ant-menu {
  border-right: none !important;
  height: calc(100vh - 64px);
}

.sidebar-menu.ant-menu-inline-collapsed {
  width: 50px;
}

.sidebar-menu .ant-menu-item {
  margin: 0 !important;
  width: 100% !important;
}

.sidebar-menu .ant-menu-item a {
  color: rgba(0, 0, 0, 0.65);
}

.sidebar-menu .ant-menu-item:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.sidebar-menu .ant-menu-item-selected {
  background-color: #e6f7ff !important;
}

.sidebar-menu .ant-menu-item-selected a {
  color: #1890ff;
}

/* Logout item styling */
.logout-item {
  position: absolute !important;
  bottom: 8px;
  left: 0;
  right: 0;
}

.logout-item .ant-menu-title-content a {
  color: #ff4d4f !important;
}

.logout-item:hover {
  background-color: #fff1f0 !important;
}

/* Media Queries */
@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease, width 0.2s;
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-sidebar-container.open .admin-sidebar {
    transform: translateX(0);
  }
}

.admin-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.admin-sidebar-container {
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 1000;
}

.admin-content {
  flex: 1 1;
  margin-left: 188px;
  padding: 24px;
  transition: margin-left 0.2s;
  background-color: #f5f5f5;
  min-height: 100vh;
}

.admin-content.sidebar-collapsed {
  margin-left: 50px;
}

.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  z-index: 99;
  padding: 0 16px;
  align-items: center;
}

.mobile-header h1 {
  margin: 0;
  font-size: 18px;
  color: #333;
}

.mobile-menu-toggle {
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  padding: 0;
  margin-right: 16px;
  cursor: pointer;
  position: relative;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 24px;
  height: 3px;
  background-color: #333;
  position: absolute;
  transition: transform 0.3s;
}

.menu-icon {
  top: 15px;
  left: 4px;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  left: 0;
}

.menu-icon::before {
  top: -8px;
}

.menu-icon::after {
  bottom: -8px;
}

/* Toggle Button for Mobile */
.sidebar-toggle {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 1001;
  width: 32px;
  height: 32px;
  display: none;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: none;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  color: rgba(0, 0, 0, 0.65);
  transition: color 0.3s;
}

.sidebar-toggle:hover {
  color: #1890ff;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .admin-content {
    margin-left: 200px;
  }

  .admin-layout.sidebar-collapsed .admin-content {
    margin-left: 60px;
  }
}

@media (max-width: 768px) {
  .mobile-header {
    display: flex;
  }

  .admin-content {
    margin-left: 0;
    margin-top: 60px;
  }

  .admin-content.sidebar-collapsed {
    margin-left: 0;
  }

  .collapse-button {
    display: none;
  }

  .sidebar-toggle {
    display: flex;
  }

  .admin-sidebar-container {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .admin-sidebar-container.open {
    transform: translateX(0);
  }

  .admin-sidebar-container.open + .admin-content {
    opacity: 0.7;
  }

  .admin-sidebar-container.open .sidebar-toggle {
    left: 240px;
  }

  .admin-layout.sidebar-collapsed .admin-sidebar-container.open .sidebar-toggle {
    left: 68px;
  }
}

/* Animation for sidebar opening */
.admin-sidebar-container {
  transition: transform 0.3s;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 999;
}

@media (max-width: 768px) {
  .mobile-menu-overlay.visible {
    display: block;
  }
}

/* src/pages/Admin.css */
.admin-dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

.admin-header {
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.admin-header h1 {
  margin: 0;
  font-size: 2.5rem;
  color: #333;
}

.header-actions {
  display: flex;
  gap: 10px;
}

.home-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.home-button:hover {
  background-color: #218838;
}

.home-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Sales Summary Card Styles */
.sales-summary-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 24px;
  margin-bottom: 36px;
  text-align: left;
}

.sales-summary-card h2 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.8rem;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.loading-spinner {
  text-align: center;
  padding: 30px;
  color: #666;
}

.error-message {
  color: #dc3545;
  padding: 15px;
  background-color: #f8d7da;
  border-radius: 6px;
}

.no-sales {
  text-align: center;
  padding: 30px;
  color: #666;
}

.sales-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.sales-stat-item {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: calc(33.333% - 20px);
  min-width: 180px;
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.stat-value {
  display: block;
  font-size: 1.8rem;
  font-weight: bold;
  color: #007bff;
  margin-bottom: 8px;
}

.stat-label {
  color: #666;
  font-size: 1rem;
}

.payment-breakdown {
  width: 100%;
  margin-top: 20px;
}

.payment-breakdown h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #333;
}

.payment-stat-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.payment-stat {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: calc(25% - 15px);
  min-width: 160px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.payment-label {
  font-weight: bold;
  margin-bottom: 5px;
  color: #495057;
}

.payment-value {
  font-size: 1.3rem;
  color: #28a745;
  font-weight: bold;
  margin-bottom: 5px;
}

.payment-count {
  color: #6c757d;
  font-size: 0.9rem;
}

.view-full-report {
  width: 100%;
  text-align: center;
  margin-top: 20px;
}

.view-report-link {
  display: inline-block;
  color: #007bff;
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid #007bff;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.view-report-link:hover {
  background-color: #007bff;
  color: white;
}

/* Inventory Actions Styles */
.inventory-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.inventory-actions .view-report-link {
  margin: 0;
}

/* Admin Navigation Grid Styles */
.admin-nav {
  margin-top: 20px;
}

.admin-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 20px;
  gap: 20px;
}

.admin-nav-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 24px;
  text-align: center;
  text-decoration: none;
  color: #333;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.admin-nav-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.admin-nav-icon {
  background-color: #f8f9fa;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.admin-nav-icon svg {
  width: 32px;
  height: 32px;
  fill: #007bff;
}

.admin-nav-card:hover .admin-nav-icon {
  background-color: #007bff;
}

.admin-nav-card:hover .admin-nav-icon svg {
  fill: white;
}

.admin-nav-label {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.admin-nav-description {
  color: #6c757d;
  font-size: 0.95rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions {
    margin-top: 15px;
    width: 100%;
    justify-content: flex-start;
  }

  .sales-stat-item {
    flex: 1 1 100%;
  }

  .payment-stat {
    flex: 1 1 100%;
  }
}

@media (max-width: 480px) {
  .admin-dashboard {
    padding: 0;
  }

  .admin-header h1 {
    font-size: 2rem;
  }

  .sales-stat-item,
  .payment-stat {
    padding: 15px 10px;
  }
}

/* Test Payment Button */
.test-payment-button {
  background-color: #fd7e14;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.test-payment-button:hover {
  background-color: #e86b00;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: modal-fade-in 0.3s;
}

.modal-content {
  background: white;
  border-radius: 8px;
  max-width: 90%;
  max-height: 90%;
  overflow: auto;
}

@keyframes modal-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Telegram Config Button */
.telegram-config-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #0088cc;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.telegram-config-button svg {
  width: 20px;
  height: 20px;
}

.telegram-config-button:hover {
  background-color: #0077b3;
}

/* src/pages/ProductForm.css */
.product-form-container {
  max-width: 800px;
  margin: 0 auto;
  box-sizing: border-box;
  margin-bottom: 60px;
}

.product-form-container h1 {
  text-align: center;
  margin-bottom: 24px;
  color: #333;
}

.loading {
  text-align: center;
  padding: 40px;
  color: #666;
  font-size: 18px;
}

.error-message {
  color: #d32f2f;
  text-align: center;
  padding: 10px;
  margin-bottom: 20px;
  background-color: #ffebee;
  border-radius: 4px;
}

.product-form {
  background-color: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 10px;
}

.form-row .form-group {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: calc(50% - 10px);
  min-width: 200px;
  margin-bottom: 10px;
}

.product-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #444;
}

.product-form input,
.product-form select,
.product-form textarea {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #f9f9f9;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.product-form input:focus,
.product-form select:focus,
.product-form textarea:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
  outline: none;
  background-color: #fff;
}

.product-form input:disabled {
  background-color: #e9ecef;
  cursor: not-allowed;
}

.product-form small {
  display: block;
  color: #666;
  margin-top: 4px;
  font-size: 12px;
}

/* Tag section styling */
.tag-section {
  margin-top: 20px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 5px;
  border: 1px solid #e9ecef;
}

.tag-input-container {
  display: flex;
  margin-bottom: 15px;
}

.tag-input-container input {
  flex-grow: 1;
  padding: 10px;
  border: 1px solid #ced4da;
  border-radius: 4px 0 0 4px;
  font-size: 14px;
}

.add-tag-button {
  padding: 10px 15px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 14px;
}

.add-tag-button:hover {
  background-color: #0069d9;
}

.selected-tags,
.available-tags-section {
  margin-top: 15px;
}

.selected-tags h4,
.available-tags-section h4 {
  margin-bottom: 10px;
  font-size: 16px;
  color: #495057;
}

.tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  background-color: #e9ecef;
  color: #495057;
  padding: 5px 10px;
  border-radius: 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.tag-pill.selected {
  background-color: #cce5ff;
  color: #004085;
}

.tag-pill:hover {
  background-color: #dee2e6;
}

.tag-pill.selected:hover {
  background-color: #b8daff;
}

.remove-tag-button {
  background: none;
  border: none;
  color: #6c757d;
  margin-left: 5px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0 3px;
}

.remove-tag-button:hover {
  color: #dc3545;
}

.tag-search {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
}

.available-tags-container {
  max-height: 150px;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid #e9ecef;
  border-radius: 4px;
}

.no-tags-message {
  color: #6c757d;
  font-style: italic;
  text-align: center;
  padding: 10px;
}

/* Submit button */
.submit-button {
  width: 100%;
  padding: 14px;
  margin-top: 30px;
  font-size: 18px;
  font-weight: 600;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-button:hover {
  background-color: #0069d9;
}

.submit-button:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .product-form-container {
    padding: 12px;
  }

  .product-form {
    padding: 16px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-row .form-group {
    width: 100%;
  }

  .tag-input-container {
    flex-direction: column;
  }

  .tag-pill {
    font-size: 13px;
  }

  .submit-button {
    padding: 12px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .product-form-container h1 {
    font-size: 1.8rem;
  }

  .product-form label {
    font-size: 14px;
  }

  .product-form input,
  .product-form select,
  .product-form textarea {
    padding: 10px;
    font-size: 14px;
  }
}

/* Image Preview Container */
.form-column {
  flex: 1 1;
  margin-right: 20px;
}

.image-preview-container {
  flex: 0 0 300px;
  height: 300px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px 0;
}

.product-image-preview {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.image-placeholder {
  padding: 20px;
  text-align: center;
  color: #666;
}

.code-display {
  font-weight: bold;
  margin-top: 10px;
  font-size: 20px;
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }

  .form-column {
    margin-right: 0;
  }

  .image-preview-container {
    flex: 0 0 200px;
    height: 200px;
    margin: 0 auto 20px;
  }
}

/* src/pages/ProductList.css - Modern Enhanced Version */

/* Main container */
.product-list-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 100vh;
}

.product-list-container h1 {
  margin: 0 0 32px 0;
  color: #1e293b;
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Toolbar with search and add button */
.product-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 20px;
  background: white;
  padding: 24px 32px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-container {
  position: relative;
  flex: 1 1;
  min-width: 300px;
  max-width: 400px;
}

.search-input {
  width: 100%;
  padding: 16px 20px 16px 48px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  color: #1f2937;
  background: #f8fafc;
  transition: all 0.3s ease;
  font-weight: 500;
}

.search-input:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-container::before {
  content: "🔍";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 16px;
}

.clear-search {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s ease;
}

.clear-search:hover {
  background: #e2e8f0;
  color: #374151;
}

.tag-filter-container {
  min-width: 180px;
}

.tag-filter-select {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  background: #f8fafc;
  color: #1f2937;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tag-filter-select:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.actions {
  display: flex;
  gap: 16px;
}

.add-product-button {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  text-decoration: none;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  border: none;
}

.add-product-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
  text-decoration: none;
  color: white;
}

.add-product-button::before {
  content: "➕";
  font-size: 14px;
}

/* Loading and error states */
.loading-message,
.no-products-message {
  text-align: center;
  padding: 80px 40px;
  color: #64748b;
  font-size: 18px;
  font-weight: 500;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin: 20px 0;
}

.error-message {
  padding: 20px 24px;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  color: #dc2626;
  border-radius: 16px;
  margin-bottom: 24px;
  border: 2px solid #fecaca;
  font-weight: 600;
}

.error-message p {
  margin: 0 0 12px 0;
}

.error-message p:last-child {
  margin-bottom: 0;
}

/* Table container */
.table-container {
  overflow-x: auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Table styling */
.products-table {
  width: 100%;
  border-collapse: collapse;
}

.products-table th,
.products-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
}

.products-table th {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  font-weight: 700;
  color: #374151;
  position: sticky;
  top: 0;
  z-index: 10;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.products-table th.sortable {
  cursor: pointer;
  -webkit-user-select: none;
          user-select: none;
  transition: all 0.3s ease;
}

.products-table th.sortable:hover {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  color: #1e293b;
}

.products-table tr {
  transition: all 0.3s ease;
}

.products-table tr:hover {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

/* Product image cell styling */
.product-image-cell {
  width: 80px;
  height: 80px;
  padding: 12px !important;
}

.product-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  background: #f8fafc;
  padding: 8px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
  cursor: pointer;
}

.product-thumbnail:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #667eea;
}

.no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 12px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  border: 2px solid #e2e8f0;
}

.product-name-cell {
  max-width: 250px;
  text-align: left;
  white-space: normal;
  word-break: break-word;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
}

.stock-cell {
  font-weight: 700;
  font-size: 16px;
}

.stock-cell.out-of-stock {
  color: #dc2626;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #fecaca;
}

.stock-cell.low-stock {
  color: #d97706;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #fbbf24;
}

.product-tags-cell {
  min-width: 150px;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-tag {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.no-tags {
  color: #94a3b8;
  font-style: italic;
  font-size: 13px;
  font-weight: 500;
}

/* Actions cell styling */
.actions-cell {
  white-space: nowrap;
  width: 120px;
}

.action-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.edit-button,
.delete-button {
  padding: 8px 12px;
  font-size: 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.edit-button {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.edit-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
  text-decoration: none;
  color: white;
}

.delete-button {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.delete-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 32px;
  gap: 8px;
  background: white;
  padding: 20px 24px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pagination-button {
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 14px;
  min-width: 44px;
  text-align: center;
}

.pagination-button:hover {
  background: #e2e8f0;
  color: #374151;
  transform: translateY(-1px);
}

.pagination-button.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pagination-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.pagination-ellipsis {
  padding: 12px 8px;
  color: #94a3b8;
  font-weight: 600;
}

/* Image enlargement modal */
.enlarged-image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}

.enlarged-image-container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.enlarged-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
}

.close-enlarged-btn {
  position: absolute;
  top: -40px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: white;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-enlarged-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Loading state */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  color: #64748b;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.loading-spinner {
  border: 4px solid #f1f5f9;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Delete confirmation modal */
.delete-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}

.delete-modal-container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  overflow: hidden;
}

.delete-modal-header {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.delete-modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.delete-modal-content {
  padding: 32px;
}

.delete-modal-actions {
  display: flex;
  gap: 16px;
  padding: 24px 32px;
  background: #f8fafc;
  border-radius: 0 0 20px 20px;
}

.cancel-delete-button,
.confirm-delete-button {
  flex: 1 1;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cancel-delete-button {
  background: #f1f5f9;
  color: #64748b;
  border: 2px solid #e2e8f0;
}

.cancel-delete-button:hover {
  background: #e2e8f0;
  color: #374151;
}

.confirm-delete-button {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.confirm-delete-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

/* Responsive design */
@media (max-width: 1024px) {
  .product-list-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-container {
    max-width: none;
  }

  .tag-filter-container {
    min-width: 100%;
  }

  .actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .product-list-container {
    padding: 16px;
  }

  .product-list-container h1 {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .product-list-toolbar {
    padding: 20px;
  }

  .products-table th,
  .products-table td {
    padding: 12px 16px;
  }

  .product-image-cell {
    width: 60px;
    height: 60px;
  }

  .product-name-cell {
    max-width: 150px;
  }

  .action-buttons {
    flex-direction: column;
  }

  .pagination {
    padding: 16px 20px;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .product-list-container {
    padding: 12px;
  }

  .products-table {
    font-size: 14px;
  }

  .products-table th,
  .products-table td {
    padding: 8px 12px;
  }

  .product-image-cell {
    width: 50px;
    height: 50px;
  }

  .product-name-cell {
    max-width: 120px;
  }

  .pagination-button {
    padding: 8px 12px;
    font-size: 12px;
    min-width: 36px;
  }
}

.sales-report {
  max-width: 1200px;
  margin: 0 auto;
}

.sales-report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.sales-report-header h1 {
  margin: 0;
  color: #1a1a1a;
  font-size: 28px;
}

.back-button {
  background-color: #f0f0f0;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 500;
  color: #333;
  transition: background-color 0.2s;
}

.back-button:hover {
  background-color: #e0e0e0;
}

/* Report Controls */
.report-controls {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.control-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.date-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.date-inputs {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.date-field {
  flex: 1 1;
  min-width: 180px;
}

.date-field label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #555;
}

.date-field input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.quick-date-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.date-preset-btn {
  background-color: #eef2ff;
  border: 1px solid #d1dafe;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  color: #4f46e5;
  transition: all 0.2s;
}

.date-preset-btn:hover {
  background-color: #d6ddfc;
}

.view-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.filter-field {
  flex: 1 1;
  min-width: 180px;
}

.filter-field label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #555;
}

.filter-field select,
.filter-field input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
}

.action-bar {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.export-btn {
  background-color: #4f46e5;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
}

.export-btn:hover {
  background-color: #4338ca;
}

.export-btn:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
}

/* Loading and Error States */
.loading-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border-left-color: #4f46e5;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.error-message {
  padding: 12px;
  background-color: #fee2e2;
  color: #b91c1c;
  border-radius: 4px;
  margin-bottom: 20px;
}

.no-data-message {
  padding: 40px 0;
  text-align: center;
  color: #6b7280;
}

/* Summary Dashboard */
.sales-dashboard {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
}

.summary-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.summary-card {
  flex: 1 1;
  min-width: 200px;
  background-color: white;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #4f46e5;
}

.summary-card h3 {
  margin: 0 0 8px 0;
  color: #4b5563;
  font-size: 16px;
  font-weight: 500;
}

.card-value {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
}

/* Payment Method Breakdown */
.payment-breakdown {
  background-color: white;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.payment-breakdown h3 {
  margin: 0 0 16px 0;
  color: #4b5563;
  font-size: 16px;
  font-weight: 500;
}

.payment-methods-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-method-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.payment-method-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.payment-type {
  font-weight: 500;
  color: #1a1a1a;
}

.payment-count {
  font-size: 14px;
  color: #6b7280;
}

.payment-bar-container {
  width: 100%;
  height: 12px;
  background-color: #f3f4f6;
  border-radius: 6px;
  overflow: hidden;
}

.payment-bar {
  height: 100%;
  transition: width 0.5s ease;
}

.payment-amount {
  align-self: flex-end;
  font-weight: 500;
  color: #1a1a1a;
}

.payment-amount-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.payment-fee-breakdown {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 0.85rem;
}

.amount-without-fees {
  color: #059669;
  font-weight: 500;
}

.fee-amount {
  color: #dc2626;
  font-size: 0.8rem;
  font-style: italic;
}

/* Sales Tables */
.sales-data-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sales-table-container {
  background-color: white;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  overflow-x: auto;
}

.sales-table-container h3 {
  margin: 0 0 16px 0;
  color: #4b5563;
  font-size: 16px;
  font-weight: 500;
}

.sales-report-table {
  width: 100%;
  border-collapse: collapse;
}

.sales-report-table th,
.sales-report-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.sales-report-table th {
  background-color: #f9fafb;
  font-weight: 500;
  color: #4b5563;
}

.sales-report-table tr:last-child td {
  border-bottom: none;
}

.sortable-header {
  cursor: pointer;
  -webkit-user-select: none;
          user-select: none;
}

.sortable-header:hover {
  background-color: #f3f4f6;
}

.payment-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  text-transform: capitalize;
}

.payment-badge.cash {
  background-color: #d1fae5;
  color: #047857;
}

.payment-badge.card {
  background-color: #dbeafe;
  color: #1e40af;
}

.payment-badge.square {
  background-color: #fef3c7;
  color: #92400e;
}

.payment-badge.payid {
  background-color: #e0e7ff;
  color: #4338ca;
}

/* Responsive design */
@media (min-width: 768px) {
  .control-panel {
    flex-direction: row;
  }

  .date-controls {
    flex: 3 1;
  }

  .view-filters {
    flex: 2 1;
  }

  .summary-card {
    max-width: calc(25% - 12px);
  }
}

@media (max-width: 767px) {
  .sales-report-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .date-inputs {
    flex-direction: column;
  }

  .summary-card {
    min-width: 100%;
  }

  .payment-method-label {
    flex-direction: column;
  }

  .payment-count {
    margin-top: 4px;
  }

  .payment-fee-breakdown {
    font-size: 0.75rem;
  }

  .amount-without-fees,
  .fee-amount {
    text-align: right;
  }
}

* Clickable rows in tables */ .clickable-row {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.clickable-row:hover {
  background-color: #f0f7ff !important;
}

/* Sale details modal */
.sale-details-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.sale-details-modal {
  background-color: white;
  border-radius: 8px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

.sale-details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  background-color: #f9fafb;
  position: sticky;
  top: 0;
  z-index: 1;
}

.sale-details-header h3 {
  margin: 0;
  font-size: 18px;
  color: #1f2937;
}

.close-modal-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  transition: color 0.2s ease;
}

.close-modal-btn:hover {
  color: #1f2937;
}

.sale-details-content {
  padding: 20px;
}

.sale-info {
  margin-bottom: 20px;
  padding: 15px;
  background-color: #f9fafb;
  border-radius: 6px;
  border-left: 4px solid #4f46e5;
}

.sale-info p {
  margin: 8px 0;
}

.sale-products h4 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 16px;
  color: #1f2937;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}

.sale-products-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.sale-products-table th,
.sale-products-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.sale-products-table th {
  background-color: #f9fafb;
  font-weight: 500;
  color: #4b5563;
}

.sale-products-table tbody tr:hover {
  background-color: #f9fafb;
}

.sale-products-table tfoot {
  font-weight: 500;
}

.sale-products-table tfoot tr td {
  border-top: 1px solid #e5e7eb;
  border-bottom: none;
  padding-top: 12px;
  padding-bottom: 12px;
}

.sale-products-table tfoot tr.final-total-row td {
  border-top: 2px solid #e5e7eb;
  font-weight: 700;
  font-size: 15px;
  color: #1f2937;
  background-color: #f9fafb;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: white;
  border-radius: 8px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-header {
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
  color: #1a1a1a;
}

.close-button {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #6b7280;
  padding: 4px;
}

.close-button:hover {
  color: #1a1a1a;
}

.modal-body {
  padding: 16px;
}

.sale-info {
  margin-bottom: 24px;
  padding: 16px;
  background-color: #f9fafb;
  border-radius: 4px;
}

.sale-info p {
  margin: 8px 0;
  color: #4b5563;
}

.items-list {
  margin-top: 24px;
}

.items-list h3 {
  margin-bottom: 16px;
  color: #1a1a1a;
}

/* Table Enhancements */
.sale-products-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.sale-products-table th,
.sale-products-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.sale-products-table th {
  background-color: #f9fafb;
  font-weight: 500;
  color: #4b5563;
}

.sale-products-table tr:hover {
  background-color: #f9fafb;
}

.view-details-btn {
  background-color: #4f46e5;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.view-details-btn:hover {
  background-color: #4338ca;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 10px;
  }

  .sale-products-table {
    display: block;
    overflow-x: auto;
  }
}

/* Item preview styles */
.item-preview {
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
}

.item-preview-row {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.more-items {
  font-style: italic;
  color: #9ca3af;
  font-size: 11px;
  margin-top: 2px;
}

/* Export modal styles */
.export-modal {
  max-width: 600px;
}

.export-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.export-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background-color: #f9fafb;
  cursor: pointer;
  transition: background-color 0.2s;
}

.export-option:hover {
  background-color: #f0f7ff;
}

.export-option input[type="radio"] {
  margin-top: 4px;
}

.export-option label {
  flex: 1 1;
  cursor: pointer;
}

.export-option h4 {
  margin: 0 0 6px 0;
  font-size: 16px;
  color: #1a1a1a;
}

.export-option p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.export-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.cancel-btn {
  padding: 8px 16px;
  background-color: #f3f4f6;
  border: none;
  border-radius: 4px;
  color: #4b5563;
  cursor: pointer;
  font-weight: 500;
}

.cancel-btn:hover {
  background-color: #e5e7eb;
}

.export-confirm-btn {
  padding: 8px 16px;
  background-color: #4f46e5;
  border: none;
  border-radius: 4px;
  color: white;
  cursor: pointer;
  font-weight: 500;
}

.export-confirm-btn:hover {
  background-color: #4338ca;
}

/* src/components/NumericKeypad.css (Enhanced Version) */

.numeric-keypad {
  width: 100%;
  max-width: 400px;
  padding: 20px;
  margin: 0 auto;
}

.keypad-header {
  margin-bottom: 20px;
}

.keypad-code-display {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.code-digit {
  width: 50px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 24px;
  font-weight: 700;
  color: #adb5bd;
  transition: all 0.2s ease;
}

.code-digit.filled {
  background-color: #e7f5ff;
  border-color: #74c0fc;
  color: #1971c2;
}

.keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 12px;
  gap: 12px;
  margin-bottom: 20px;
}

.keypad-button {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  font-size: 22px;
  font-weight: 600;
  color: #495057;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.keypad-button:hover {
  background-color: #f1f3f5;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

.keypad-button:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.keypad-button.backspace {
  font-size: 18px;
  color: #868e96;
}

.keypad-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 12px;
  gap: 12px;
}

.keypad-action {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.keypad-action.clear {
  background-color: #f8f9fa;
  color: #495057;
  border: 1px solid #dee2e6;
}

.keypad-action.clear:hover {
  background-color: #e9ecef;
}

.keypad-action.add {
  background: linear-gradient(135deg, #20c997, #38d9a9);
  color: white;
  box-shadow: 0 2px 6px rgba(32, 201, 151, 0.2);
}

.keypad-action.add:hover:not(:disabled) {
  background: linear-gradient(135deg, #12b886, #20c997);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(32, 201, 151, 0.3);
}

.keypad-action.add:active:not(:disabled) {
  transform: translateY(0);
}

.keypad-action.add:disabled {
  background: linear-gradient(135deg, #adb5bd, #ced4da);
  cursor: not-allowed;
  opacity: 0.7;
}

.keypad-action.cancel {
  background: linear-gradient(135deg, #fa5252, #ff6b6b);
  color: white;
  box-shadow: 0 2px 6px rgba(250, 82, 82, 0.2);
}

.keypad-action.cancel:hover {
  background: linear-gradient(135deg, #e03131, #fa5252);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(250, 82, 82, 0.3);
}

.keypad-action.cancel:active {
  transform: translateY(0);
}

/* Success Toast Animation */
.success-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #37b24d;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  animation: toastFade 2s ease;
}

@keyframes toastFade {
  0% {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  10% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  90% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
}

/* Responsive Adjustments */
@media (max-width: 480px) {
  .code-digit {
    width: 40px;
    height: 50px;
    font-size: 20px;
  }

  .keypad-button {
    height: 50px;
    font-size: 20px;
  }

  .keypad-action {
    height: 45px;
    font-size: 14px;
  }
}

/* src/pages/POS.css - Enhanced Version */

/* Main container */
.pos-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px;
  font-family: Arial, sans-serif;
}

/* Additional styles for the product card */
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-color: #d1d5db;
}

.product-card.out-of-stock {
  opacity: 0.7;
  position: relative;
  cursor: pointer;
}

.product-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
}

.out-of-stock .product-details {
  padding-top: 4px;
}

.product-name {
  font-size: 13px;
  color: #333;
  margin-bottom: 4px;
  flex-grow: 1;
  line-height: 1.3;
}

.product-code {
  font-weight: 700;
  color: #4f46e5;
  font-size: 14px;
  margin-bottom: 2px;
  letter-spacing: 0.5px;
}

.product-code span {
  font-weight: 500;
  font-size: 14px;
  color: #666;
}

.product-price {
  font-weight: 600;
  color: #333;
  font-size: 15px;
  margin-top: auto;
}

.out-of-stock-label {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 0, 0, 0.6);
  color: white;
  padding: 3px;
  text-align: center;
  font-weight: bold;
  font-size: 0.85rem;
  z-index: 1;
}

.loading-products,
.no-products,
.error-message {
  text-align: center;
  padding: 30px;
  color: #6b7280;
}

.error-message {
  color: #ef4444;
  background-color: #fee2e2;
  border-radius: 6px;
  margin-top: 10px;
}

/* Header styles */
.pos-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.pos-header h1 {
  margin: 0;
  color: #333;
  font-size: 28px;
}

.pos-actions {
  display: flex;
  gap: 12px;
}

.refresh-button {
  background-color: #4f46e5;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
}

.refresh-button:hover {
  background-color: #4338ca;
}

.refresh-button:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
}

/* Side-by-side layout container */
.pos-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Product selection section (left side) */
.product-selection {
  flex: 6 1;
  min-width: 300px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.product-selection h2 {
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: #333;
  text-align: center;
}

/* Shopping cart section (right side) */
.shopping-cart {
  flex: 4 1;
  min-width: 350px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 0;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

.cart-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.cart-header h2 {
  font-size: 1.2rem;
  margin: 0;
  color: #333;
  display: flex;
  align-items: center;
}

.cart-icon {
  margin-right: 8px;
}

.cart-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.clear-cart-button {
  background-color: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #4b5563;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.clear-cart-button:hover {
  background-color: #e5e7eb;
}

/* Inline promo banner styles */
.promo-banner-inline {
  display: flex;
  align-items: center;
  background-color: #e0e7ff;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid #c7d2fe;
  transition: all 0.2s;
}

.promo-banner-inline:hover {
  background-color: #ddd6fe;
}

.promo-banner-inline .promo-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4338ca;
  font-weight: 500;
  font-size: 13px;
}

.promo-banner-inline .promo-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.promo-banner-inline .promo-toggle {
  background-color: #e5e7eb;
  border: none;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 11px;
  cursor: pointer;
  color: #4b5563;
  transition: all 0.2s;
}

.promo-banner-inline .promo-toggle.active {
  background-color: #10b981;
  color: white;
}

.promo-banner-inline .promo-details-toggle {
  font-size: 11px;
  color: #4338ca;
}

/* Original promo banner styles (keeping for backward compatibility) */
.promo-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #e0e7ff;
  padding: 10px 20px;
  border-bottom: 1px solid #c7d2fe;
  cursor: pointer;
}

.promo-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4338ca;
  font-weight: 500;
}

.promo-icon {
  color: #4338ca;
}

.promo-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.promo-toggle {
  background-color: #e5e7eb;
  border: none;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  cursor: pointer;
  color: #4b5563;
  transition: all 0.2s;
}

.promo-toggle.active {
  background-color: #10b981;
  color: white;
}

.promo-details-toggle {
  font-size: 13px;
  color: #4338ca;
}

.promo-details {
  background-color: #eef2ff;
  padding: 12px 20px;
  border-bottom: 1px solid #c7d2fe;
  font-size: 14px;
  color: #4338ca;
}

/* Cart items */
.cart-items-container {
  flex: 1 1;
  overflow-y: auto;
  padding: 10px 15px;
}

.cart-item {
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
  position: relative;
}

.cart-item-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.cart-item-code-name {
  flex: 1 1;
  padding-right: 8px;
}

.cart-item-code {
  font-weight: 600;
  color: #333;
  font-size: 13px;
}

.cart-item-name {
  color: #666;
  font-size: 12px;
  margin-top: 1px;
  line-height: 1.2;
}

.cart-item-price {
  font-weight: 500;
  color: #333;
  font-size: 13px;
  text-align: right;
  min-width: 60px;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
  min-width: 60px;
}

.quantity-btn {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 1px 4px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 2px;
  transition: background-color 0.1s;
}

.quantity-btn:hover:not(:disabled) {
  background-color: #e5e5e5;
}

.quantity-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.item-quantity {
  font-size: 13px;
  color: #333;
  min-width: 20px;
  text-align: center;
  font-weight: 500;
}

.item-total {
  font-weight: 600;
  color: #4a90e2;
  font-size: 13px;
  margin-left: auto;
}

/* Specific styles for discount-only items */
.discount-item {
  background-color: #fff0f3;
  border-left: 4px solid #ff4d6d;
  border-radius: 4px;
}

.discount-item .cart-item-code {
  color: #ff4d6d;
  font-weight: 700;
}

.discount-item .cart-item-name {
  color: #ff4d6d;
  font-weight: 500;
}

.discount-item .cart-item-total-price,
.discount-item .cart-item-unit-price {
  color: #ff4d6d !important;
  font-weight: 600 !important;
}

.discount-item .quantity-controls {
  background: #ffe1e7;
  border: 1px solid #ff4d6d;
}

.discount-item .quantity-btn {
  color: #ff4d6d;
}

.discount-item .delete-button {
  color: #ff4d6d;
}

.discount-item .delete-button:hover {
  background-color: #ffd6dd;
}

/* Discount tag for the discount items */
.discount-tag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background-color: #ff4d6d;
  color: white;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  margin-left: 6px;
}

.cart-summary .summary-row.discount {
  color: #ff4d6d;
  font-weight: 600;
}

/* Compact layout for cart items */
.cart-item-main {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.cart-item-info {
  flex: 1 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.cart-item-quantity-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.cart-item-price-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

.cart-item-unit-price {
  color: #666;
  font-size: 11px;
}

.cart-item-total-price {
  color: #4a90e2;
  font-weight: 600;
  font-size: 12px;
}

.delete-button {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 2px;
  border-radius: 3px;
  transition: all 0.2s;
  min-width: 20px;
  height: 20px;
  justify-content: center;
}

.delete-button:hover {
  background-color: #fee2e2;
}

.promo-applied {
  margin-top: 8px;
  background-color: #eef2ff;
  padding: 6px 10px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #4338ca;
}

.promo-tag-icon {
  color: #4338ca;
}

/* Empty cart message */
.empty-cart-message {
  text-align: center;
  padding: 40px 0;
  color: #6b7280;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1;
}

.empty-cart-icon {
  color: #d1d5db;
  margin-bottom: 12px;
}

.empty-cart-message p {
  margin: 5px 0;
}

/* Cart summary */
.cart-summary {
  padding: 20px;
  border-top: 1px solid #e5e7eb;
  background-color: #f9fafb;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 15px;
}

.summary-row.discount {
  color: #4338ca;
  font-weight: 500;
}

.total-section {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 600;
  margin: 15px 0;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
}

.checkout-button {
  width: 100%;
  padding: 12px;
  background-color: #4f46e5;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.checkout-button:hover:not(:disabled) {
  background-color: #4338ca;
}

.checkout-button:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
}

/* Checkout Modal */
.checkout-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.checkout-modal-content {
  background-color: white;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  color: #333;
  cursor: pointer;
  z-index: 10;
}

.checkout-modal-content h2 {
  padding: 20px;
  margin: 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 24px;
  color: #000;
  text-align: center;
  font-weight: 600;
}

.checkout-modal-content h3 {
  font-size: 18px;
  color: #000;
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 600;
}

.checkout-summary {
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.checkout-items-list {
  margin-bottom: 20px;
  max-height: 200px;
  overflow-y: auto;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
}

.checkout-item:last-child {
  border-bottom: none;
}

.checkout-item-info {
  display: flex;
  flex-direction: column;
  flex: 1 1;
  overflow: hidden;
}

.checkout-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkout-item-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 350px;
  color: #000;
  font-size: 15px;
}

.checkout-item-quantity {
  color: #333;
  font-size: 14px;
  font-weight: 500;
  margin-right: 4px;
}

.checkout-item-price {
  font-weight: 600;
  min-width: 60px;
  text-align: right;
  color: #000;
}

.checkout-totals {
  background-color: #f9fafb;
  padding: 12px;
  border-radius: 10px;
  margin-top: 15px;
}

.checkout-subtotal,
.checkout-discount,
.checkout-charges,
.checkout-total {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
}

.checkout-discount {
  color: #4338ca;
}

.checkout-charges {
  color: #f59e0b;
}

.checkout-total {
  font-weight: 600;
  padding-top: 8px;
  margin-top: 5px;
  border-top: 1px solid #e5e7eb;
}

.checkout-subtotal span,
.checkout-discount span,
.checkout-charges span,
.checkout-total span {
  font-weight: 600;
  color: #000;
}

.payment-section {
  padding: 20px;
}

.payment-section p {
  margin-top: 0;
  font-weight: 500;
  color: #374151;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  grid-gap: 15px;
  gap: 15px;
  margin: 15px 0;
}

.payment-button {
  padding: 14px;
  font-size: 18px;
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  color: #000;
  text-align: center;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-button:hover {
  background-color: #e0e0e0;
}

.payment-button.selected {
  background-color: #ff3333;
  border-color: #cc0000;
  color: white;
  box-shadow: 0 2px 6px rgba(255, 0, 0, 0.3);
}

.fee-note {
  font-size: 12px;
  position: absolute;
  top: 5px;
  right: 10px;
  color: #ff9900;
  font-weight: 700;
}

.selected-indicator {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: white;
}

.order-total {
  text-align: right;
  margin: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e5e7eb;
  padding-top: 15px;
}

.total-label {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  margin: 0;
}

.total-amount {
  font-size: 24px;
  font-weight: 700;
  color: #000;
  margin: 0;
}

.cash-received {
  margin-bottom: 20px;
}

.cash-received label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #374151;
}

.cash-received input {
  width: 100%;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 16px;
}

.change-calculation {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding: 10px;
  background-color: #f0fdf4;
  border-radius: 10px;
  color: #047857;
  font-weight: 500;
}

.confirm-button {
  width: 100%;
  padding: 14px;
  background-color: #7c8ba1;
  color: white;
  border: none;
  border-radius: 15px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 15px;
}

.confirm-button:hover:not(:disabled) {
  background-color: #667892;
}

.confirm-button:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
}

/* Responsive design */
@media (max-width: 1024px) {
  .pos-layout {
    flex-direction: column;
  }

  .product-selection,
  .shopping-cart {
    min-width: 100%;
  }

  .cart-items-container {
    max-height: 300px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  /* Responsive promo banner */
  .cart-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .cart-actions {
    width: 100%;
    justify-content: space-between;
  }

  .promo-banner-inline {
    flex: 1 1;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .fixed-codes-grid {
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  }

  .payment-methods {
    grid-template-columns: 1fr 1fr;
  }

  .checkout-modal-content {
    margin: 10px;
    max-height: 90vh;
  }

  /* Mobile promo banner adjustments */
  .promo-banner-inline .promo-info {
    font-size: 12px;
  }

  .promo-banner-inline .promo-controls {
    gap: 6px;
  }

  .promo-banner-inline .promo-toggle {
    font-size: 10px;
    padding: 2px 4px;
  }

  .promo-banner-inline .promo-details-toggle {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .pos-container {
    padding: 10px;
  }

  .fixed-codes-grid {
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .cart-item-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .item-total {
    align-self: flex-end;
  }

  .delete-button {
    align-self: flex-end;
  }

  .cart-item {
    padding: 8px 12px;
  }

  /* Very small screen promo banner */
  .cart-header {
    padding: 15px;
  }

  .promo-banner-inline {
    padding: 4px 8px;
  }

  .promo-banner-inline .promo-info {
    font-size: 11px;
    gap: 4px;
  }

  .promo-banner-inline .promo-controls {
    gap: 4px;
  }
}

/* Moved and Enhanced fixed-codes-section */
.fixed-codes-section {
  margin-bottom: 15px;
  width: 100%;
}

.fixed-codes-section h2 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #4f46e5;
}

.fixed-codes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.fixed-code-button {
  background-color: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s;
  color: #4b5563;
  min-width: 60px;
  text-align: center;
}

.fixed-code-button:hover {
  background-color: #e5e7eb;
}

.fixed-code-button.active {
  background-color: #4f46e5;
  color: white;
  border-color: #4f46e5;
}

.fixed-code-button.category-active {
  background-color: #3730a3;
  color: white;
  border-color: #312e81;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.4);
}

.catalog-controls {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
  width: 100%;
}

.search-container {
  position: relative;
  margin-bottom: 15px;
}

/* Keypad section */
.keypad-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Product catalog */
.product-catalog {
  display: flex;
  flex-direction: column;
  flex: 1 1;
}

.catalog-controls {
  margin-bottom: 20px;
}

.search-container {
  position: relative;
  margin-bottom: 12px;
}

.search-input {
  width: 100%;
  padding: 10px 40px 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.clear-search {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 20px;
  color: #777;
  cursor: pointer;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.category-filter {
  background-color: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 14px;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.2s;
}

.category-filter:hover {
  background-color: #e5e7eb;
}

.category-filter.active {
  background-color: #4f46e5;
  color: white;
  border-color: #4f46e5;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  grid-gap: 16px;
  gap: 16px;
  margin-top: 16px;
  max-height: calc(100vh - 400px);
  overflow-y: auto;
  padding: 4px;
}

.product-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 12px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  border: 1px solid #eaeaea;
  height: auto;
  min-height: 90px;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  border-color: #d0d0f0;
}

.product-name {
  font-size: 13px;
  color: #333;
  margin-bottom: 4px;
  flex-grow: 1;
  line-height: 1.3;
}

.product-price {
  font-weight: 600;
  color: #333;
  font-size: 15px;
  margin-top: auto;
}

.out-of-stock {
  opacity: 0.6;
  pointer-events: none;
}

.lowest-price-tag {
  font-size: 11px;
  font-style: italic;
  font-weight: normal;
  opacity: 0.8;
}

/* Code filter styles */
.code-filter-controls {
  margin-bottom: 16px;
  padding: 12px;
  background-color: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.code-filter-prefix {
  margin-bottom: 12px;
}

.code-filter-prefix label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #4b5563;
}

.code-prefix-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.radio-label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  padding: 6px 12px;
  background-color: #f3f4f6;
  border-radius: 4px;
  transition: all 0.2s;
}

.radio-label:hover {
  background-color: #e5e7eb;
}

.radio-label input {
  margin-right: 6px;
}

.code-filter-number {
  display: flex;
  gap: 8px;
}

.code-number-input {
  flex: 1 1;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 14px;
}

.apply-code-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background-color: #4f46e5;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
}

.apply-code-filter:hover {
  background-color: #4338ca;
}

.code-filter-container {
  padding: 12px;
  background-color: #eef2ff;
  border-radius: 6px;
  border-left: 4px solid #4f46e5;
  margin-bottom: 16px;
}

.code-filter-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.clear-filter-btn {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 20px;
  color: #4b5563;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.clear-filter-btn:hover {
  background-color: #e5e7eb;
}

/* Cash Modal Overlay */
.cash-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30, 30, 30, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.cash-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  padding: 32px;
  min-width: 400px;
  max-width: 95vw;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  animation: slideUp 0.3s ease-out;
  transform-origin: center;
}

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

.cash-modal h2 {
  margin: 0 0 24px 0;
  color: #1e293b;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.5px;
}

.quick-cash-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 12px;
  gap: 12px;
  margin-bottom: 24px;
}

.quick-cash-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 8px;
  font-size: 18px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.quick-cash-btn:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.quick-cash-btn:active {
  transform: translateY(0);
}

.manual-entry-container {
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  border: 1px solid #e2e8f0;
}

.manual-entry-container label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #334155;
  font-size: 15px;
}

.manual-entry-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #0f172a;
  background: white;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.manual-entry-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.cash-amount-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.cash-amount-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
}

.cash-amount-row:last-child {
  border-bottom: none;
}

.cash-amount-label {
  font-size: 16px;
  font-weight: 500;
  color: #334155;
}

.cash-received-value {
  font-size: 20px;
  font-weight: 700;
  color: #10b981;
}

.cash-due-value {
  font-size: 20px;
  font-weight: 700;
  color: #ef4444;
}

.cash-change-value {
  font-size: 20px;
  font-weight: 700;
  color: #3b82f6;
}

.cash-modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
}

.cash-modal-cancel {
  padding: 12px 24px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  flex: 1 1;
}

.cash-modal-cancel:hover {
  background: #e2e8f0;
}

.cash-modal-tender {
  padding: 12px 24px;
  background: #10b981;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  flex: 1.5 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cash-modal-tender:hover:not(:disabled) {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cash-modal-tender:active:not(:disabled) {
  transform: translateY(0);
}

.cash-modal-tender:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

/* For larger screens, make the modal wider */
@media (min-width: 768px) {
  .cash-modal {
    min-width: 480px;
  }

  .quick-cash-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Custom Item Styles */
.custom-item-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.custom-item-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

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

.custom-item-modal {
  max-width: 500px;
  width: 90%;
}

.custom-item-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-weight: 600;
  color: #374151;
  font-size: 14px;
}

.custom-item-input {
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s ease;
  background: white;
}

.custom-item-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.custom-item-preview {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin-top: 8px;
}

.custom-item-preview p {
  margin: 4px 0;
  font-size: 14px;
  color: #4a5568;
}

.custom-item-preview strong {
  color: #2d3748;
}

.custom-item-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.cancel-btn {
  background: #f7fafc;
  color: #4a5568;
  border: 1px solid #e2e8f0;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cancel-btn:hover {
  background: #edf2f7;
  border-color: #cbd5e0;
}

.add-custom-btn {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.add-custom-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

.add-custom-btn:disabled {
  background: #a0aec0;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Update cart actions to handle multiple buttons */
.cart-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.client-navbar {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70px;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: all 0.3s ease;
}

.client-navbar.scrolled {
  height: 60px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: rgba(255, 255, 255, 0.98);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
}

.client-nav-left {
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.client-navbar-logo {
  height: 36px;
  transition: all 0.3s ease;
}

.scrolled .client-navbar-logo {
  height: 32px;
}

.logo-text {
  margin-left: 10px;
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  letter-spacing: 0.5px;
  display: none;
}

@media (min-width: 768px) {
  .logo-text {
    display: block;
  }
}

.nav-links-container {
  display: flex;
  align-items: center;
}

.client-nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.client-nav-menu li {
  position: relative;
  margin: 0 5px;
}

.client-nav-menu li a {
  display: block;
  padding: 10px 15px;
  color: #444;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.2s ease;
  position: relative;
}

.client-nav-menu li a:hover {
  color: #7e8c9a; /* Soft pastel gray-blue */
}

.client-nav-menu li a::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #a0aab5; /* Lighter pastel gray-blue */
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.client-nav-menu li a:hover::after,
.client-nav-menu li a.active-link::after {
  width: 60%;
}

.client-nav-menu li a.active-link {
  color: #6c7c8c; /* Slightly darker pastel gray-blue for active state */
  font-weight: 600;
}

.nav-cta {
  margin-left: 15px;
}

.shop-now-button {
  display: inline-block;
  padding: 8px 16px;
  background-color: #8996a6; /* Medium pastel gray-blue */
  color: white;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(137, 150, 166, 0.3);
}

.shop-now-button:hover {
  background-color: #768496; /* Slightly darker on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(137, 150, 166, 0.4);
}

/* Mobile styles */
.mobile-menu-button {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: #333;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .mobile-menu-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .mobile-menu-button.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  .mobile-menu-button.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-button.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  .nav-links-container {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 0;
    background-color: white;
    flex-direction: column;
    overflow: hidden;
    transition: height 0.3s ease;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-links-container.open {
    height: auto;
    padding: 20px 0;
  }

  .client-nav-menu {
    flex-direction: column;
    width: 100%;
  }

  .client-nav-menu li {
    margin: 0;
    width: 100%;
    text-align: center;
  }

  .client-nav-menu li a {
    padding: 15px 20px;
  }

  .nav-cta {
    margin: 15px 0 0 0;
  }
}

@media print {
  .client-top-nav {
    display: none !important;
  }
}

/* src/pages/ClientOrderConfirmation.css */
.client-order-confirmation {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  font-family: Arial, sans-serif;
  color: #333;
  min-height: 80vh;
}

/* Loading & Error States */
.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #222;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.error-container {
  text-align: center;
  padding: 60px 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.error-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
}

.error-icon svg {
  width: 100%;
  height: 100%;
  fill: #f44336;
}

.error-container h2 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #333;
}

.error-container p {
  color: #666;
  margin-bottom: 25px;
}

.back-to-shopping-btn {
  display: inline-block;
  background-color: #222;
  color: white;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s;
}

.back-to-shopping-btn:hover {
  background-color: #000;
}

/* Success Page */
.order-success-container {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.success-header {
  background-color: #4caf50;
  color: white;
  padding: 30px 20px;
  text-align: center;
}

.success-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
}

.success-icon svg {
  width: 100%;
  height: 100%;
  fill: white;
}

.success-header h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.order-received {
  font-size: 18px;
  opacity: 0.9;
}

.order-details-container {
  padding: 30px;
}

/* Order Info Grid */
.order-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 15px;
  gap: 15px;
  margin-bottom: 40px;
  text-align: center;
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
}

.order-info-item {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.info-value {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.status-badge {
  display: inline-block;
  background-color: #ffc107;
  color: #333;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  text-transform: capitalize;
}

.status-badge.pending {
  background-color: #ffc107;
}

.status-badge.paid {
  background-color: #4caf50;
  color: white;
}

/* Order Details Section */
.order-details-section {
  margin-bottom: 40px;
}

.order-details-section h2 {
  font-size: 20px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

/* Payment section styles */
.payment-section {
  margin-top: 20px;
}

.payid-instructions {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed #ddd;
}

.payid-instructions h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #333;
}

.payid-value {
  background-color: #f8f8f8;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #ddd;
  font-family: monospace;
  font-size: 16px;
  margin: 10px 0;
  text-align: center;
  font-weight: bold;
}

.payment-note-box {
  background-color: #fff7e6;
  border-left: 4px solid #ffc107;
  padding: 15px;
  margin-top: 15px;
  border-radius: 0 4px 4px 0;
}

.payment-note-box p {
  margin: 0;
  color: #664d03;
}

/* Square Payment Section Styling */
.square-payment-section {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed #ddd;
}

.square-payment-section h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #333;
}

.square-payment-section p {
  margin-bottom: 15px;
  color: #666;
}

.order-items-table {
  width: 100%;
  border-collapse: collapse;
}

.order-items-table th {
  background-color: #f5f5f5;
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: #555;
}

.order-items-table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
}

.product-info-cell {
  width: 40%;
}

.product-name {
  font-weight: 600;
  margin: 0 0 5px 0;
}

.product-code {
  font-size: 14px;
  color: #777;
  margin: 0;
}

.order-items-table tfoot td {
  padding: 10px 12px;
  text-align: right;
  font-weight: 600;
}

.order-items-table tfoot td:last-child {
  text-align: left;
}

.total-row td {
  font-size: 18px;
  border-top: 2px solid #ddd;
  padding-top: 15px;
}

/* Information Sections */
.order-info-sections-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 20px;
  gap: 20px;
  margin-bottom: 30px;
}

.info-section {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
}

.info-section h2 {
  font-size: 18px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.info-content p {
  margin: 8px 0;
  line-height: 1.5;
}

/* Notes Section */
.confirmation-notes {
  background-color: #f0f8ff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
}

.confirmation-notes h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #0066cc;
}

.confirmation-notes p {
  line-height: 1.6;
  color: #444;
}

/* Action Buttons */
.confirmation-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

.home-button,
.continue-shopping-button {
  padding: 14px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.home-button {
  background-color: transparent;
  border: 2px solid #222;
  color: #222;
}

.home-button:hover {
  background-color: #f5f5f5;
}

.continue-shopping-button {
  background: #4a90e2;
  color: white;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
}

.continue-shopping-button:hover {
  background: #357abd;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
  text-decoration: none;
  color: white;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .order-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .order-info-sections-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .confirmation-actions {
    flex-direction: column;
    gap: 15px;
  }

  .home-button,
  .continue-shopping-button {
    display: block;
    text-align: center;
  }

  .order-items-table thead {
    display: none;
  }

  .order-items-table,
  .order-items-table tbody,
  .order-items-table tfoot,
  .order-items-table tr,
  .order-items-table td,
  .order-items-table th {
    display: block;
    width: 100%;
  }

  .order-items-table tbody tr {
    margin-bottom: 15px;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 4px;
  }

  .order-items-table td {
    text-align: right;
    padding: 8px;
    position: relative;
    padding-left: 50%;
  }

  .order-items-table td:before {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 45%;
    padding-right: 10px;
    text-align: left;
    font-weight: bold;
    content: attr(data-label);
  }

  .product-info-cell:before {
    content: "Product" !important;
  }

  .order-items-table tfoot tr {
    margin-top: 15px;
  }

  .order-items-table tfoot td {
    text-align: right;
    padding-left: 0;
  }

  .order-items-table tfoot td:before {
    content: attr(data-label);
  }
}

/* Add these styles to your ClientOrderConfirmation.css file */

/* Payment message styling */
.payment-message {
  padding: 15px;
  margin: 20px 30px 0;
  border-radius: 4px;
  text-align: center;
  font-weight: 600;
}

.payment-message.success {
  background-color: #e8f5e9;
  color: #2e7d32;
  border-left: 4px solid #4caf50;
}

.payment-message.error {
  background-color: #ffebee;
  color: #c62828;
  border-left: 4px solid #f44336;
}

/* Payment success message */
.payment-success-message {
  margin-top: 15px;
  padding: 15px;
  background-color: #e8f5e9;
  color: #2e7d32;
  border-radius: 4px;
  text-align: center;
  font-weight: 500;
}

/* Square payment section styles */
.square-payment-section {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px dashed #ddd;
}

.square-payment-section h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #333;
}

.square-payment-section p {
  margin-bottom: 20px;
  color: #666;
}

/* Payment Methods Section */
.payment-methods {
  margin-top: 20px;
}

.payment-methods h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #333;
}

.payment-method-option {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #eee;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.payment-method-option.selected {
  border-color: #222;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.payment-method-option:last-child {
  margin-bottom: 0;
}

.payment-method-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  cursor: pointer;
}

.payment-method-info {
  flex: 1 1;
}

.payment-method-info h4 {
  font-size: 18px;
  margin: 0 0 8px 0;
  color: #333;
}

.payment-method-info p {
  margin: 0 0 8px 0;
  color: #666;
}

.payment-method-radio {
  margin-left: 15px;
  display: flex;
  align-items: center;
}

.payment-method-radio input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.processing-fee-notice {
  font-size: 14px;
  margin-top: 5px;
}

.fee-indicator {
  font-weight: 600;
}

.payment-summary {
  margin: 20px 0;
  padding: 15px;
  background-color: #f0f0f0;
  border-radius: 6px;
}

.payment-amount,
.payment-fee,
.payment-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.payment-total {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #ddd;
  font-weight: 600;
  font-size: 18px;
}

.payid-instructions {
  margin-top: 20px;
  padding: 15px;
  background-color: #f0f0f0;
  border-radius: 6px;
}

.payid-value {
  font-size: 24px;
  font-weight: 600;
  color: #222;
  margin: 10px 0;
  text-align: center;
}

.payment-error {
  margin-top: 15px;
  padding: 12px;
  background-color: #ffebee;
  color: #c62828;
  border-radius: 4px;
  border-left: 4px solid #f44336;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .payment-method-option {
    padding: 15px;
  }

  .payment-method-info h4 {
    font-size: 16px;
  }
}

/* Print Button Styles */
.print-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #ddd;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.print-button svg {
  margin-right: 5px;
}

.print-button:hover {
  background-color: #e0e0e0;
}

/* Print Styles */
@media print {
  /* Basic page setup */
  @page {
    size: A4;
    margin: 0.5cm;
  }

  body {
    background: white !important;
    color: black;
    font-size: 12pt;
    line-height: 1.4;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Hide unwanted elements */
  .no-print,
  .client-top-nav,
  .confirmation-actions,
  button,
  .back-to-shopping-btn,
  .email-notification {
    display: none !important;
  }

  /* Full-width container */
  .client-order-confirmation-wrapper {
    background-color: white !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
  }

  .order-confirmation-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    background: white !important;
    border-radius: 0 !important;
  }

  /* Card styling for print */
  .order-card {
    padding: 0 !important;
    margin-bottom: 15px !important;
    box-shadow: none !important;
    background: white !important;
    border-radius: 0 !important;
    page-break-inside: avoid;
    border: none !important;
  }

  .order-card h2 {
    font-size: 16pt;
    color: #2c3e50 !important;
    margin-bottom: 0.3cm;
    padding-bottom: 0.2cm;
    border-bottom: 1px solid #eee;
  }

  /* Header styling */
  .order-confirmation-header h1 {
    font-size: 18pt;
    color: #2c3e50 !important;
    margin-bottom: 0.5cm;
    text-align: center;
  }

  /* Order information grid */
  .order-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 0.3cm;
    gap: 0.3cm;
    margin-bottom: 0.5cm;
    page-break-inside: avoid;
    background-color: white !important;
    padding: 0 !important;
  }

  .order-info-item {
    border: 1px solid #eee;
    padding: 0.3cm;
    background-color: white !important;
    box-shadow: none !important;
  }

  /* Order items table */
  .order-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0.5cm;
    page-break-inside: avoid;
  }

  .order-items-table th {
    background-color: #f8f9fa !important;
    color: #2c3e50 !important;
    font-weight: bold;
    text-align: left;
    padding: 0.2cm;
    border-bottom: 1px solid #ddd;
  }

  .order-items-table td {
    padding: 0.2cm;
    border-bottom: 1px solid #eee;
  }

  /* Total row */
  .order-total-row td {
    font-weight: bold;
    border-top: 2px solid #ddd;
    border-bottom: none;
    padding-top: 0.3cm;
  }

  /* Footer with order number and print date */
  .order-confirmation-container::after {
    content: "Order #" attr(data-order-number) " • Printed: " attr(data-print-date);
    display: block;
    text-align: center;
    font-size: 9pt;
    color: #777;
    margin-top: 0.5cm;
    padding-top: 0.2cm;
    border-top: 1px solid #eee;
    position: fixed;
    bottom: 0.5cm;
    left: 0.5cm;
    right: 0.5cm;
  }

  /* Information sections */
  .order-info-sections-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 0.3cm;
    gap: 0.3cm;
    margin-bottom: 0.5cm;
    page-break-inside: avoid;
  }

  .info-section {
    border: 1px solid #eee;
    padding: 0.3cm;
    background-color: white !important;
  }

  /* Confirmation notes and payment instructions */
  .confirmation-notes,
  .payment-instructions {
    background-color: white !important;
    border: 1px solid #eee;
    border-left: 4px solid #0066cc;
    padding: 0.3cm;
    margin-bottom: 0.5cm;
    page-break-inside: avoid;
  }

  /* Fix any overlapping elements */
  .order-details-container {
    overflow: visible !important;
  }

  /* Ensure table layout is preserved */
  .order-items-table {
    display: table !important;
    width: 100% !important;
  }

  .order-items-table thead {
    display: table-header-group !important;
  }

  .order-items-table tbody tr {
    display: table-row !important;
  }

  .order-items-table td {
    display: table-cell !important;
    text-align: left !important;
  }

  .order-items-table td:before {
    display: none !important;
  }
}

/* Email notification banner */
.email-notification {
  display: flex;
  align-items: flex-start;
  background-color: #fff8e1;
  border-left: 4px solid #ffc107;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 0 4px 4px 0;
}

.email-icon {
  color: #f57c00;
  margin-right: 15px;
  flex-shrink: 0;
}

.email-message {
  flex: 1 1;
}

.email-message p {
  margin: 0 0 8px 0;
  color: #555;
}

.email-message p:last-child {
  margin-bottom: 0;
  font-size: 14px;
}

.email-message strong {
  color: #333;
}

@media print {
  .email-notification {
    display: none !important;
  }
}

/* Container and overall layout improvements */
.order-confirmation-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  font-family: Arial, sans-serif;
  color: #333;
  min-height: 80vh;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Card styles for each section */
.order-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  padding: 25px;
  margin-bottom: 20px;
}

.order-card h2 {
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  color: #2c3e50;
}

/* Header styling */
.order-confirmation-header {
  text-align: center;
  margin-bottom: 30px;
}

.order-confirmation-header h1 {
  font-size: 28px;
  color: #2c3e50;
  margin-bottom: 10px;
}

/* Email notification styling enhancement */
.email-notification {
  display: flex;
  align-items: flex-start;
  background-color: #fff8e1;
  border-left: 4px solid #ffc107;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Order info grid improvements */
.order-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 15px;
  gap: 15px;
  margin-bottom: 0;
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
}

.order-info-item {
  display: flex;
  flex-direction: column;
  background-color: white;
  padding: 15px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.order-info-item h3 {
  font-size: 14px;
  color: #666;
  margin: 0 0 8px 0;
  font-weight: normal;
}

.order-info-item p {
  font-size: 16px;
  color: #333;
  margin: 0;
  font-weight: 600;
}

/* Order details container */
.order-details-container {
  margin-top: 20px;
}

/* Order items table improvements */
.order-items-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.order-items-table th {
  background-color: #f5f5f5;
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: #555;
  border-bottom: 2px solid #eee;
}

.order-items-table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
}

/* Information sections container */
.order-info-sections-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 20px;
  gap: 20px;
  margin-bottom: 20px;
}

.info-section {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  height: 100%;
}

/* Payment section */
.payment-section {
  margin-bottom: 20px;
}

.payid-instructions {
  margin-top: 15px;
  padding: 15px;
  background-color: #f0f8ff;
  border-radius: 6px;
  border-left: 4px solid #007bff;
}

.payment-note-box {
  background-color: #fff7e6;
  border-left: 4px solid #ffc107;
  padding: 15px;
  margin-top: 15px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Confirmation notes */
.confirmation-notes {
  background-color: #f0f8ff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  border-left: 4px solid #0066cc;
}

/* Action buttons */
.confirmation-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

.print-button,
.home-button,
.continue-shopping-button {
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.print-button {
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #ddd;
}

.print-button:hover {
  background-color: #e0e0e0;
}

.home-button {
  background-color: transparent;
  border: 2px solid #222;
  color: #222;
}

.home-button:hover {
  background-color: #f5f5f5;
}

.continue-shopping-button {
  background: #4a90e2;
  color: white;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
}

.continue-shopping-button:hover {
  background: #357abd;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
  text-decoration: none;
  color: white;
}

/* Order status badge */
.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-transform: capitalize;
  background-color: #ffc107;
  color: #333;
}

.status-badge.paid {
  background-color: #4caf50;
  color: white;
}

.status-badge.pending {
  background-color: #ff9800;
  color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .order-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .order-info-sections-container {
    grid-template-columns: 1fr;
  }

  .confirmation-actions {
    flex-direction: column;
  }

  .order-card {
    padding: 15px;
  }
}

/* Wrapper to center the content */
.client-order-confirmation-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f0f2f5;
}

/* Payment section styling enhancements */
.payment-status-row {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.status-label {
  flex: 0 0 150px;
}

.status-value {
  flex: 1 1;
}

.payment-method-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
}

.payment-method-badge.square {
  background-color: #e3f2fd;
  color: #0277bd;
}

.payment-method-badge.payid {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.payment-success-message {
  display: flex;
  align-items: center;
  margin-top: 15px;
  padding: 15px;
  background-color: #e8f5e9;
  color: #2e7d32;
  border-radius: 4px;
  font-weight: 500;
}

.payment-success-message svg {
  margin-right: 12px;
  flex-shrink: 0;
}

.payment-success-message p {
  margin: 0;
}

.payment-note-box {
  display: flex;
  align-items: flex-start;
  background-color: #fff7e6;
  border-left: 4px solid #ffc107;
  padding: 15px;
  margin-top: 15px;
  border-radius: 0 4px 4px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.payment-note-box svg {
  margin-right: 12px;
  flex-shrink: 0;
}

.payment-method-details {
  background-color: #f9f9f9;
  border-radius: 4px;
  padding: 12px;
  margin: 12px 0;
}

/* Add these styles for spinner and payment success */

.payment-subtitle {
  color: #666;
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 15px;
}

.processing-payment {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 8px;
  margin: 20px 0;
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border-left-color: #4285f4;
  animation: spin 1s ease infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.payment-success {
  text-align: center;
  padding: 30px;
  background-color: #f0f9f0;
  border-radius: 8px;
  margin: 20px 0;
}

.success-icon {
  margin-bottom: 15px;
}

.payment-success h3 {
  color: #2e7d32;
  margin-bottom: 10px;
}

.email-confirmation {
  background-color: #e8f5e9;
  padding: 10px 15px;
  border-radius: 4px;
  margin-top: 15px;
  color: #2e7d32;
  font-size: 14px;
}

/* src/components/SquarePayment.css */
.square-payment-wrapper {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.square-payment-wrapper h3 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
  font-size: 1.5rem;
}

/* This is where the Square iframe will be placed */
.square-card-container {
  min-height: 140px;
  margin-bottom: 20px;
  padding: 12px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Square adds specific classes to the iframe. These styles ensure it displays properly */
.square-card-container iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: 125px !important;
}

.payment-error {
  background-color: #ffebee;
  color: #c62828;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 4px;
  font-size: 14px;
  text-align: center;
}

.payment-summary {
  background-color: #f0f0f0;
  border-radius: 4px;
  padding: 15px;
  margin-bottom: 20px;
}

.payment-amount,
.payment-order {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 16px;
}

.payment-amount {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 10px;
}

.payment-button {
  width: 100%;
  padding: 14px 0;
  font-size: 16px;
  background-color: #006aff; /* Square's blue color */
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s;
  position: relative;
}

.payment-button:hover:not(:disabled) {
  background-color: #0055cc;
}

.payment-button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.payment-secure-note {
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
  color: #666;
}

.lock-icon {
  margin-right: 5px;
}

/* Loading animation for the button */
.payment-button:disabled::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 10px;
  border: 2px solid #fff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Media query for smaller screens */
@media (max-width: 600px) {
  .square-payment-wrapper {
    padding: 15px;
  }

  .payment-button {
    padding: 12px 0;
  }
}

.square-payment-form {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
}

.loading {
  text-align: center;
  padding: 20px;
  color: #666;
}

.payment-amount {
  text-align: center;
  margin-bottom: 20px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 6px;
}

.payment-amount h3 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 18px;
}

.payment-amount p {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #222;
}

#sq-card-number {
  margin-bottom: 20px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
}

.square-pay-button {
  width: 100%;
  padding: 14px 24px;
  background-color: #222;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.square-pay-button:hover {
  background-color: #000;
}

.square-pay-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Square input styles */
.sq-input {
  height: 40px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  width: 100%;
  transition: border-color 0.3s;
}

.sq-input:focus {
  outline: none;
  border-color: #222;
}

.sq-input--error {
  border-color: #f44336;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .square-payment-form {
    padding: 15px;
  }

  .payment-amount {
    padding: 10px;
  }

  .payment-amount p {
    font-size: 20px;
  }

  .square-pay-button {
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* Add styles for Apple Pay button and separator */
.apple-pay-button {
  -webkit-appearance: -apple-pay-button;
  -apple-pay-button-type: plain;
  -apple-pay-button-style: black;
  height: 48px;
  width: 100%;
  margin: 10px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* Fallback for browsers that don't support -apple-pay-button */
.apple-pay-button.fallback {
  background-color: black;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  padding: 0 15px;
}

.apple-pay-icon {
  margin-right: 8px;
}

.payment-method-separator {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 16px 0;
  color: #757575;
  font-size: 14px;
}

.payment-method-separator::before,
.payment-method-separator::after {
  content: "";
  flex: 1 1;
  border-bottom: 1px solid #e0e0e0;
}

.payment-method-separator span {
  margin: 0 10px;
}

/* Add styles for payment unavailable overlay */
.payment-unavailable-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
}

.payment-unavailable-message {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.payment-unavailable-message h3 {
  margin-top: 0;
  color: #333;
}

/* src/pages/ClientProductsList.css */

.client-products-page {
  font-family: Arial, sans-serif;
  color: #333;
  background-color: #f9f9f9;
  min-height: 100vh;
}

.products-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.products-header {
  text-align: center;
  margin-bottom: 30px;
}

.products-header h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: #222;
}

.products-subtitle {
  font-size: 1.1rem;
  color: #666;
}

/* Filter container styles */
.filters-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
  flex-wrap: wrap;
  padding: 0 20px;
}

.filter-container {
  display: flex;
  align-items: center;
  margin: 0;
}

.size-filters {
  display: flex;
  gap: 8px;
  margin: 0;
}

/* Tags filter container */
.tags-filter-container {
  background: white;
  border-radius: 12px;
  padding: 8px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  min-width: 200px;
}

.tags-header {
  cursor: pointer;
  -webkit-user-select: none;
          user-select: none;
}

.tags-header h3 {
  margin: 0;
  font-size: 15px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.selected-count {
  color: #666;
  font-size: 14px;
  font-weight: normal;
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 12px;
}

.expand-button {
  background: none;
  border: none;
  color: #666;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  margin-left: 4px;
}

.tags-content {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  margin-top: 8px;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 100;
  min-width: 250px;
}

.selected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.available-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  max-height: 160px;
  overflow-y: auto;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: #e9ecef;
  color: #495057;
  border-radius: 16px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-user-select: none;
          user-select: none;
}

.tag-chip:hover {
  background: #dee2e6;
  transform: translateY(-1px);
}

.tag-chip.selected {
  background: #cce5ff;
  color: #004085;
}

.tag-chip.selected:hover {
  background: #b8daff;
}

.clear-filters {
  display: block;
  width: 100%;
  padding: 6px;
  margin-top: 12px;
  background: none;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  color: #666;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
}

.clear-filters:hover {
  background: #f8f9fa;
  color: #333;
}

/* Make tags filter container relative for dropdown positioning */
.tags-filter-container {
  position: relative;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .filters-section {
    flex-direction: column;
    align-items: stretch;
    padding: 0 12px;
  }

  .filter-container {
    justify-content: center;
  }

  .tags-filter-container {
    width: 100%;
  }

  .tags-content {
    position: static;
    margin-top: 12px;
    min-width: 0;
    min-width: initial;
  }
}

/* Loading and Error States */
.loading-container {
  text-align: center;
  padding: 60px 0;
}

.loader {
  border: 5px solid #f3f3f3;
  border-top: 5px solid #2a2a2a;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.error-container {
  text-align: center;
  padding: 40px 0;
}

.error-message {
  color: #d32f2f;
  margin-bottom: 20px;
}

.retry-button {
  padding: 10px 20px;
  background-color: #2a2a2a;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.retry-button:hover {
  background-color: #444;
}

/* Product Grid - Updated to show 5 per row */
.tattoo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* Changed to exactly 5 columns */
  grid-gap: 20px;
  gap: 20px;
  margin-top: 30px;
}

.tattoo-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tattoo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.image-container {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* 1:1 Aspect ratio */
  background-color: #f9f9f9;
  overflow: hidden;
}

.tattoo-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* Changed from cover to contain */
  background-color: white;
  padding: 15px; /* Padding to prevent edge-to-edge */
  transition: opacity 0.3s, transform 0.3s;
}

.primary-image {
  opacity: 1;
  z-index: 1;
}

.hover-image {
  opacity: 0;
  z-index: 2;
}

.image-container:hover .primary-image {
  opacity: 0;
}

.image-container:hover .hover-image {
  opacity: 1;
}

.sold-out-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.sold-out-overlay span {
  background-color: #d32f2f;
  color: white;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.no-image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  padding: 15px;
  text-align: center;
}

.no-image-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  fill: #999;
}

.tattoo-code-placeholder {
  font-weight: bold;
  margin-top: 5px;
  color: #666;
}

/* Quick Buy Icon - positioned in corner */
.quick-add {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  transform: scale(0);
  transition: transform 0.3s ease;
}

.image-container:hover .quick-add {
  transform: scale(1);
}

.quick-buy-icon {
  width: 40px;
  height: 40px;
  background-color: #222;
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.quick-buy-icon svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.quick-buy-icon:hover {
  background-color: #444;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.quick-buy-icon:active {
  transform: translateY(0);
}

.quick-buy-icon.disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Product Specs Chips */
.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  line-height: 1;
  white-space: nowrap;
}

.code-chip {
  background-color: #e3f2fd;
  color: #1565c0;
}

.size-chip {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.ink-chip {
  background-color: #311b92;
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  padding: 0 12px;
}

.details-chip {
  background-color: #fff3e0;
  color: #e65100;
}

/* Main Buy Button */
.buy-button {
  padding: 8px 20px;
  background-color: #222;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.buy-button:hover {
  background-color: #444;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.buy-button:active {
  transform: translateY(0);
}

.buy-button.disabled {
  background-color: #ccc;
  cursor: not-allowed;
  color: #666;
}

.tattoo-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tattoo-name {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 5px 0;
  color: #333;
}

.price-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.tattoo-price {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0;
  color: #333;
}

.add-to-cart-button {
  padding: 6px 12px;
  background-color: #222;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.add-to-cart-button:hover {
  background-color: #444;
}

/* Improved Image Enlargement Modal */
.enlarged-image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  cursor: pointer;
  padding: 40px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.enlarged-image-container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  cursor: default;
  animation: zoomIn 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@keyframes zoomIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.enlarged-image {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
  background-color: white;
  padding: 20px;
}

.enlarged-image-caption {
  color: white;
  margin-top: 15px;
  font-size: 16px;
  text-align: center;
}

.close-enlarged-btn {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  transition: color 0.2s;
}

.close-enlarged-btn:hover {
  color: #ccc;
}

/* Floating Cart Icon */
.floating-cart-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #222;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  z-index: 100;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.floating-cart-icon:hover {
  transform: scale(1.05);
  background-color: #333;
}

.cart-icon {
  width: 26px;
  height: 26px;
  fill: white;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #e53935;
  color: white;
  font-size: 12px;
  font-weight: bold;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cart-bounce {
  animation: bounce 0.5s;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Cart Modal */
.cart-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.cart-modal {
  background-color: white;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  padding: 25px;
  position: relative;
  animation: slideUp 0.3s ease;
}

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

.close-modal-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
}

.close-modal-btn:hover {
  color: #333;
}

.cart-modal h2 {
  margin: 0 0 25px 0;
  text-align: center;
  color: #333;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.empty-cart {
  text-align: center;
  padding: 20px 0 30px;
}

.empty-cart-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
  color: #888;
}

.empty-cart p {
  color: #666;
  margin-bottom: 20px;
}

.continue-shopping {
  background: #4a90e2;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
}

.continue-shopping:hover {
  background: #357abd;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
}

.cart-items {
  margin-bottom: 20px;
  max-height: 50vh;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.cart-item:last-child {
  border-bottom: none;
}

.item-details {
  flex: 1 1;
}

.item-details h3 {
  margin: 0 0 5px 0;
  font-size: 16px;
  color: #333;
}

.item-code {
  margin: 0;
  color: #888;
  font-size: 14px;
}

.item-quantity {
  margin: 0 15px;
  color: #666;
  min-width: 60px;
  text-align: center;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.item-price {
  text-align: right;
  min-width: 80px;
}

.item-price p {
  margin: 0 0 5px 0;
  color: #666;
  font-size: 14px;
}

.item-total {
  font-weight: bold;
  color: #333 !important;
}

.cart-summary {
  margin-top: 20px;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.cart-totals {
  margin-bottom: 20px;
}

.subtotal {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  color: #333;
  font-size: 18px;
}

.cart-actions {
  display: flex;
  gap: 15px;
}

.view-cart-btn,
.checkout-btn {
  flex: 1 1;
  padding: 12px 0;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.2s;
}

.view-cart-btn {
  background-color: #f5f5f5;
  color: #333;
}

.view-cart-btn:hover {
  background-color: #e0e0e0;
}

.checkout-btn {
  background-color: #222;
  color: white;
}

.checkout-btn:hover {
  background-color: #444;
}

/* Responsive adjustments for varying screen sizes */
@media (max-width: 1200px) {
  .tattoo-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .tattoo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .tattoo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cart-modal {
    padding: 20px;
    max-width: 450px;
  }
}

@media (max-width: 480px) {
  .tattoo-grid {
    grid-template-columns: 1fr;
  }

  .floating-cart-icon {
    width: 50px;
    height: 50px;
  }

  .cart-icon {
    width: 22px;
    height: 22px;
  }

  .cart-modal {
    padding: 15px;
    width: 95%;
  }

  .cart-actions {
    flex-direction: column;
    gap: 10px;
  }

  .view-cart-btn,
  .checkout-btn {
    font-size: 14px;
    padding: 10px 0;
  }
}

.products-count {
  text-align: center;
  margin-bottom: 30px;
  color: #666;
  font-size: 14px;
}

@media (max-width: 480px) {
  .pagination-controls {
    flex-direction: column;
    gap: 10px;
  }

  .page-numbers {
    margin: 10px 0;
  }
}

/* Footer overrides for Client Products List */
.client-products-page .home-footer {
  margin-top: 40px;
  border-radius: 0;
  background-color: #222;
}

.client-products-page .footer-logo {
  width: 120px;
  height: 120px;
}

.client-products-page .footer-links {
  gap: 30px;
}

.client-products-page .footer-column h3 {
  font-size: 1rem;
}

.client-products-page .footer-column ul li {
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.client-products-page .social-icons a {
  width: 36px;
  height: 36px;
}

.client-products-page .footer-bottom {
  margin-top: 30px;
}

/* Pagination Controls */
.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 0 15px;
  gap: 20px;
}

.pagination-button {
  padding: 8px 16px;
  background-color: #2a2a2a;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.pagination-button:hover {
  background-color: #444;
}

.pagination-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.page-numbers {
  display: flex;
  gap: 8px;
}

.page-number {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  transition: all 0.3s;
}

.page-number:hover {
  background-color: #e0e0e0;
}

.page-number.active {
  background-color: #2a2a2a;
  color: white;
}

.products-count {
  text-align: center;
  margin-top: 15px;
  color: #666;
  font-size: 14px;
}

/* Responsive adjustments for filters */
@media (min-width: 768px) {
  .filters-section {
    flex-direction: row;
    justify-content: center;
    gap: 40px;
  }
}

/* Clear filters button */
.clear-filters-btn {
  background-color: #f44336;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clear-filters-btn:hover {
  background-color: #d32f2f;
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.clear-filters-btn:active {
  transform: translateY(0);
}

/* No products message */
.no-products {
  text-align: center;
  padding: 40px 20px;
  background-color: #f5f5f5;
  border-radius: 8px;
  margin-top: 20px;
}

.no-products p {
  font-size: 18px;
  color: #555;
  margin-bottom: 20px;
}

.filter-suggestions {
  max-width: 500px;
  margin: 0 auto;
}

.filter-suggestions p {
  font-size: 16px;
  margin-bottom: 15px;
}

.filter-suggestions button {
  background: none;
  border: none;
  color: #3f51b5;
  text-decoration: underline;
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  font-weight: 500;
}

.filter-suggestions button:hover {
  color: #1a237e;
}

.reset-filters-btn {
  background-color: #333 !important;
  color: white !important;
  border: none;
  padding: 10px 20px !important;
  border-radius: 25px;
  font-size: 14px !important;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none !important;
  display: inline-block;
  margin-top: 10px;
}

.reset-filters-btn:hover {
  background-color: #555 !important;
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.sizing-guide-btn {
  position: absolute;
  right: 70px;
  bottom: 10px;
  background: #fff;
  color: #222;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  z-index: 110;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.sizing-guide-btn:hover {
  background: #222;
  color: #fff;
  border-color: #222;
}

.sizing-guide-question-wrapper {
  display: inline-block;
  position: relative;
  margin-left: 8px;
}
.sizing-guide-question-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border: 2px solid #333;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.13);
  margin-left: 2px;
  position: relative;
  outline: none;
  padding: 0;
}
.sizing-guide-question-btn:hover,
.sizing-guide-question-btn:focus {
  background: linear-gradient(135deg, #e0e7ef 0%, #b0b8c9 100%);
  color: #222;
  border-color: #222;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px) scale(1.07);
}
.sizing-guide-question-btn svg {
  display: block;
}
.sizing-guide-tooltip {
  position: absolute;
  left: 50%;
  top: 120%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  padding: 8px 22px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  opacity: 0.98;
  pointer-events: none;
  z-index: 200;
  letter-spacing: 0.5px;
  animation: fadeInTooltip 0.18s;
  font-family: "Segoe UI", Arial, sans-serif;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
@keyframes fadeInTooltip {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 0.97;
    transform: translateX(-50%) translateY(0);
  }
}

.tooltip-container {
  position: relative;
  background-color: #f47fff;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  fill: #fff;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  margin-left: 6px;
  z-index: 2;
}
.tooltip-container .borde-back {
  width: 38px;
  height: 38px;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: none;
}
.tooltip-container .icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  background-color: #5865f2;
  cursor: pointer;
}
.tooltip {
  position: absolute;
  top: 50%;
  left: 110%;
  transform: translateY(-50%);
  width: 110px;
  height: 36px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  border-radius: 30px;
  background-color: #f47fff;
  background-image: linear-gradient(-90deg, #f47fff 0%, #5865f2 75%, #5865f2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  padding: 0 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 10;
}
.tooltip::before {
  position: absolute;
  content: "";
  height: 0.5em;
  width: 0.5em;
  left: -0.25em;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  background: #f47fff;
  background-image: linear-gradient(-90deg, #f47fff 0%, #5865f2 75%, #5865f2 100%);
  z-index: 11;
}
.tooltip-container:hover .tooltip {
  opacity: 1;
  pointer-events: auto;
  z-index: 20;
}
.tooltip-container:hover {
  transform: none;
  transition: 0.2s linear;
}

.filter-chip {
  background-color: #f0f0f0;
  border: 2px solid transparent;
  color: #333;
  min-width: 54px;
  max-width: 54px;
  height: 38px;
  padding: 0;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

.filter-chip:hover {
  background-color: #e0e0e0;
}

.filter-chip.active {
  background-color: #333;
  color: white;
  border-color: #333;
}

/* Special styling for stock filters */
.stock-filters .filter-chip.active.in-stock-filter {
  background-color: #388e3c;
  border-color: #388e3c;
}

.stock-filters .filter-chip.active.sold-out-filter {
  background-color: #d32f2f;
  border-color: #d32f2f;
}

/* src/components/MiniCart.css */
.mini-cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.mini-cart-container {
  width: 400px;
  max-width: 90%;
  height: 100%;
  background-color: white;
  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  animation: slideIn 0.3s forwards;
}

@keyframes slideIn {
  to {
    transform: translateX(0);
  }
}

.mini-cart-container.open {
  transform: translateX(0);
}

.mini-cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.mini-cart-header h3 {
  margin: 0;
  font-size: 18px;
  color: #333;
}

.mini-cart-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #777;
  transition: color 0.2s;
}

.mini-cart-close:hover {
  color: #222;
}

.mini-cart-content {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mini-cart-empty {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
}

.empty-cart-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 15px;
}

.empty-cart-icon svg {
  width: 100%;
  height: 100%;
  fill: #aaa;
}

.mini-cart-empty p {
  margin-bottom: 20px;
  color: #666;
}

.continue-shopping-btn {
  background: #4a90e2;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
}

.continue-shopping-btn:hover {
  background: #357abd;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
}

.mini-cart-items {
  flex: 1 1;
  overflow-y: auto;
  padding: 15px;
}

.mini-cart-item {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #eee;
  position: relative;
  opacity: 0;
  transform: translateX(20px);
}

.mini-cart-item.animate {
  animation: fadeInRight 0.3s forwards;
}

@keyframes fadeInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mini-cart-item-image {
  width: 60px;
  height: 60px;
  margin-right: 15px;
  border-radius: 4px;
  overflow: hidden;
}

.mini-cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-cart-item-image.no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  border: 1px solid #e0e0e0;
}

.image-not-available {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  text-align: center;
  padding: 5px;
}

.image-not-available span {
  font-size: 10px;
  line-height: 1.2;
  color: #777;
}

.mini-cart-item-details {
  flex: 1 1;
  min-width: 0;
}

.mini-cart-item-name {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-cart-item-code {
  color: #777;
  font-size: 12px;
  margin-bottom: 4px;
}

.mini-cart-item-price {
  font-weight: 600;
  font-size: 14px;
}

.mini-cart-item-quantity {
  display: flex;
  align-items: center;
  margin: 0 15px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.qty-btn:hover {
  background-color: #e0e0e0;
}

.qty-value {
  margin: 0 10px;
  font-size: 14px;
  min-width: 20px;
  text-align: center;
}

.mini-cart-item-total {
  font-weight: 600;
  font-size: 14px;
  min-width: 60px;
  text-align: right;
}

.mini-cart-item-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 18px;
  color: #999;
  cursor: pointer;
  transition: color 0.2s;
}

.mini-cart-item-remove:hover {
  color: #f44336;
}

.mini-cart-footer {
  padding: 20px;
  border-top: 1px solid #eee;
  background-color: #f9f9f9;
}

.mini-cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
}

.mini-cart-shipping-note {
  font-size: 13px;
  color: #777;
  margin-bottom: 20px;
  text-align: center;
}

.mini-cart-actions {
  display: flex;
  gap: 10px;
}

.view-cart-btn,
.checkout-btn {
  flex: 1 1;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.view-cart-btn {
  background-color: transparent;
  border: 2px solid #222;
  color: #222;
}

.view-cart-btn:hover {
  background-color: #f5f5f5;
}

.checkout-btn {
  background-color: #222;
  color: white;
}

.checkout-btn:hover {
  background-color: #000;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .mini-cart-container {
    width: 100%;
  }

  .mini-cart-item {
    flex-wrap: wrap;
  }

  .mini-cart-item-image {
    width: 50px;
    height: 50px;
  }

  .mini-cart-item-details {
    width: calc(100% - 65px);
  }

  .mini-cart-item-quantity {
    margin: 10px 0 0 65px;
  }

  .mini-cart-item-total {
    margin-left: auto;
    margin-top: 10px;
  }
}

/* src/pages/ClientShoppingCart.css */

.client-shopping-cart {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: Arial, sans-serif;
  color: #333;
  min-height: 80vh;
}

/* Progress Indicator */
.checkout-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 0 10px;
}

.progress-step {
  display: flex;
  align-items: center;
  flex: 1 1;
  position: relative;
  font-size: 14px;
}

.step-indicator {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #e0e0e0;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  font-weight: bold;
}

.progress-step.active .step-indicator {
  background-color: #4a90e2;
  color: white;
}

.progress-step.completed .step-indicator {
  background-color: #4caf50;
  color: white;
}

.progress-connector {
  flex: 1 1;
  height: 2px;
  background-color: #e0e0e0;
  margin: 0 10px;
}

.checkout-container {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 40px;
}

/* Cart Items Section */
.cart-items-section {
  width: 100%;
}

.empty-cart-message {
  text-align: center;
  padding: 40px 20px;
}

.empty-cart-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
}

.empty-cart-icon svg {
  width: 100%;
  height: 100%;
  fill: #aaa;
}

.empty-cart-message h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #555;
}

.empty-cart-message p {
  color: #777;
  margin-bottom: 25px;
}

.continue-shopping-btn {
  background: #4a90e2;
  border: none;
  color: white;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  width: auto;
  text-decoration: none;
}

.continue-shopping-btn:hover {
  background: #357abd;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
}

.continue-shopping-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(74, 144, 226, 0.2);
}

/* Cart Table with Improved Layout */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cart-table th {
  background-color: #f5f5f5;
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: #333;
}

.cart-table td {
  padding: 12px;
  border-top: 1px solid #eee;
  vertical-align: middle;
}

/* Column widths */
.image-column {
  width: 100px;
  padding: 10px 15px;
}

.product-column {
  width: 35%;
  text-align: left;
  padding-left: 10px;
}

.price-qty-column {
  width: 28%;
  min-width: 90px;
  font-size: 15px;
  text-align: center;
  white-space: nowrap;
}

.total-column {
  width: 15%;
  font-weight: 600;
}

/* Product Image Container - Enhanced styling with fixed dimensions */
.product-image-container {
  width: 80px;
  height: 80px;
  position: relative;
}

.product-image {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product Details - Improved typography */
.product-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 5px;
}

.product-name {
  font-weight: 600;
  margin: 0 0 6px 0;
  font-size: 16px;
  color: #333;
  line-height: 1.3;
}

.product-code {
  font-size: 13px;
  color: #777;
  margin: 0;
  background-color: #f5f5f5;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}

/* Hover effect for product image */
.product-image-container:hover img {
  transform: scale(1.08);
}

/* Fullscreen button styling */
.fullscreen-button {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s ease;
  font-size: 14px;
}

.fullscreen-button svg {
  font-size: 18px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.product-image-container:hover .fullscreen-button {
  opacity: 1;
}

/* Shipping Options */
.shipping-options {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.shipping-options h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #444;
}

.shipping-radio-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.shipping-option {
  display: flex;
  align-items: center;
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.shipping-option:hover {
  border-color: #4a90e2;
}

.shipping-option.selected {
  border-color: #4a90e2;
  background-color: #f8f9ff;
}

.shipping-option input {
  margin-right: 15px;
}

.option-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.option-info {
  display: flex;
  flex-direction: column;
}

.option-title {
  font-weight: 600;
  margin-bottom: 5px;
}

.option-description {
  font-size: 14px;
  color: #777;
}

.option-price {
  font-weight: 600;
  color: #333;
}

/* Cart Summary */
.cart-summary {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 15px;
}

.summary-row.total {
  border-top: 2px solid #eee;
  margin-top: 10px;
  padding-top: 15px;
  font-weight: bold;
  font-size: 18px;
}

/* Cart Actions */
.cart-actions {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.checkout-btn {
  background-color: #4a90e2;
  border: none;
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  flex: 1 1;
}

.checkout-btn:hover {
  background-color: #3a7bd5;
}

/* Shipping Form Section */
.shipping-form-section {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.shipping-form-section h2 {
  font-size: 24px;
  margin-bottom: 30px;
  text-align: center;
  color: #333;
}

/* Form Layout */
.form-row {
  margin-bottom: 20px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 20px;
  gap: 20px;
}

.form-row.two-columns {
  grid-template-columns: repeat(2, 1fr);
}

.form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.form-group label {
  margin-bottom: 8px;
  font-weight: 600;
  color: #555;
}

.form-group input {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #222;
}

.form-group input.error {
  border-color: #f44336;
}

.error-message {
  color: #f44336;
  font-size: 14px;
  margin-top: 5px;
}

/* Make form action buttons full width and stacked for all screen sizes */
.form-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.form-actions button {
  width: 100%;
  font-size: 16px;
  padding: 14px 0;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-button {
  background: white;
  color: #222;
  border: 2px solid #222;
  box-shadow: none;
}

.back-button:hover {
  background: #f5f5f5;
  color: #111;
  border-color: #111;
}

.continue-button {
  background-color: #4a90e2;
  color: white;
  border: none;
}

.continue-button:hover {
  background-color: #357abd;
}

.back-button svg,
.continue-button svg {
  margin-right: 8px;
}

/* Order Confirmation Section */
.order-confirmation-section {
  width: 100%;
}

.order-confirmation-section h2 {
  font-size: 24px;
  margin-bottom: 30px;
  text-align: center;
  color: #333;
}

.confirmation-block {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.confirmation-blocks-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 20px;
  gap: 20px;
  margin-bottom: 20px;
}

.confirmation-block h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #555;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.confirmation-block p {
  margin: 8px 0;
  line-height: 1.5;
}

.confirmation-table {
  width: 100%;
  border-collapse: collapse;
}

.confirmation-table th {
  text-align: left;
  padding: 10px;
  background-color: #f0f0f0;
  font-weight: 600;
  color: #555;
}

.confirmation-table td {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.conf-product-info {
  display: flex;
  flex-direction: column;
}

.conf-product-name {
  font-weight: 600;
  margin: 0 0 5px 0;
}

.conf-product-code {
  font-size: 14px;
  color: #777;
  margin: 0;
}

.confirmation-summary {
  background-color: #222;
  color: white;
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 30px;
}

.confirmation-summary .summary-row {
  color: white;
}

.confirmation-summary .summary-row.total {
  border-top-color: rgba(255, 255, 255, 0.2);
}

.confirmation-actions {
  display: flex;
  justify-content: space-between;
}

.complete-order-button {
  background-color: #4caf50;
  color: white;
  padding: 14px 28px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.complete-order-button:hover {
  background-color: #45a049;
}

.complete-order-button:disabled,
.back-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Payment Options Section */
.payment-options-section {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.payment-options-section h2 {
  font-size: 24px;
  margin-bottom: 10px;
  text-align: center;
  color: #333;
}

.payment-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
}

.payment-section {
  margin-bottom: 2rem;
}

.payment-methods {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.payment-method-option {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
}

.payment-method-option:hover {
  border-color: #ddd;
  background-color: #f9f9f9;
}

.payment-method-option.selected {
  border-color: #4a90e2;
  box-shadow: 0 0 0 1px #4a90e2;
}

.payment-method-radio {
  margin-right: 15px;
  padding-top: 2px;
}

.radio-button {
  width: 22px;
  height: 22px;
  border: 2px solid #ddd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}

.radio-button.selected {
  border-color: #222;
}

.radio-inner {
  width: 12px;
  height: 12px;
  background-color: #222;
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.2s;
}

.radio-button.selected .radio-inner {
  transform: scale(1);
}

.payment-method-details {
  flex-grow: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.payment-method-info {
  flex-grow: 1;
}

.payment-method-info h3 {
  font-size: 18px;
  margin: 0 0 8px 0;
  color: #333;
}

.payment-method-info p {
  margin: 0 0 8px 0;
  color: #666;
}

.payment-fee {
  font-size: 14px;
  color: #999;
}

.payment-method-logos {
  display: flex;
  gap: 10px;
}

.card-logo {
  display: inline-block;
  width: 40px;
  height: 25px;
  border-radius: 4px;
  background-color: #f3f3f3;
  text-indent: -9999px;
  position: relative;
}

.card-logo.visa::after,
.card-logo.mastercard::after,
.card-logo.amex::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.payment-method-logo {
  width: 60px;
  text-align: center;
  padding: 5px;
  border-radius: 4px;
  background-color: #f3f3f3;
  font-weight: bold;
  font-size: 12px;
}

.payid-email-form {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.payid-email-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #555;
}

.payid-email-form input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  margin-bottom: 8px;
}

.payid-note {
  font-size: 14px;
  color: #999;
}

/* Update the form select style */
.form-group select {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  width: 100%;
  background-color: white;
  transition: border-color 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill=%27black%27 height=%2724%27 viewBox=%270 0 24 24%27 width=%2724%27 xmlns=%27http://www.w3.org/2000/svg%27><path d=%27M7 10l5 5 5-5z%27/><path d=%27M0 0h24v24H0z%27 fill=%27none%27/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.form-group select:focus {
  outline: none;
  border-color: #222;
}

.form-group select.error {
  border-color: #f44336;
}

/* Payment info in confirmation */
.payment-info {
  line-height: 1.6;
}

.payment-note {
  font-size: 14px;
  color: #666;
  font-style: italic;
  margin-top: 5px;
}

/* Add the following styles for payment options */

.payment-method-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  cursor: pointer;
  background-color: #f9f9f9;
}

.payment-method-option.selected .payment-method-header {
  background-color: #f0f7ff;
}

.payment-method-info h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.payment-method-info p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  color: #666;
}

.fee-indicator {
  font-weight: bold;
  color: #e74c3c;
}

.payment-summary {
  padding: 1rem;
  background-color: #f9f9f9;
  border-top: 1px solid #e0e0e0;
}

.payment-amount,
.payment-fee,
.payment-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.payment-total {
  font-weight: bold;
  border-top: 1px solid #e0e0e0;
  padding-top: 0.5rem;
}

.payid-instructions {
  padding: 1rem;
  background-color: #f9f9f9;
}

.payid-value {
  font-size: 1.2rem;
  font-weight: bold;
  padding: 0.5rem;
  background-color: #f0f0f0;
  border-radius: 4px;
  text-align: center;
  margin: 0.5rem 0;
}

.payment-error {
  color: #e74c3c;
  padding: 0.75rem;
  background-color: #ffe6e6;
  border-radius: 4px;
  margin-top: 1rem;
}

.payment-success {
  color: #27ae60;
  padding: 0.75rem;
  background-color: #e6ffe6;
  border-radius: 4px;
  margin-top: 1rem;
  text-align: center;
}

.payid-preview {
  margin-top: 1rem;
  padding: 1rem;
  background-color: #f2f8ff;
  border-radius: 8px;
  border: 1px dashed #4a90e2;
}

.payid-preview p {
  margin: 0.5rem 0;
}

.payid-notice {
  margin-top: 1rem;
  padding: 1rem;
  background-color: #f8fff2;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.payid-notice p {
  margin: 0.5rem 0;
  color: #4a8f29;
  font-weight: 500;
  text-align: center;
}

/* Enhanced Image Preview Modal */
.image-preview-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
}

.image-preview-content {
  max-width: 90%;
  max-height: 90vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-preview-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  background-color: white;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.close-preview-button {
  position: absolute;
  top: -40px;
  right: -40px;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

/* Quantity Controls */
.quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-btn {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.quantity-btn:hover {
  background: #f5f5f5;
}

.quantity-display {
  min-width: 40px;
  text-align: center;
}

/* iPad Specific Optimizations */
@media (min-width: 768px) and (max-width: 1024px) {
  .client-shopping-cart {
    max-width: 90%;
  }

  .cart-table {
    margin-bottom: 15px;
  }

  .product-image-container {
    width: 70px;
    height: 70px;
  }

  .shipping-options,
  .cart-summary {
    padding: 15px;
  }

  .shipping-radio-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 10px;
    gap: 10px;
  }

  .cart-actions {
    flex-direction: row;
    gap: 10px;
  }

  .continue-shopping-btn,
  .checkout-btn {
    flex: 1 1;
    font-size: 14px;
    padding: 10px 20px;
  }

  .summary-row {
    font-size: 14px;
  }

  .summary-row.total {
    font-size: 16px;
  }
}

/* Touch-friendly improvements */
.shipping-option,
.quantity-btn,
.continue-shopping-btn,
.checkout-btn {
  min-height: 44px; /* Minimum touch target size */
}

input[type="radio"] {
  width: 20px;
  height: 20px;
}

/* Loading and Processing States */
.processing-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.processing-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #4a90e2;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Stock Adjustment Notice */
.stock-adjustment-notice {
  background-color: #fff3e0;
  border: 1px solid #ffcc80;
  border-radius: 8px;
  padding: 15px;
  margin: 20px 0;
}

.notice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.notice-header h3 {
  margin: 0;
  color: #856404;
  font-size: 1.2rem;
  font-weight: 600;
}

.close-notice {
  background: none;
  border: none;
  color: #856404;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 5px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.close-notice:hover {
  opacity: 1;
}

.notice-content {
  color: #856404;
}

.notice-content p {
  margin-bottom: 15px;
  line-height: 1.5;
}

.adjusted-items-list {
  margin: 10px 0;
}

.adjusted-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #ffe0b2;
}

.adjusted-item:last-child {
  border-bottom: none;
}

.item-name {
  font-weight: 600;
  color: #333;
}

.quantity-change {
  color: #721c24;
  font-size: 0.95rem;
  background-color: #f8d7da;
  padding: 4px 8px;
  border-radius: 4px;
}

.follow-instagram {
  margin-top: 15px !important;
  text-align: center;
  font-weight: 500;
}

.follow-instagram a {
  color: #0366d6;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.follow-instagram a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Cart Items List */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.cart-item {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
}

.item-image {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.item-info h4 {
  margin: 0;
  font-size: 16px;
  color: #333;
  font-weight: 500;
}

.item-info h4 span {
  color: #666;
  font-weight: normal;
}

.item-code {
  font-size: 14px;
  color: #666;
}

.item-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  width: 100%;
}

.price-quantity-group {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.item-price {
  font-size: 15px;
  color: #666;
  min-width: 60px;
}

.quantity-controls {
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #f8f8f8;
}

.item-total {
  font-size: 16px;
  color: #4a90e2;
  font-weight: 600;
  min-width: 80px;
  text-align: right;
}

.item-total::before {
  content: "Total: ";
  font-weight: normal;
  color: #666;
}

.remove-item {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: #f5f5f5;
  color: #666;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.remove-item:hover {
  background: #ff4d4f;
  color: white;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .cart-item {
    padding: 16px;
  }

  .item-image {
    height: 180px;
  }

  .item-price-row {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .price-quantity-group {
    width: 100%;
    justify-content: space-between;
  }

  .quantity-controls {
    padding: 3px;
  }

  .quantity-btn {
    width: 26px;
    height: 26px;
    font-size: 14px;
  }

  .quantity-display {
    min-width: 26px;
    font-size: 14px;
  }

  .item-price,
  .item-total {
    font-size: 15px;
  }
}

.shipping-method-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 16px;
  gap: 16px;
  margin: 24px 0;
  width: 100%;
}

.shipping-method-card {
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  background: white;
}

.shipping-method-card:hover {
  border-color: #4a90e2;
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.1);
}

.shipping-method-card.selected {
  border-color: #4a90e2;
  background-color: #4a90e2;
}

.shipping-method-card.selected .shipping-method-details h3,
.shipping-method-card.selected .shipping-method-details p,
.shipping-method-card.selected .shipping-price {
  color: white;
}

.shipping-method-card.selected .shipping-method-icon {
  background: white;
  color: #4a90e2;
}

.shipping-method-card input[type="radio"] {
  position: absolute;
  top: 16px;
  right: 16px;
  margin: 0;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.shipping-method-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.shipping-method-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #4a90e2;
  border-radius: 50%;
  color: white;
  font-size: 18px;
  flex-shrink: 0;
}

.shipping-method-details {
  flex: 1 1;
  padding-right: 24px; /* Space for the radio button */
}

.shipping-method-details h3 {
  margin: 0 0 4px 0;
  font-size: 15px;
  font-weight: 500;
  color: #333;
}

.shipping-method-details p {
  margin: 0 0 8px 0;
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

.shipping-price {
  display: inline-block;
  font-weight: 500;
  color: #4a90e2;
  font-size: 14px;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .shipping-method-options {
    grid-template-columns: 1fr;
  }

  .shipping-method-card {
    padding: 14px;
  }

  .shipping-method-card input[type="radio"] {
    top: 14px;
    right: 14px;
  }

  .shipping-method-content {
    gap: 10px;
  }

  .shipping-method-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .shipping-method-details {
    padding-right: 20px;
  }

  .shipping-method-details h3 {
    font-size: 14px;
  }

  .shipping-method-details p {
    font-size: 12px;
  }

  .shipping-price {
    font-size: 13px;
  }
}

/* Mobile Responsive Layout */
@media (max-width: 768px) {
  .form-row.two-columns {
    grid-template-columns: 1fr;
  }

  /* Special handling for email/phone row */
  .form-row.contact-info {
    grid-template-columns: 1fr;
  }

  /* Special handling for city/state/postal row */
  .form-row.location-info {
    grid-template-columns: 1fr;
  }

  .form-group input,
  .form-group select {
    width: 100%;
    font-size: 16px; /* Prevent iOS zoom */
    padding: 12px;
  }
}

/* Maintain desktop layout */
@media (min-width: 769px) {
  .form-row.contact-info,
  .form-row.location-info {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row.location-info.with-postal {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Add help text styling */
.address-help-text {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
  line-height: 1.4;
  font-style: italic;
  padding: 0 2px;
}

/* Form group input focus with help text */
.form-group:focus-within .address-help-text {
  color: #4a90e2;
}

.form-group input.error {
  border-color: #e74c3c;
  background-color: #fef9f9;
}

.step {
  background-color: white;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.step:hover {
  transform: translateY(-7px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.step-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.step-image img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.step:hover .step-image img {
  transform: scale(1.05);
}

.step-number {
  background-color: #4f46e5;
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.3rem;
  margin: -24px 0 16px 24px;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
  position: relative;
  z-index: 2;
}

.step-content {
  flex-grow: 1;
  padding: 0 24px 24px 24px;
}

.step-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 12px;
}

.step-description {
  color: #4a5568;
  line-height: 1.6;
  font-size: 1rem;
}

@media (max-width: 992px) {
  .step-image {
    height: 220px;
  }
}

@media (max-width: 768px) {
  .step-image {
    height: 200px;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    margin: -20px 0 16px 16px;
  }

  .step-content {
    padding: 0 16px 16px 16px;
  }

  .step-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .step-image {
    height: 180px;
  }
}

.tips {
  background-color: #fff7ed;
  border-left: 5px solid #f97316;
  padding: 30px;
  margin-top: 50px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.tips::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background-image: radial-gradient(
    circle at bottom right,
    rgba(251, 146, 60, 0.08) 20%,
    transparent 70%
  );
  z-index: 0;
}

.tips-title {
  color: #c2410c;
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.tips-title::before {
  content: "⚠️";
  margin-right: 10px;
  font-size: 1.5rem;
}

.tips ul {
  margin: 0;
  padding-left: 28px;
  position: relative;
  z-index: 1;
}

.tips li {
  margin-bottom: 16px;
  color: #57534e;
  line-height: 1.7;
  font-size: 1.05rem;
  position: relative;
}

.tips li::marker {
  color: #f97316;
}

.tips li:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .tips {
    padding: 24px;
    margin-top: 40px;
  }

  .tips-title {
    font-size: 1.3rem;
  }

  .tips li {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .tips {
    padding: 20px;
  }

  .tips-title {
    font-size: 1.2rem;
  }
}

.tattoo-guide {
  font-family: inherit;
  line-height: 1.6;
  color: #333;
  width: 100%;
  margin: 0 auto;
}

.header {
  text-align: center;
  margin-bottom: 40px;
}

.header h1 {
  color: #2c3e50;
  font-size: 2.5em;
  margin-bottom: 10px;
}

.tagline {
  color: #7f8c8d;
  font-size: 1.2em;
  margin-bottom: 30px;
}

.container {
  background-color: white;
  border-radius: 24px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(to right, #4f46e5, #ec4899);
}

.footer {
  text-align: center;
  color: #7f8c8d;
  margin-top: 40px;
  font-size: 0.9em;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 32px;
  gap: 32px;
  margin-bottom: 50px;
}

@media (max-width: 992px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 30px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 20px;
    border-radius: 20px;
  }

  .steps-grid {
    gap: 20px;
  }
}

.shop-banner {
  background: #ffffff;
  padding: 30px 20px;
  margin: -60px -24px 40px -24px;
  text-align: center;
  color: #1e293b;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #e5e7eb;
}

.shop-banner-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.shop-banner-text {
  flex: 1 1;
  text-align: left;
}

.shop-banner h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #1e293b;
  letter-spacing: -0.02em;
}

.shop-banner p {
  font-size: 1rem;
  margin: 0;
  color: #64748b;
  font-weight: 400;
}

.shop-banner-button {
  background-color: #1e293b;
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
  border: 1px solid #1e293b;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.shop-banner-button:hover {
  background-color: #0f172a;
  border-color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 41, 59, 0.2);
}

.tattoo-application-page {
  background-color: #f8fafc;
  min-height: 100vh;
  padding: 60px 24px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.application-header {
  text-align: center;
  margin-bottom: 50px;
}

.application-header h1 {
  font-size: 2.5rem;
  color: #1e293b;
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.application-header .subtitle {
  font-size: 1.2rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* Video and Aftercare Side by Side Container */
.video-aftercare-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 30px;
  gap: 30px;
  margin: 50px 0;
  align-items: stretch;
}

/* Video Section */
.application-video-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.application-video-wrapper {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  background-color: #000;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.application-video-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.application-video {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background-color: #000;
}

.application-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s ease, background 0.3s ease;
  z-index: 1;
}

.application-video-wrapper:hover .application-video-overlay {
  background: rgba(0, 0, 0, 0.4);
}

.application-video-play-button {
  background: white;
  border: none;
  border-radius: 50%;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), 0 8px 30px rgba(0, 0, 0, 0.15);
  position: relative;
}

.application-video-play-button::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: scale(0.8);
}

.application-video-play-button:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.35), 0 12px 40px rgba(0, 0, 0, 0.2);
}

.application-video-play-button:hover::before {
  opacity: 1;
  transform: scale(1);
}

.application-video-play-button:active {
  transform: scale(1.02);
}

.application-video-play-button svg {
  margin-left: 4px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  z-index: 1;
  position: relative;
}

.application-video-text {
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Best Practices Section */
.best-practices-section {
  margin: 70px 0;
  padding: 40px;
  background-color: white;
  border-radius: 24px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
}

.best-practices-section h2 {
  font-size: 1.8rem;
  color: #334155;
  margin-bottom: 35px;
  text-align: center;
  font-weight: 700;
  position: relative;
  padding-bottom: 16px;
}

.best-practices-section h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #4f46e5;
  border-radius: 2px;
}

.practices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 40px;
  gap: 40px;
}

.practice-card {
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

.practice-card:hover {
  transform: translateY(-5px);
}

.practice-card.do {
  background-color: #ecfdf5;
  border-left: 5px solid #10b981;
}

.practice-card.dont {
  background-color: #fef2f2;
  border-left: 5px solid #ef4444;
}

.practice-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.do .practice-icon {
  color: #10b981;
}

.dont .practice-icon {
  color: #ef4444;
}

.practice-card h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.do h3 {
  color: #047857;
}

.dont h3 {
  color: #b91c1c;
}

.practice-card ul {
  padding-left: 20px;
  margin: 0;
}

.practice-card li {
  margin-bottom: 12px;
  color: #334155;
  line-height: 1.6;
  font-size: 1.05rem;
}

/* Aftercare Card Styles */
.aftercare-card-container {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.aftercare-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: linear-gradient(135deg, #f5f3ff 0%, #e0f2fe 100%);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.15);
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
  width: 100%;
  height: 100%;
}

.aftercare-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.25);
  border-color: #c7d2fe;
}

.aftercare-card-content {
  display: flex;
  flex-direction: column;
  padding: 30px;
  align-items: flex-start;
  justify-content: center;
  height: 100%;
  gap: 20px;
}

.aftercare-card-icon {
  background-color: #ec4899;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.25);
}

.aftercare-card-text {
  flex: 1 1;
}

.aftercare-card-text h3 {
  color: #4f46e5;
  font-size: 1.5rem;
  margin: 0 0 12px 0;
  font-weight: 700;
}

.aftercare-card-text p {
  color: #475569;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

.aftercare-card-arrow {
  color: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: auto;
  transition: transform 0.3s ease;
}

.aftercare-card:hover .aftercare-card-arrow {
  transform: translateX(8px);
}

@media (max-width: 768px) {
  .tattoo-application-page {
    padding: 40px 20px;
  }

  .shop-banner {
    margin: -40px -20px 30px -20px;
    padding: 16px;
  }

  .shop-banner-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .shop-banner-text {
    text-align: center;
  }

  .shop-banner h2 {
    font-size: 1.3rem;
  }

  .shop-banner p {
    font-size: 1rem;
  }

  .application-header h1 {
    font-size: 2rem;
  }

  .video-aftercare-container {
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 40px 0;
  }

  .aftercare-card-content {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }

  .aftercare-card-icon {
    margin-right: 24px;
    margin-bottom: 0;
  }

  .aftercare-card-arrow {
    margin-top: 0;
    margin-left: 24px;
  }

  .best-practices-section {
    padding: 30px;
    margin: 50px 0;
  }

  .best-practices-section h2 {
    font-size: 1.6rem;
  }

  .practices-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .aftercare-card-content {
    padding: 24px;
  }

  .aftercare-card-icon {
    width: 50px;
    height: 50px;
    margin-right: 20px;
  }
}

@media (max-width: 640px) {
  .tattoo-application-page {
    padding: 30px 16px;
  }

  .application-header h1 {
    font-size: 1.8rem;
  }

  .application-header .subtitle {
    font-size: 1.05rem;
  }

  .application-video-container {
    margin: 40px 0;
  }

  .application-video-play-button {
    width: 80px;
    height: 80px;
  }

  .application-video-play-button svg {
    width: 48px;
    height: 48px;
  }

  .application-video-text {
    font-size: 1rem;
  }

  .best-practices-section {
    padding: 24px;
    margin: 40px 0;
  }

  .aftercare-card-content {
    padding: 20px;
  }

  .aftercare-card-text h3 {
    font-size: 1.3rem;
  }

  .aftercare-card-text p {
    font-size: 0.95rem;
  }

  .aftercare-card-icon {
    width: 45px;
    height: 45px;
    margin-right: 16px;
  }
}

.aftercare-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px;
  background-color: #fff;
  min-height: calc(100vh - 70px);
  padding-bottom: 60px;
}

.aftercare-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f3f4f6;
}

.aftercare-header h1 {
  font-size: 2rem;
  color: #333;
  margin: 0 16px;
  font-weight: 600;
}

.heart-icon {
  color: #f472b6;
}

.aftercare-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.aftercare-section {
  background-color: #f9fafb;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.aftercare-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.aftercare-section h2 {
  color: #4f46e5;
  font-size: 1.5rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.aftercare-section p {
  color: #4b5563;
  line-height: 1.6;
  font-size: 1rem;
}

/* Body location cards */
.body-location-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-gap: 16px;
  gap: 16px;
  margin-top: 20px;
}

.body-location-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.body-location-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  border-color: #d1d5db;
}

.location-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ebf4ff 0%, #e6f7ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  color: #4f46e5;
  flex-shrink: 0;
  border: 1px solid #e0e7ff;
  padding: 8px;
  overflow: hidden;
}

.location-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.location-info {
  flex: 1 1;
}

.location-info h3 {
  font-size: 1rem;
  color: #1e293b;
  margin: 0 0 8px 0;
  font-weight: 600;
}

.duration {
  display: flex;
  align-items: center;
  color: #64748b;
  font-size: 0.95rem;
}

.duration svg {
  margin-right: 6px;
  color: #6366f1;
}

.durability-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-gap: 12px;
  gap: 12px;
}

.durability-list li {
  padding: 12px 16px;
  background-color: #fff;
  border-radius: 8px;
  border-left: 4px solid #4f46e5;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  color: #4b5563;
  font-weight: 500;
}

.aftercare-footer {
  margin-top: 48px;
  text-align: center;
  color: #6b7280;
  font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .aftercare-header h1 {
    font-size: 1.75rem;
  }

  .aftercare-section h2 {
    font-size: 1.25rem;
  }

  .body-location-cards {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (max-width: 480px) {
  .aftercare-page {
    padding: 16px;
  }

  .aftercare-header h1 {
    font-size: 1.5rem;
  }

  .aftercare-section {
    padding: 16px;
  }

  .body-location-cards {
    grid-template-columns: 1fr;
  }

  .body-location-card {
    padding: 16px;
  }
}

/* src/pages/AdminOrder.css */

.admin-order-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.admin-order-header {
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.admin-order-header h1 {
  margin: 0;
  font-size: 2.2rem;
  color: #333;
}

.header-actions {
  display: flex;
  gap: 10px;
}

.back-button,
.refresh-button {
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.back-button {
  background-color: #6c757d;
  color: white;
}

.back-button:hover {
  background-color: #5a6268;
}

.refresh-button {
  background-color: #007bff;
  color: white;
}

.refresh-button:hover {
  background-color: #0069d9;
}

/* Filter controls */
.order-filter-controls {
  background-color: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-group label {
  font-weight: 600;
  color: #495057;
}

.filter-group select {
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  min-width: 180px;
}

/* Orders list section */
.orders-list-section {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 30px;
}

.orders-list-section h2 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.loading-spinner {
  text-align: center;
  padding: 30px;
  color: #666;
}

.error-message {
  color: #dc3545;
  padding: 15px;
  background-color: #f8d7da;
  border-radius: 6px;
}

.no-orders {
  text-align: center;
  padding: 30px;
  color: #666;
  font-style: italic;
}

/* Orders table */
.orders-table-container {
  overflow-x: auto;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.orders-table th {
  background-color: #f8f9fa;
  padding: 12px;
  text-align: left;
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
  color: #495057;
}

.orders-table td {
  padding: 12px;
  border-bottom: 1px solid #dee2e6;
  vertical-align: middle;
}

.orders-table tbody tr:hover {
  background-color: #f8f9fa;
}

/* Status colors for table rows */
.orders-table tbody tr.status-pending {
  background-color: #fff8e1;
}

.orders-table tbody tr.status-processing {
  background-color: #e3f2fd;
}

.orders-table tbody tr.status-shipped {
  background-color: #e0f7fa;
}

.orders-table tbody tr.status-delivered {
  background-color: #f1f8e9;
}

.orders-table tbody tr.status-canceled {
  background-color: #fce4ec;
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.pending {
  background-color: #ffc107;
  color: #212529;
}

.status-badge.processing {
  background-color: #2196f3;
  color: white;
}

.status-badge.shipped {
  background-color: #00bcd4;
  color: white;
}

.status-badge.delivered {
  background-color: #4caf50;
  color: white;
}

.status-badge.canceled {
  background-color: #f44336;
  color: white;
}

/* Payment status badges */
.payment-status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.payment-status-badge.pending {
  background-color: #ff9800;
  color: white;
}

.payment-status-badge.paid {
  background-color: #4caf50;
  color: white;
}

.payment-status-badge.failed {
  background-color: #f44336;
  color: white;
}

/* View details button */
.view-details-button {
  background-color: #6c757d;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.view-details-button:hover {
  background-color: #5a6268;
}

/* Order details modal */
.order-details-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background-color: white;
  border-radius: 8px;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #dee2e6;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #333;
}

.close-button {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #6c757d;
}

.close-button:hover {
  color: #343a40;
}

.modal-body {
  padding: 24px;
}

/* Order meta info */
.order-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.order-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Order sections */
.order-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 20px;
  gap: 20px;
  margin-bottom: 30px;
}

.order-section {
  background-color: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
}

.order-section h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: #333;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 8px;
}

.order-section p {
  margin: 8px 0;
  font-size: 0.95rem;
}

/* Order items section */
.order-items-section {
  margin-bottom: 30px;
}

.order-items-section h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.2rem;
  color: #333;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 8px;
}

.order-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.order-items-table th {
  background-color: #f8f9fa;
  padding: 12px;
  text-align: left;
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
  color: #495057;
}

.order-items-table td {
  padding: 12px;
  border-bottom: 1px solid #dee2e6;
  vertical-align: middle;
}

.product-info .product-name {
  font-weight: 600;
  margin: 0 0 5px 0;
}

.product-info .product-code {
  font-size: 0.8rem;
  color: #6c757d;
  margin: 0;
}

.order-items-table tfoot td {
  text-align: right;
  font-weight: 600;
}

.order-items-table tfoot .total-row {
  background-color: #f8f9fa;
  font-size: 1.1rem;
}

/* Order status update section */
.order-status-update {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
}

.order-status-update h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.2rem;
  color: #333;
}

/* Payment status update section */
.payment-status-update {
  background-color: #f0f8ff;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid #007bff;
}

.payment-status-update h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.2rem;
  color: #333;
}

.payment-update-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.payment-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 20px;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 5px;
  color: #495057;
  font-size: 0.95rem;
}

.form-group select {
  padding: 10px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 0.95rem;
  background-color: white;
  transition: border-color 0.2s;
}

.form-group select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.payment-update-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.update-payment-button {
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  align-self: flex-start;
}

.update-payment-button:hover {
  background-color: #0056b3;
}

.update-payment-button:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

.payment-note {
  margin: 0;
  color: #6c757d;
  font-size: 0.9rem;
}

.payment-note em {
  color: #007bff;
}

.status-update-form {
  display: flex;
  gap: 15px;
  align-items: center;
}

.status-update-form select {
  padding: 10px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  flex-grow: 1;
}

.update-status-button {
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.update-status-button:hover {
  background-color: #218838;
}

.update-status-button:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

/* Enhanced Email Section */
.send-email-section.enhanced {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.send-email-section.enhanced h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.2rem;
  color: #333;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 8px;
}

.email-template-selection {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 20px;
  gap: 20px;
  margin-bottom: 20px;
}

.template-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.template-option {
  display: flex;
  align-items: center;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #dee2e6;
  background-color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.template-option:hover {
  border-color: #adb5bd;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.template-option.selected {
  border-color: #007bff;
  background-color: #f0f7ff;
}

.template-icon {
  font-size: 24px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.template-info {
  flex: 1 1;
}

.template-info h4 {
  margin: 0 0 5px 0;
  font-size: 1rem;
}

.template-info p {
  margin: 0;
  font-size: 0.85rem;
  color: #6c757d;
}

.template-checkbox {
  margin-left: 10px;
}

.template-preview {
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 16px;
}

.template-preview h4 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1rem;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

.preview-info {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.preview-info p {
  margin: 5px 0;
  font-size: 0.9rem;
}

.preview-content {
  background-color: #f8f9fa;
  border-radius: 4px;
  padding: 15px;
  margin-bottom: 10px;
}

.preview-text {
  margin: 0 0 15px 0;
  font-size: 0.9rem;
}

.preview-note {
  margin: 0;
  font-size: 0.8rem;
  color: #6c757d;
}

.email-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
}

.send-email-button.primary {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.send-email-button.primary:hover {
  background-color: #0069d9;
}

.send-email-button.primary:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

.send-email-button .spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Hide the original email section when the enhanced one is shown */
.send-email-section:not(.enhanced) {
  display: none;
}

/* Responsive adjustments for email section */
@media (max-width: 768px) {
  .email-template-selection {
    grid-template-columns: 1fr;
  }

  .template-options {
    order: 1;
  }

  .template-preview {
    order: 2;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .admin-order-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions {
    margin-top: 15px;
    width: 100%;
    justify-content: flex-start;
  }

  .orders-table-container {
    overflow-x: auto;
  }

  .orders-table {
    min-width: 600px;
  }

  .modal-content {
    width: 95%;
    margin: 10px;
    max-height: 95vh;
  }

  .order-sections {
    grid-template-columns: 1fr;
  }

  .payment-form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .admin-order-container {
    padding: 16px;
  }

  .admin-order-header h1 {
    font-size: 1.8rem;
  }
}

/* Tracking Modal */
.tracking-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.tracking-modal {
  background-color: white;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: modal-slide-in 0.3s ease-out;
}

.tracking-modal-header {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  padding: 20px 24px;
  border-radius: 12px 12px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tracking-modal-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.tracking-modal-content {
  padding: 24px;
}

.tracking-modal-actions {
  padding: 20px 24px;
  background-color: #f8fafc;
  border-radius: 0 0 12px 12px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
  border-top: 1px solid #e5e7eb;
}

/* Tracking Modal Buttons */
.tracking-modal-button {
  min-width: 120px;
  height: 40px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.tracking-modal-button-cancel {
  background-color: #f3f4f6;
  border-color: #d1d5db;
  color: #4b5563;
}

.tracking-modal-button-cancel:hover {
  background-color: #e5e7eb;
}

.tracking-modal-button-submit {
  background-color: #4f46e5;
  color: white;
}

.tracking-modal-button-submit:hover:not(:disabled) {
  background-color: #4338ca;
}

.tracking-modal-button-submit:disabled {
  background-color: #a5a2e5;
  cursor: not-allowed;
}

/* Spinner for loading state */
.tracking-modal-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive styles for tracking modal */
@media (max-width: 480px) {
  .tracking-modal {
    width: 95%;
  }

  .tracking-modal-actions {
    flex-direction: column-reverse;
    padding: 16px;
    gap: 8px;
  }

  .tracking-modal-actions button {
    width: 100%;
    min-width: 0;
  }
}

.submit-button {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 140px;
}

.submit-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1px);
}

.submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

@keyframes modal-slide-in {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Order Cancellation Modal Styles */
.cancellation-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  padding: 20px;
}

.cancellation-modal {
  background-color: white;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: modal-slide-in 0.3s ease-out;
}

.cancellation-modal-header {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: white;
  padding: 20px 24px;
  border-radius: 12px 12px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cancellation-modal-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.cancellation-modal-content {
  padding: 24px;
}

.warning-message {
  background-color: #fef2f2;
  border: 2px solid #fecaca;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}

.warning-message p {
  margin: 0 0 12px 0;
  color: #7f1d1d;
  font-size: 1rem;
}

.warning-message ul {
  margin: 12px 0 0 20px;
  color: #7f1d1d;
}

.warning-message li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.order-items-summary {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.order-items-summary h4 {
  margin: 0 0 16px 0;
  color: #1e293b;
  font-size: 1.1rem;
}

.items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.item-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background-color: white;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.item-info {
  font-size: 0.95rem;
  color: #374151;
}

.item-quantity {
  font-weight: 600;
  color: #059669;
  font-size: 0.9rem;
}

.custom-items-note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: #6b7280;
  font-style: italic;
}

.customer-info-summary {
  background-color: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.customer-info-summary h4 {
  margin: 0 0 12px 0;
  color: #0c4a6e;
  font-size: 1.1rem;
}

.customer-info-summary p {
  margin: 6px 0;
  color: #1e40af;
  font-size: 0.95rem;
}

.cancellation-modal-actions {
  padding: 20px 24px;
  background-color: #f8fafc;
  border-radius: 0 0 12px 12px;
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

.confirm-cancel-button {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 140px;
}

.confirm-cancel-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
  transform: translateY(-1px);
}

.confirm-cancel-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.cancel-button {
  background-color: #6b7280;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 140px;
}

.cancel-button:hover:not(:disabled) {
  background-color: #4b5563;
  transform: translateY(-1px);
}

.cancel-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

@keyframes modal-slide-in {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* src/pages/AdminStockCheck.css - Modern Enhanced Version */

/* Main container */
.admin-stock-check-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 100vh;
}

/* Header styles */
.stock-check-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  background: white;
  padding: 24px 32px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stock-check-header h1 {
  margin: 0;
  color: #1e293b;
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-actions {
  display: flex;
  gap: 16px;
}

.refresh-button,
.reset-button,
.export-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.refresh-button {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: #64748b;
  border: 2px solid #e2e8f0;
}

.refresh-button:hover {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  color: #475569;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.reset-button {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  color: #ef4444;
  border: 2px solid #fecaca;
}

.reset-button:hover {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.export-button {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: 2px solid #10b981;
}

.export-button:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Progress bar */
.progress-container {
  margin-bottom: 32px;
  background: white;
  padding: 20px 24px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.progress-bar {
  height: 12px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 8px;
  transition: width 0.3s ease;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.progress-text {
  font-size: 16px;
  color: #64748b;
  font-weight: 600;
  text-align: center;
}

/* Search and filter */
.search-filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}

/* Filter cards */
.filter-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.filter-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Search card */
.search-card {
  flex: 1 1;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
}

.search-container {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 18px;
}

.search-input {
  width: 100%;
  padding: 16px 20px 16px 48px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  color: #1f2937;
  background: #f8fafc;
  transition: all 0.3s ease;
  font-weight: 500;
}

.search-input:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.clear-search {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s ease;
}

.clear-search:hover {
  background: #e2e8f0;
  color: #374151;
}

/* Category and stock level cards */
.category-card,
.stock-card {
  flex: 1 1;
  min-width: 280px;
}

/* Toggle options container - displays toggles in a row */
.toggle-options {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}

/* Toggle switch for images */
.toggle-container {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 28px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #cbd5e1;
  transition: 0.3s;
  border-radius: 28px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

input:checked + .toggle-slider {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

input:checked + .toggle-slider:before {
  transform: translateX(28px);
}

.toggle-label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

/* Filter buttons */
.filter-sections {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.filter-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 8px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: #64748b;
  transition: all 0.3s ease;
  min-width: 80px;
  text-align: center;
}

.filter-button:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

.filter-button.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Stock level specific colors */
.stock-filter-empty.active {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: #ef4444;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.stock-filter-low.active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: #f59e0b;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.stock-filter-ok.active {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.stock-filter-enough.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Products grid */
.stock-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 24px;
  gap: 24px;
  padding: 4px;
}

.stock-check-item {
  background: white;
  border: 2px solid #f1f5f9;
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  min-height: 240px;
}

.stock-check-item.with-image {
  min-height: 340px;
}

.stock-check-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: #667eea;
}

.stock-check-item.empty-stock {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-color: #fecaca;
}

.stock-check-item.empty-stock:hover {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border-color: #f87171;
}

.stock-check-item.checked {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  border-color: #86efac;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.2);
}

.td-height {
  height: 100%;
}

.product-image-container {
  position: relative;
  width: 100%;
  height: 140px;
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e2e8f0;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: all 0.3s ease;
  padding: 8px;
}

.stock-check-item.with-image:hover .product-image {
  transform: scale(1.02);
}

.product-icon {
  font-size: 64px;
  color: #cbd5e1;
  transition: all 0.3s ease;
}

.stock-check-item.with-image:hover .product-icon {
  color: #94a3b8;
  transform: scale(1.05);
}

.product-code-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.product-code {
  font-weight: 700;
  color: #667eea;
  font-size: 16px;
  letter-spacing: 0.5px;
}

.product-code span {
  font-weight: 500;
  font-size: 12px;
  color: #94a3b8;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 8px;
}

.product-name {
  font-weight: 600;
  font-size: 15px;
  color: #1f2937;
  margin-bottom: 8px;
  line-height: 1.4;
  flex-grow: 1;
}

.description-indicator {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12px;
  color: #667eea;
  margin-bottom: 8px;
  font-weight: 500;
  line-height: 1.4;
  background: #f0f4ff;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #e0e7ff;
  max-height: 60px;
  overflow: hidden;
}

.description-indicator svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.stock-chip {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  align-self: flex-start;
}

.stock-empty {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #dc2626;
}

.stock-low {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #d97706;
}

.stock-ok {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #2563eb;
}

.stock-enough {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: #059669;
}

.check-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
  min-width: 80px;
  height: 36px;
  flex-shrink: 0;
}

.check-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.check-button.checked {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
}

.check-button.checked:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.check-text {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.check-icon {
  flex-shrink: 0;
}

/* Loading and error states */
.loading-indicator,
.no-products-message {
  text-align: center;
  padding: 80px 40px;
  color: #64748b;
  font-size: 18px;
  font-weight: 500;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.error-message {
  color: #ef4444;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 2px solid #fecaca;
  border-radius: 16px;
  padding: 20px;
  margin-top: 20px;
  font-weight: 600;
}

/* Stock Modal */
.stock-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}

.stock-modal-container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.stock-modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 20px 20px 0 0;
}

.stock-modal-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.close-button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 20px;
  color: white;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.stock-modal-content {
  padding: 32px;
}

.stock-modal-info {
  margin-bottom: 24px;
}

.product-code-display {
  font-size: 20px;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.current-stock {
  font-size: 16px;
  color: #64748b;
  font-weight: 600;
}

.current-stock span {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin-left: 8px;
}

.movement-type-selector {
  margin-bottom: 24px;
}

.movement-type-btn {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 20px;
  margin-right: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: #64748b;
  transition: all 0.3s ease;
}

.movement-type-btn:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

.movement-type-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #374151;
  font-size: 16px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: #f8fafc;
  font-weight: 500;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.stock-flow-history {
  margin-top: 32px;
  background: #f8fafc;
  border-radius: 16px;
  padding: 20px;
  border: 2px solid #e2e8f0;
}

.stock-flow-history h3 {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 700;
  color: #374151;
}

.no-movements {
  text-align: center;
  color: #94a3b8;
  font-style: italic;
  padding: 20px;
}

.modal-error {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  color: #dc2626;
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-weight: 600;
  border: 2px solid #fecaca;
}

.modal-actions {
  display: flex;
  gap: 16px;
  padding: 24px 32px;
  background: #f8fafc;
  border-radius: 0 0 20px 20px;
}

.cancel-button,
.submit-button {
  flex: 1 1;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cancel-button {
  background: #f1f5f9;
  color: #64748b;
  border: 2px solid #e2e8f0;
}

.cancel-button:hover {
  background: #e2e8f0;
  color: #374151;
}

.submit-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.submit-button:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Flow history table */
.flow-history-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.flow-history-table th,
.flow-history-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
}

.flow-history-table th {
  background: #f8fafc;
  font-weight: 700;
  color: #374151;
  font-size: 14px;
}

.flow-history-table td.increase {
  color: #059669;
  font-weight: 600;
}

.flow-history-table td.decrease {
  color: #dc2626;
  font-weight: 600;
}

.flow-history-table tr:hover {
  background: #f8fafc;
}

/* Archive section */
.archive-section {
  margin-top: 32px;
  padding-top: 24px;
}

.archive-divider {
  border: none;
  height: 2px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  margin-bottom: 20px;
}

.archive-section h3 {
  color: #dc2626;
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: 700;
}

.archive-warning {
  color: #7c2d12;
  background: linear-gradient(135deg, #fef7ed 0%, #fed7aa 100%);
  padding: 16px;
  border-radius: 12px;
  border: 2px solid #fb923c;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
}

.archive-button {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.archive-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

.archive-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.archive-confirm {
  background: #fef2f2;
  border: 2px solid #fecaca;
  border-radius: 12px;
  padding: 20px;
}

.confirm-text {
  color: #7f1d1d;
  font-weight: 600;
  margin-bottom: 16px;
}

.confirm-buttons {
  display: flex;
  gap: 12px;
}

.cancel-archive-button,
.confirm-archive-button {
  flex: 1 1;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.cancel-archive-button {
  background: #f3f4f6;
  color: #374151;
}

.cancel-archive-button:hover {
  background: #e5e7eb;
}

.confirm-archive-button {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: white;
}

.confirm-archive-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.confirm-archive-button:disabled,
.cancel-archive-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Description section styles */
.description-section {
  margin-bottom: 24px;
  padding: 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  border: 2px solid #e2e8f0;
}

.description-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.description-header h3 {
  color: #374151;
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.edit-description-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.edit-description-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.description-display p {
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}

.description-display .no-description {
  color: #9ca3af;
  font-style: italic;
}

.description-edit {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.description-textarea {
  width: 100%;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  color: #374151;
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.3s ease;
}

.description-textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.description-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.save-description-btn,
.cancel-description-btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.save-description-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.save-description-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.save-description-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.cancel-description-btn {
  background: #f3f4f6;
  color: #374151;
}

.cancel-description-btn:hover {
  background: #e5e7eb;
}

/* Responsive design */
@media (max-width: 1024px) {
  .stock-check-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }

  .search-filter-container {
    flex-direction: column;
  }

  .filter-card {
    min-width: 100%;
  }
}

@media (max-width: 768px) {
  .admin-stock-check-container {
    padding: 16px;
  }

  .stock-check-header {
    padding: 20px;
    flex-direction: column;
    gap: 16px;
  }

  .stock-check-header h1 {
    font-size: 24px;
  }

  .header-actions {
    width: 100%;
    justify-content: center;
  }

  .search-card {
    min-width: 100%;
  }

  .toggle-options {
    justify-content: center;
    gap: 20px;
  }

  .category-card,
  .stock-card {
    min-width: 100%;
  }

  .filter-buttons {
    justify-content: center;
  }

  .stock-check-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
  }

  .stock-modal-container {
    margin: 20px;
    width: calc(100% - 40px);
  }

  .stock-modal-content {
    padding: 20px;
  }

  .modal-actions {
    padding: 20px;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .toggle-options {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .toggle-container {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
  }

  .search-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .stock-check-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
  }

  .filter-buttons {
    grid-template-columns: repeat(2, 1fr);
  }

  .movement-type-btn {
    margin-right: 8px;
    margin-bottom: 8px;
  }

  .stock-check-item {
    min-height: 260px;
  }

  .stock-check-item.with-image {
    min-height: 360px;
  }

  .product-image-container {
    height: 120px;
  }
}

/* Bottom row container for stock chip and check button */
.bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
  gap: 12px;
}

.bottom-row .stock-chip {
  margin-bottom: 0;
  flex-shrink: 0;
}

/* AdminStockArchive.css */
/* All base styles are inherited from AdminStockCheck.css */

/* Archive specific styles */
.archived-item {
  background-color: #f9fafb;
  border-color: #d1d5db;
  border-left: 3px solid #6b7280;
}

.archived-item:hover {
  border-color: #6b7280;
}

.archive-date-chip {
  position: absolute;
  bottom: 16px;
  right: 16px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  background-color: #e5e7eb;
  color: #4b5563;
}

/* Archive details modal styling */
.archive-details {
  margin-top: 20px;
  padding: 15px;
  background-color: #f9fafb;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.archive-details h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: #4b5563;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 8px;
}

.archive-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-gap: 16px;
  gap: 16px;
}

.archive-info-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

.archive-info-item label {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 4px;
}

.archive-info-item span {
  font-size: 0.95rem;
  color: #111827;
  font-weight: 500;
}

/* AdminMarketSales.css */
.admin-market-sales-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.market-sales-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-right {
  display: flex;
  align-items: center;
}

.market-sales-header h1 {
  font-size: 1.8rem;
  margin: 0;
  color: #1f2937;
}

.add-market-button,
.add-sales-day-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #4f46e5;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.add-market-button:hover,
.add-sales-day-button:hover {
  background-color: #4338ca;
}

.add-market-button:disabled,
.add-sales-day-button:disabled {
  background-color: #c7d2fe;
  cursor: not-allowed;
}

.error-message {
  margin-bottom: 16px;
  padding: 12px;
  background-color: #fee2e2;
  color: #b91c1c;
  border-radius: 4px;
  font-size: 0.95rem;
}

.market-selector-container {
  margin-bottom: 20px;
}

.market-selector-container label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #4b5563;
}

.market-selector-container select {
  width: 100%;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 1rem;
  color: #1f2937;
  background-color: white;
}

.market-selector-container select:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.sales-days-container {
  margin-top: 20px;
  border-top: 1px solid #e5e7eb;
  padding-top: 20px;
}

.sales-days-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.sales-days-header h2 {
  font-size: 1.5rem;
  margin: 0;
  color: #1f2937;
}

.loading-indicator {
  text-align: center;
  padding: 40px;
  color: #6b7280;
  font-size: 0.95rem;
}

.no-data-message {
  text-align: center;
  padding: 40px;
  color: #6b7280;
  background-color: #f9fafb;
  border-radius: 6px;
  border: 1px dashed #d1d5db;
  font-size: 0.95rem;
}

.sales-days-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-gap: 16px;
  gap: 16px;
}

.sales-day-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  border: 1px solid #e0e0e0;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sales-day-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-color: #bbdefb;
}

.sales-day-date {
  font-weight: 600;
  font-size: 18px;
  color: #1976d2;
  margin-bottom: 2px;
}

.sales-day-market {
  font-weight: 500;
  font-size: 15px;
  color: #333;
}

.sales-day-market span {
  color: #666;
  font-weight: normal;
}

.sales-day-weather {
  font-size: 14px;
  color: #666;
  margin-top: 4px;
}

.sales-day-weather .label {
  font-weight: 500;
  color: #555;
}

.view-details {
  position: absolute;
  bottom: 12px;
  right: 16px;
  color: #1976d2;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.sales-day-card:hover .view-details {
  opacity: 1;
}

/* Modal styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  width: 500px;
  max-width: 95%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f9fafb;
  position: sticky;
  top: 0;
  z-index: 1;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #1f2937;
  font-weight: 600;
}

.close-button {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  margin: 0;
  line-height: 1;
}

.close-button:hover {
  color: #1f2937;
}

.modal-body {
  padding: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #4b5563;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 0.95rem;
  color: #1f2937;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.modal-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
  width: 100%;
}

.cancel-button,
.submit-button {
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 15px;
  min-width: 120px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.cancel-button {
  background-color: #f2f2f2;
  border: 1px solid #ddd;
  color: #333;
}

.cancel-button:hover {
  background-color: #e5e5e5;
}

.submit-button {
  background-color: #007bff;
  border: none;
  color: white;
}

.submit-button:hover {
  background-color: #0069d9;
}

.submit-button:disabled {
  background-color: #c7d2fe;
  color: #4338ca;
  cursor: not-allowed;
  opacity: 0.8;
  position: relative;
}

/* Make the modal footer have a nice background */
.modal-footer {
  background-color: #f9f9f9;
  padding: 16px 20px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .market-sales-header,
  .sales-days-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .add-market-button,
  .add-sales-day-button {
    width: 100%;
    justify-content: center;
  }

  .sales-days-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive styles for mobile */
@media (max-width: 480px) {
  .modal-actions,
  .modal-footer {
    flex-direction: column;
    gap: 12px;
  }

  .cancel-button,
  .submit-button {
    width: 100%;
  }
}

/* Market details section */
.market-details {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.market-details h3 {
  font-size: 1.3rem;
  color: #1f2937;
  margin-top: 0;
  margin-bottom: 12px;
}

.market-location,
.market-notes {
  margin-bottom: 8px;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.5;
}

.market-location strong,
.market-notes strong {
  color: #1f2937;
  font-weight: 600;
}

/* Add styles for the financial information display */
.sales-day-financial {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e0e0e0;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.sales-total,
.sales-profit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 4px 8px;
  border-radius: 4px;
  background-color: rgba(0, 0, 0, 0.02);
}

.sales-total .label,
.sales-profit .label {
  font-size: 12px;
  font-weight: 500;
  color: #666;
  margin-bottom: 2px;
}

.profit-negative {
  color: #e53e3e; /* Bright red color for losses */
  font-weight: 500;
}

.profit-positive {
  color: #38a169; /* Green color for regular profits */
}

.profit-large {
  color: #2f855a; /* Darker green for large profits */
  font-weight: 700; /* Bold text for emphasis */
}

/* Add a transition for smoother color changes */
.profit-negative,
.profit-positive,
.profit-large {
  transition: color 0.2s ease, font-weight 0.2s ease;
}

/* Add styles for informational message in modal */
.modal-info {
  color: #0288d1;
  margin-bottom: 16px;
  padding: 8px;
  background-color: #e1f5fe;
  border-radius: 4px;
  font-size: 14px;
  text-align: center;
}

/* Add a loading indicator for the submit button */
.submit-button:disabled:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: loading 1.2s infinite;
}

@keyframes loading {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* View toggle buttons */
.view-toggle {
  display: flex;
  gap: 4px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.view-toggle-button {
  background-color: #f3f4f6;
  border: 1px solid #d1d5db;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  color: #4b5563;
}

.view-toggle-button.active {
  background-color: #4f46e5;
  color: white;
  border-color: #4f46e5;
}

.view-toggle-button:hover:not(.active) {
  background-color: #e5e7eb;
}

.view-toggle-button:first-child {
  border-radius: 6px 0 0 6px;
}

.view-toggle-button:last-child {
  border-radius: 0 6px 6px 0;
}

/* Chart View Styles */
.chart-view-container {
  margin-top: 20px;
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.chart-section {
  margin-top: 30px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.chart-section h3 {
  font-size: 18px;
  color: #374151;
  margin-top: 0;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
}

.chart-explanation {
  margin-top: 20px;
  padding: 15px;
  background-color: #f9fafb;
  border-radius: 6px;
  font-size: 14px;
}

.chart-explanation ul {
  list-style-type: none;
  padding-left: 10px;
  margin-top: 10px;
}

.chart-explanation li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.chart-legend-item {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border-radius: 3px;
}

.chart-legend-item.sales {
  background-color: #4361ee;
}

.chart-legend-item.expenses {
  background-color: #ff6b6b;
}

.chart-legend-item.profit {
  background-color: #4cc9f0;
}

.chart-legend-item.netprofit {
  background-color: #06d6a0;
}

/* Responsive adjustments for three-button toggle */
@media (max-width: 768px) {
  .header-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .view-toggle {
    width: 100%;
  }

  .view-toggle-button {
    flex: 1 1;
    text-align: center;
    font-size: 12px;
    padding: 8px 4px;
  }
}

/* Sales Report styles */
.sales-report-container {
  padding: 20px 0;
}

.sales-report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.report-date-range {
  color: #64748b;
  font-size: 14px;
}

/* Report summary cards */
.report-summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-gap: 16px;
  gap: 16px;
  margin-bottom: 32px;
}

.report-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

.report-card-title {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 8px;
}

.report-card-value {
  font-size: 24px;
  font-weight: 600;
  color: #1e293b;
}

.report-card-value.small-text {
  font-size: 16px;
}

/* Report sections */
.report-sections {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 24px;
  gap: 24px;
}

.report-section {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

.report-section h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 18px;
  color: #1e293b;
}

/* Tables */
.market-performance-table,
.best-days-table,
.monthly-chart {
  width: 100%;
  overflow-x: auto;
}

.market-performance-table table,
.best-days-table table,
.monthly-chart table {
  width: 100%;
  border-collapse: collapse;
}

.market-performance-table th,
.best-days-table th,
.monthly-chart th {
  background-color: #f8fafc;
  text-align: left;
  padding: 12px 16px;
  font-weight: 500;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
}

.market-performance-table td,
.best-days-table td,
.monthly-chart td {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
}

.market-performance-table tr:last-child td,
.best-days-table tr:last-child td,
.monthly-chart tr:last-child td {
  border-bottom: none;
}

.clickable-row {
  cursor: pointer;
  transition: background-color 0.2s;
}

.clickable-row:hover {
  background-color: #f8fafc;
}

/* Chart placeholder */
.chart-container {
  width: 100%;
  min-height: 200px;
}

.chart-placeholder {
  width: 100%;
  height: 100%;
}

/* Responsive */
@media (min-width: 768px) {
  .report-sections {
    grid-template-columns: repeat(2, 1fr);
  }

  .report-section:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .header-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .report-summary-cards {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .report-card-value {
    font-size: 20px;
  }
}

.daily-sales-table-container {
  width: 100%;
  overflow-x: auto;
  margin-top: 15px;
}

.daily-sales-table {
  width: 100%;
  border-collapse: collapse;
}

.daily-sales-table th {
  background-color: #f8fafc;
  text-align: left;
  padding: 12px 16px;
  font-weight: 500;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
}

.daily-sales-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
}

.daily-sales-table tr:last-child td {
  border-bottom: none;
}

.daily-sales-table tr:hover {
  background-color: #f8fafc;
}

.table-footer {
  margin-top: 12px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
  font-style: italic;
}

/* Make view toggle more responsive for four buttons */
@media (max-width: 1024px) {
  .view-toggle-button {
    padding: 6px 8px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .view-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 8px;
    gap: 8px;
    width: 100%;
  }

  .view-toggle-button {
    border-radius: 6px !important;
  }

  .view-toggle-button:first-child,
  .view-toggle-button:last-child {
    border-radius: 6px;
  }
}

.daily-sales-table-antd {
  margin-top: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

.daily-sales-table-antd .ant-table-thead > tr > th {
  background-color: #f8fafc;
  color: #475569;
  font-weight: 600;
  padding: 12px 16px;
}

.daily-sales-table-antd .ant-table-tbody > tr > td {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.daily-sales-table-antd .ant-table-row:hover > td {
  background-color: #f8fafc;
}

.daily-sales-table-antd .ant-pagination {
  margin: 16px 0;
}

/* Hover and active states for table rows */
.daily-sales-table-antd .ant-table-tbody > tr.ant-table-row:hover {
  cursor: default;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s;
}

/* Style the sorting icons */
.daily-sales-table-antd .ant-table-column-sorter {
  color: #a0aec0;
}

/* Style for the profit arrows */
.anticon-arrow-up,
.anticon-arrow-down {
  margin-right: 4px;
  font-size: 12px;
}

/* Filter controls */
.filter-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: 20px;
  gap: 15px;
}

.month-filter {
  display: flex;
  align-items: center;
  gap: 10px;
}

.month-select {
  padding: 8px 10px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background-color: white;
  min-width: 200px;
  font-size: 14px;
}

@media (max-width: 768px) {
  .filter-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .month-filter {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .month-select {
    width: 100%;
  }
}

/* Modal Base Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background-color: white;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  position: relative;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f9fafb;
  position: sticky;
  top: 0;
  z-index: 1;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #1f2937;
  font-weight: 600;
  flex: 1 1;
  text-align: center;
}

.close-button {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  margin: 0;
  line-height: 1;
}

.close-button:hover {
  color: #1f2937;
}

.modal-body {
  padding: 20px;
  flex: 1 1;
  overflow-y: auto;
}

/* Form Styles */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #4b5563;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #1f2937;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Modal Footer */
.modal-footer {
  background-color: #f9fafb;
  padding: 16px 20px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  position: sticky;
  bottom: 0;
}

.cancel-button,
.submit-button {
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  min-width: 100px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cancel-button {
  background-color: #f3f4f6;
  border: 1px solid #d1d5db;
  color: #4b5563;
}

.cancel-button:hover {
  background-color: #e5e7eb;
}

.submit-button {
  background-color: #4f46e5;
  border: none;
  color: white;
}

.submit-button:hover:not(:disabled) {
  background-color: #4338ca;
}

.submit-button:disabled {
  background-color: #c7d2fe;
  color: #4338ca;
  cursor: not-allowed;
}

/* Transaction Type Toggle */
.transaction-type-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.type-button {
  flex: 1 1;
  padding: 10px 16px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background-color: #f9fafb;
  color: #4b5563;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.type-button:hover:not(.active) {
  background-color: #f3f4f6;
}

.type-button.active.income {
  background-color: #dcfce7;
  color: #047857;
  border-color: #a7f3d0;
}

.type-button.active.expense {
  background-color: #fee2e2;
  color: #b91c1c;
  border-color: #fecaca;
}

.type-button.active.transfer {
  background-color: #e0e7ff;
  color: #4f46e5;
  border-color: #c7d2fe;
}

/* Error and Info Messages */
.modal-error {
  color: #b91c1c;
  background-color: #fee2e2;
  border: 1px solid #fecaca;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.modal-info {
  color: #0288d1;
  background-color: #e1f5fe;
  border: 1px solid #b3e5fc;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 640px) {
  .modal-content {
    width: 95%;
    margin: 10px;
  }

  .modal-footer {
    flex-direction: column;
    padding: 12px 16px;
  }

  .cancel-button,
  .submit-button {
    width: 100%;
  }
}

.modalButtons_modalFooter__d-4z7 {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  padding: 16px 24px !important;
  border-top: 1px solid #f0f0f0 !important;
  margin-top: auto !important;
}

.modalButtons_modalButton__TEZwO {
  height: 32px !important;
  padding: 4px 15px !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.5715 !important;
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid transparent !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1) !important;
  touch-action: manipulation !important;
  outline: none !important;
  white-space: nowrap !important;
}

.modalButtons_cancelButton__yYqFj {
  background-color: #fff !important;
  border-color: #d9d9d9 !important;
  color: rgba(0, 0, 0, 0.85) !important;
}

.modalButtons_cancelButton__yYqFj:hover {
  color: #40a9ff !important;
  border-color: #40a9ff !important;
}

.modalButtons_submitButton__AgUfz {
  background-color: #1890ff !important;
  color: #fff !important;
  border-color: #1890ff !important;
}

.modalButtons_submitButton__AgUfz:hover {
  background-color: #40a9ff !important;
  border-color: #40a9ff !important;
}

/* Ensure modal content is properly structured */
.modalButtons_modalContent__96E8u {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
}

.modalButtons_modalBody__T5BXS {
  flex: 1 1 auto !important;
  padding: 24px !important;
  overflow-y: auto !important;
}

/* AdminSalesDayDetails.css */
.sales-day-details-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header Styles */
.sales-day-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 16px;
}

.header-left h1 {
  font-size: 24px;
  margin-bottom: 8px;
  color: #333;
}

.market-name,
.stall-number,
.weather-condition {
  margin-bottom: 4px;
  font-size: 16px;
  color: #555;
}

.market-name span,
.stall-number span,
.weather-condition span {
  font-weight: 600;
  color: #333;
}

.header-actions {
  display: flex;
  align-items: center;
}

.back-button {
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  color: #333;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.back-button:hover {
  background-color: #e0e0e0;
}

/* Summary Cards */
.summary-cards {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.summary-card {
  flex: 1 1;
  min-width: 200px;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.summary-card h3 {
  margin-top: 0;
  font-size: 16px;
  color: #666;
  margin-bottom: 10px;
}

.amount-display {
  font-size: 24px;
  font-weight: bold;
}

/* Notes Section */
.summary-notes {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 24px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.notes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.notes-header h2 {
  font-size: 18px;
  margin: 0;
  color: #333;
}

.notes-header button {
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  color: #333;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.notes-header button:hover {
  background-color: #e0e0e0;
}

.notes-content {
  color: #555;
  line-height: 1.5;
  min-height: 60px;
  padding: 8px;
  background-color: #f9f9f9;
  border-radius: 4px;
  border: 1px solid #eee;
}

.no-notes {
  color: #999;
  font-style: italic;
  padding: 8px;
}

/* Data Sections */
.data-section {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 24px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 18px;
  margin: 0;
  color: #333;
}

.section-header button {
  background-color: #1976d2;
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.section-header button:hover {
  background-color: #1565c0;
}

/* Tables */
.transactions-table,
.travel-expenses-table {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  padding: 12px 8px;
  background-color: #f5f5f5;
  border-bottom: 2px solid #e0e0e0;
  color: #333;
  font-weight: 600;
}

td {
  padding: 12px 8px;
  border-bottom: 1px solid #e0e0e0;
  color: #555;
}

.income-row {
  background-color: rgba(46, 125, 50, 0.05);
}

.expense-row {
  background-color: rgba(198, 40, 40, 0.05);
}

.delete-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f44336;
  border: none;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
  gap: 4px;
}

.delete-button:hover {
  background-color: #d32f2f;
}

.delete-icon {
  font-size: 16px;
  font-weight: bold;
}

.delete-text {
  display: none;
}

.delete-button:hover .delete-text {
  display: inline;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: white;
  border-radius: 8px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f5f5f5;
  padding: 16px 20px;
  border-bottom: 1px solid #e0e0e0;
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
  color: #333;
  text-align: center;
  flex: 1 1;
}

.close-button {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #777;
  padding: 0;
  line-height: 1;
  margin-left: 10px;
}

.modal-body {
  padding: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #1976d2;
}

.transaction-type-toggle {
  display: flex;
  margin-bottom: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.transaction-type-toggle button {
  flex: 1 1;
  padding: 10px;
  border: none;
  background-color: #f5f5f5;
  cursor: pointer;
  transition: all 0.2s;
}

.transaction-type-toggle button.active {
  background-color: #1976d2;
  color: white;
}

/* Modal Actions - Keep this one version */
.modal-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
  width: 100%;
}

.cancel-button,
.submit-button {
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 15px;
  min-width: 120px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.cancel-button {
  background-color: #f2f2f2;
  border: 1px solid #ddd;
  color: #333;
}

.cancel-button:hover {
  background-color: #e5e5e5;
}

.submit-button {
  background-color: #007bff;
  border: none;
  color: white;
}

.submit-button:hover {
  background-color: #0069d9;
}

.modal-error {
  color: #f44336;
  margin-bottom: 16px;
  padding: 8px;
  background-color: #ffebee;
  border-radius: 4px;
  font-size: 14px;
}

/* Utility classes */
.loading-indicator {
  text-align: center;
  padding: 40px;
  color: #666;
}

.error-message {
  background-color: #ffebee;
  color: #c62828;
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.no-data-message {
  padding: 20px;
  text-align: center;
  color: #777;
  font-style: italic;
}

/* Responsive styles */
@media (max-width: 768px) {
  .sales-day-header {
    flex-direction: column;
  }

  .header-actions {
    margin-top: 16px;
  }

  .summary-cards {
    grid-template-columns: 1fr;
  }

  table {
    font-size: 14px;
  }

  th,
  td {
    padding: 8px 4px;
  }
}

@media (max-width: 480px) {
  .modal-content {
    width: 90%;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-header button {
    margin-top: 8px;
  }

  .modal-footer {
    flex-direction: column;
    padding: 16px;
    gap: 16px;
  }

  .modal-footer button {
    width: 100%;
  }
}

/* Improve category select styling */
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  background-color: white;
  -webkit-appearance: menulist;
          appearance: menulist;
}

.form-group select:focus {
  outline: none;
  border-color: #1976d2;
}

/* Add styles for transaction toggle buttons */
.toggle-group {
  margin-bottom: 20px;
}

.toggle-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.transaction-toggle {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  width: 100%;
}

.toggle-button {
  flex: 1 1;
  padding: 12px 15px;
  background-color: #f9f9f9;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  font-weight: 500;
  font-size: 15px;
}

.toggle-button:first-child {
  border-right: 1px solid #ddd;
}

/* Sale button styling - blue when active */
.sale-button.active {
  background-color: #007bff;
  color: white;
}

/* Expense button styling - red when active */
.expense-button.active {
  background-color: #dc3545;
  color: white;
}

.toggle-button:hover:not(.active) {
  background-color: #e9ecef;
}

/* Update money formatting for AUD currency */
.income-amount {
  color: #38a169;
}

.expense-amount {
  color: #e53e3e;
}

/* Update styles for travel expense modal to match transaction modal */
.travel-expense-modal .form-group {
  margin-bottom: 20px;
}

/* Improve category select appearance */
.category-select {
  height: 46px;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0 10px;
  font-size: 15px;
  color: #333;
  width: 100%;
}

.category-select:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Make the modal footer have a nice background */
.modal-footer {
  background-color: #f9f9f9;
  padding: 16px 20px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* AdminFinance.css */
.admin-finance-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header styles */
.finance-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.finance-header h1 {
  font-size: 1.8rem;
  margin: 0;
  color: #1f2937;
}

.finance-buttons {
  display: flex;
  gap: 12px;
}

.add-transaction-button,
.add-account-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  border: none;
}

.add-transaction-button {
  background-color: #4f46e5;
  color: white;
}

.add-transaction-button:hover {
  background-color: #4338ca;
}

.add-account-button {
  background-color: #10b981;
  color: white;
}

.add-account-button:hover {
  background-color: #059669;
}

/* Error message */
.error-message {
  margin-bottom: 16px;
  padding: 12px;
  background-color: #fee2e2;
  color: #b91c1c;
  border-radius: 4px;
  font-size: 0.95rem;
}

/* Finance summary */
.finance-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 16px;
  gap: 16px;
  margin-bottom: 24px;
}

.summary-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 16px;
  border: 1px solid #e5e7eb;
}

.summary-card h3 {
  margin: 0;
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 8px;
}

.summary-card p {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
}

.total-income h3 {
  color: #047857;
}

.total-expense h3 {
  color: #b91c1c;
}

.net-balance h3 {
  color: #1f2937;
}

.positive {
  color: #047857;
}

.negative {
  color: #b91c1c;
}

/* Tabs */
.finance-tabs {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 20px;
}

.tab-button {
  padding: 12px 20px;
  border: none;
  background: none;
  font-size: 1rem;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.tab-button.active {
  color: #4f46e5;
}

.tab-button.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #4f46e5;
}

.tab-button:hover:not(.active) {
  color: #4b5563;
}

/* Filter styles */
.filters-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px;
  background-color: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.filter-group {
  display: flex;
  flex-direction: column;
  min-width: 180px;
}

.filter-group label {
  margin-bottom: 6px;
  font-size: 0.875rem;
  color: #4b5563;
  font-weight: 500;
}

.filter-group select,
.filter-group input {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 0.875rem;
  color: #1f2937;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.2);
}

/* Transactions table */
.transactions-container {
  margin-bottom: 32px;
  overflow-x: auto;
}

.transactions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.transactions-table th {
  background-color: #f9fafb;
  text-align: left;
  padding: 12px 16px;
  font-weight: 500;
  color: #4b5563;
  border-bottom: 1px solid #e5e7eb;
}

.transactions-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  color: #1f2937;
}

.transactions-table tr:hover {
  background-color: #f9fafb;
}

.transactions-table tr.income {
  background-color: rgba(4, 120, 87, 0.05);
}

.transactions-table tr.expense {
  background-color: rgba(185, 28, 28, 0.05);
}

.transactions-table tr.transfer {
  background-color: rgba(79, 70, 229, 0.05);
}

.transactions-table td.amount {
  font-weight: 500;
  text-align: right;
}

.type-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: capitalize;
}

.type-badge.income {
  background-color: rgba(4, 120, 87, 0.1);
  color: #047857;
}

.type-badge.expense {
  background-color: rgba(185, 28, 28, 0.1);
  color: #b91c1c;
}

.type-badge.transfer {
  background-color: rgba(79, 70, 229, 0.1);
  color: #4f46e5;
}

/* Accounts grid */
.accounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-gap: 16px;
  gap: 16px;
}

.account-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 16px;
  border: 1px solid #e5e7eb;
  transition: transform 0.2s, box-shadow 0.2s;
}

.account-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.account-card.inactive {
  opacity: 0.7;
}

.account-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.account-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #1f2937;
}

.account-type {
  font-size: 0.75rem;
  padding: 2px 8px;
  background-color: #f3f4f6;
  border-radius: 4px;
  color: #6b7280;
  text-transform: capitalize;
}

.account-balance {
  margin-bottom: 16px;
}

.balance-label {
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 4px;
}

.balance-amount {
  font-size: 1.5rem;
  font-weight: 600;
}

.account-status {
  display: flex;
  justify-content: flex-end;
}

.status-badge {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.status-badge.active {
  background-color: rgba(4, 120, 87, 0.1);
  color: #047857;
}

.status-badge.inactive {
  background-color: rgba(185, 28, 28, 0.1);
  color: #b91c1c;
}

/* Loading and no data messages */
.loading-message,
.no-data-message {
  text-align: center;
  padding: 40px;
  color: #6b7280;
}

.no-data-message {
  background-color: #f9fafb;
  border-radius: 6px;
  border: 1px dashed #d1d5db;
}

/* Modal styles for transactions */
.transaction-type-buttons {
  display: flex;
  margin-bottom: 16px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #d1d5db;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.type-button {
  flex: 1 1;
  padding: 12px 16px;
  background-color: #f9fafb;
  font-size: 0.9rem;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  border-right: 1px solid #d1d5db;
}

.type-button:last-child {
  border-right: none;
}

/* Specific styles for each transaction type button */
.type-button.active.income {
  background-color: #dcfce7;
  color: #047857;
  border-color: #a7f3d0;
}

.type-button.active.expense {
  background-color: #fee2e2;
  color: #b91c1c;
  border-color: #fecaca;
}

.type-button.active.transfer {
  background-color: #e0e7ff;
  color: #4f46e5;
  border-color: #c7d2fe;
}

.type-button:hover:not(.active) {
  background-color: #e5e7eb;
}

/* Add colored borders to transaction rows */
.transactions-table tr.income td:first-child {
  border-left: 3px solid #047857;
}

.transactions-table tr.expense td:first-child {
  border-left: 3px solid #b91c1c;
}

.transactions-table tr.transfer td:first-child {
  border-left: 3px solid #4f46e5;
}

/* For transfer view in account cards */
.account-transfer-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  margin-top: 4px;
}

.transfer-arrow {
  color: #4f46e5;
}

/* Better styling for the account selection in transfers */
.form-group.destination-account {
  margin-top: -8px;
  padding-top: 0;
  padding-left: 24px;
  position: relative;
}

.form-group.destination-account::before {
  content: "↓";
  position: absolute;
  left: 8px;
  top: 28px;
  color: #4f46e5;
  font-weight: bold;
}

/* Checkbox group */
.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  margin: 0;
}

/* Responsive styles */
@media (max-width: 768px) {
  .finance-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .finance-buttons {
    width: 100%;
  }

  .add-transaction-button,
  .add-account-button {
    flex: 1 1;
    justify-content: center;
  }

  .filters-container {
    flex-direction: column;
    gap: 12px;
  }

  .filter-group {
    width: 100%;
  }

  .accounts-grid {
    grid-template-columns: 1fr;
  }
}

/* Date and time field styling */
.form-row {
  display: flex;
  gap: 16px;
}

.date-group {
  flex: 2 1;
}

.time-group {
  flex: 1 1;
}

/* Improve modal footer styling */
.modal-footer {
  background-color: #f9fafb;
  padding: 16px 20px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: auto;
}

/* Hide modal-actions completely since we now use modal-footer */
.modal-actions {
  display: none;
}

.cancel-button,
.submit-button {
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  min-width: 120px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.cancel-button {
  background-color: #f3f4f6;
  border-color: #d1d5db;
  color: #4b5563;
}

.cancel-button:hover {
  background-color: #e5e7eb;
}

.submit-button {
  background-color: #4f46e5;
  color: white;
}

.submit-button:hover:not(:disabled) {
  background-color: #4338ca;
}

.submit-button:disabled {
  background-color: #a5a2e5;
  cursor: not-allowed;
}

/* Modify modal content to ensure footer stays at bottom */
.modal-content {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  position: relative;
}

.modal-body {
  padding: 16px 20px;
  flex: 1 1;
  overflow-y: auto;
}

/* Responsive styles for modal buttons */
@media (max-width: 480px) {
  .modal-footer {
    padding: 12px 16px;
  }

  .cancel-button,
  .submit-button {
    min-width: 0;
    flex: 1 1;
  }
}

/* Remove duplicate account entries in select dropdowns */
select option {
  font-weight: normal;
}

/* Active selection in dropdowns */
select:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

/* Improve the form field ordering and spacing */
.form-group {
  margin-bottom: 16px;
}

.form-group select,
.form-group input:not([type="checkbox"]),
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

/* Actions column in transactions table */
.transactions-table th:last-child,
.transactions-table td:last-child {
  text-align: right;
  white-space: nowrap;
}

.actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.edit-button,
.delete-button,
.save-button {
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  border: 1px solid transparent;
}

.edit-button {
  background-color: #e0e7ff;
  color: #4f46e5;
  border-color: #c7d2fe;
}

.edit-button:hover {
  background-color: #c7d2fe;
}

.delete-button,
.delete-confirm-button {
  background-color: #fee2e2;
  color: #b91c1c;
  border-color: #fecaca;
}

.delete-button:hover,
.delete-confirm-button:hover {
  background-color: #fecaca;
}

.save-button {
  background-color: #dcfce7;
  color: #047857;
  border-color: #a7f3d0;
}

.save-button:hover {
  background-color: #a7f3d0;
}

/* Warning text in delete confirmation */
.warning {
  color: #b91c1c;
  font-weight: 500;
}

/* Edit inputs in table */
.edit-input,
.edit-select {
  width: 100%;
  padding: 4px 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 0.875rem;
}

.amount-input {
  text-align: right;
}

.edit-input:focus,
.edit-select:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

