/*
 * Updated styles for the HTML template.
 * This file has been revised to provide a more modern and visually appealing design.
 * No IDs, class names, or JavaScript variables have been changed to ensure full compatibility.
 */

/*
 * --- Global Styles & Color Palette ---
 * A new, modern color palette is defined using CSS variables for easy customization.
 * A single, consistent font is applied across the application.
 */
@import url("https://fonts.googleapis.com/css?family=Karla:400,700");

:root {
  --primary-color: #0d47a1; /* Darker blue for a more professional feel */
  --secondary-color: #42a5f5; /* Lighter blue for accents  42a5f5*/
  --background-color: #f5f8fa; /* A very light gray-blue for a clean background */
  --card-background: #ffffff;
  --text-color: #37474f; /* Dark gray for high contrast */
  --subtle-text: #ffffff; /* Lighter gray for secondary text  78909c*/
  --border-color: #e0e0e0; /* Soft gray border color */
  --success-color: #43a047; /* Green for success */
  --danger-color: #e53935; /* Red for errors/danger */
  --warning-color: #fb8c00; /* Orange for warnings */
  --delivery-color: #007bff;
}
.fill-width{
	width:100%;
}
input{
	font-size: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Karla", sans-serif;
  user-select: none;
}

body {
  color: var(--text-color);
  line-height: 1.6;
}

/*
 * --- Mobile Device Container ---
 * The main container is styled with a more pronounced shadow and rounded corners to resemble a modern smartphone.
 */
.mobile-device {
  max-width: 450px;
  margin:0 auto;
  overflow: hidden;
  transition: transform 0.3s ease-in-out;
}

.device {
  position: relative;
  border-radius: 20px;
  margin: 0 auto;
  transform: scale(1);
  overflow: hidden;
}

.device .device-bezel {
  border-radius: inherit;
  overflow-y: scroll;
  background: var(--card-background);
  position: relative;
  box-sizing: content-box;
}

.device .device-viewport {
  overflow-y: scroll;
  contain: strict;
  width: 350px;
  height: 622.2222222222px;
  background: var(--card-background);
  border-radius: inherit;
  transform: scale(1);
}

#screen_content {
  overflow-y: scroll;
  padding: 1rem; /* Increased padding for more breathing room */
}

/*
 * --- Header and Navigation ---
 * The header is given a cleaner, more elevated look with a subtle shadow and improved button spacing.
 */
.header {
  background-color: var(--card-background);
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.header a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.5;
  padding: 8px 12px;
  border-radius: 8px; /* More rounded corners on nav items */
  transition: all 0.3s ease;
}

.header a.logo {
  font-size: 18px;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  padding: 0;
}

.header a:hover {
  background-color: var(--background-color);
  color: var(--primary-color);
}

.header a.active {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header i {
  font-size: 1.5rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px; /* Added gap between buttons */
}

.container {
  background: transparent;
  height: 100%;
}

.content {
  background: var(--card-background);
}

.body-content {
  padding: 1.5rem; /* Increased padding */
}

.body-content h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.body-content p {
  line-height: 1.6;
  margin-bottom: 0.75rem;
  color: var(--subtle-text);
}

/*
 * --- Option Button ---
 * Styled to be a prominent call-to-action button with a soft shadow and a smooth transition.
 */
.body-content .option-button {
  width: 100%;
  height: 50px;
  border-radius: 50px;
  background: var(--secondary-color);
  color: white;
  border: none;
  outline: none;
  margin-top: 2rem; /* Increased top margin */
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(66, 165, 245, 0.25);
  transition: all 0.3s ease;
}

.body-content .option-button:hover {
  background-color: #2b70d4;
  box-shadow: 0 6px 20px rgba(66, 165, 245, 0.35);
  transform: translateY(-2px);
}

/*
 * --- General Buttons and Forms ---
 * All other buttons and form elements are given a sleek, uniform style.
 */
.back_button,
.account_button {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.back_button:hover,
.account_button:hover {
  background: var(--background-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.menu-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
}

.button-settings {
  width: 100%;
  height: 55px;
  font-size: 1.1rem;
  color: var(--text-color);
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  padding: 0 1rem;
  font-weight: 600;
}

.button-settings:hover {
  background-color: var(--background-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.button-settings-admin {
  color: white;
  border: 0px;
  background: var(--primary-color);
}

.button-settings-admin:hover {
  background-color: #083881;
}

.button-settings-owner {
  background: var(--text-color);
  color: white;
}

.button-settings-owner:hover {
  background-color: #263238;
}

.contact-form {
  padding: 1.5rem;
  max-width: 400px;
  margin: 0 auto;
}

.contact-form h4 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  color: var(--primary-color);
}

.controls .form-group {
  margin-bottom: 1.25rem;
}

.contact-form .form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form .form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
}

.contact-form select {
  height: 44px;
}

.contact-form .form-parent {
  display: flex;
  gap: 1rem;
}

.contact-form .group {
  flex-grow: 1;
}

.contact-form .send-msg {
  width: 100%;
  height: 50px;
  border-radius: 8px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-form .send-msg:hover {
  background-color: #083881;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/*
 * --- Loading States ---
 * Loading bars have a smoother animation and a better visual appearance.
 */
.loading_container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 70vh;
}

.loading-bar {
  display: flex;
  height: 8px;
  width: 100%;
  max-width: 300px;
  background: #e9ecef;
  border-radius: 50px;
  overflow: hidden;
}

.loading-div {
  display: flex;
  height: 30px;
  width: 100%;
  max-width: 100%;
  border-radius: 2px;
  overflow: hidden;
}

#loader {
  display: none;
}

/* FIX: Added initial width to ensure the animation runs correctly */
.loading-bar .progress-bar {
  height: 100%;
  width: 0%; /* Start the animation from a width of 0% */
  background: var(--primary-color);
  animation: progress-animation 5s ease-in-out forwards; /* Added 'forwards' to keep the last state */
}

/* FIX: Added initial width to ensure the animation runs correctly */
.loading-div .progress-bar {
  height: 100%;
  width: 0%; /* Start the animation from a width of 0% */
  background: var(--border-color);
  animation: progress-animation 5s ease-in-out forwards; /* Added 'forwards' to keep the last state */
}

@keyframes progress-animation {
  0% {
    width: 0%;
  }
  20% {
    width: 10%;
  }
  40% {
    width: 30%;
  }
  50% {
    width: 60%;
  }
  100% {
    width: 90%;
  }
}

/*
 * --- Basic Button Class ---
 * Basic buttons are updated with consistent styling and hover effects.
 */
.button_basic {
  border: none;
  color: white;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 1rem;
  padding: 5px 5px;
  margin: 4px 2px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.button_basic:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.success {
  background-color: var(--success-color);
}
.success:hover {
  background-color: #388e3c;
}

.danger {
  background-color: var(--danger-color);
}
.danger:hover {
  background-color: #d32f2f;
}

.warning {
  background-color: var(--warning-color);
  color: var(--text-color);
}
.warning:hover {
  background-color: #f57c00;
}

.delivery {
  background-color: var(--delivery-color);
}
.delivery:hover {
  background-color: #0069d9;
}

.inproccess{
  background-color:var(--warning-color) !important;
}
.prepared{
 background-color:var(--delivery-color) !important;
}


/*
 * --- Form and Input Field Styling ---
 * Added styles for input fields to improve mobile usability and spacing.
 */
.field-group {
    margin-bottom: 1rem;
}


.field-group input {
    padding: 12px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.field-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
}
.field-group label:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
}
.field-group strong{
 color:white;

}
.special-offer-container strong{

 color:white;
}
 .support-card {
	    padding:10px;
            background-color: var(--primary-color); /* Light green background */
            border-radius: var(--border-radius-lg);
            margin-bottom: 1.5rem;
            margin-top: 0.5rem;
            overflow: hidden;
        }

