.modern-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
  overflow: hidden;
}

.modern-btn:hover {
  transform: translateY(-2px);
}

.modern-btn:active {
  transform: scale(0.97);
}

/* Loader Spinner */
.loader {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top: 3px solid #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Loading State */
.modern-btn.loading {
  pointer-events: none;
  opacity: 0.85;
}

.modern-btn.loading .btn-text {
  display: none;
}

.modern-btn.loading .loader {
  display: inline-block;
}


.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

/* Green Open Badge */
.status.open {
  background: rgba(0, 200, 83, 0.1);
  color: #00c853;
  border: 1px solid rgba(0, 200, 83, 0.3);
}

/* Red Closed Badge */
.status.closed {
  background: rgba(244, 67, 54, 0.1);
  color: #f44336;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

/* Status Dot */
.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* Green glowing dot */
.status.open::before {
  background: #00c853;
  box-shadow: 0 0 6px #00c853;
  animation: pulse 1.5s infinite;
}

/* Red dot */
.status.closed::before {
  background: #f44336;
}

/* Pulse animation */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.6); }
  70% { box-shadow: 0 0 0 6px rgba(0, 200, 83, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 200, 83, 0); }
}



.pagination {
  text-align: center;
  margin: 30px 0;
}

.pagination button {
  padding: 8px 16px;
  margin: 0 10px;
  cursor: pointer;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


.view-more-btn {
  width: 100%;
  padding: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 12px;
}

.view-more-btn:hover {
  background: #f3f4f6;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal {
  background: white;
  width: 90%;
  max-width: 520px;
  border-radius: 14px;
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid #e5e7eb;
}

.close-modal {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.modal-content {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.modal-content .dish {
  background: #f9fafb;
}




/* Restaurant Hero Section */

.restaurant-hero {
  width: 100%;
  margin: 0px auto;
  min-height: 300px;
  background-image: url('restaurant_images/login_background.png');
  background-size: cover;
  background-position: center;
  border-radius: 0px;
  position: relative;
  overflow: hidden;
}

/* Dark overlay for readability */
.restaurant-hero__overlay {
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  height: 100%;
  padding: 80px 20px;
  /*padding: 60px 40px;*/
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.restaurant-hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.restaurant-hero p {
  max-width: 850px;
  margin: 0 auto 15px;
  line-height: 1.7;
  font-size: 1.05rem;
}

/* Tablet */
@media (max-width: 768px) {
  .restaurant-hero {
    width: 95%;
  }

  .restaurant-hero__overlay {
    padding: 50px 25px;
  }

  .restaurant-hero h1 {
    font-size: 2.2rem;
  }

  .restaurant-hero p {
    font-size: 1rem;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .restaurant-hero {
    min-height: 240px;
  }

  .restaurant-hero__overlay {
    padding: 35px 20px;
  }

  .restaurant-hero h1 {
    font-size: 1.8rem;
  }

  .restaurant-hero p {
    font-size: 0.95rem;
  }
}

.restaurants {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  width: 80%;
  margin: auto;
}

.restaurant-card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.restaurant-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.restaurant-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.restaurant-body {
  padding: 16px;
}

.restaurant-name {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 5px;
  margin-top:5px;
}

.restaurant-info {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: #555;
}

.restaurant-info li {
  margin-bottom: 6px;
}

.menu-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.dish {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f9fafb;
  padding: 6px;
  border-radius: 8px;
}

.dish img {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
}

.order-btn {
  display: block;
  text-align: center;
  padding: 20px;
  background: green;
  color: white;
  font-weight: bold;
  border-radius: 10px;
  text-decoration: none;
}





/*Our restaurant style sheet*/

.restaurant_header
{
 width:80%; /*1180px*/
 margin:auto;
 margin-top:0px;
 height:auto;
 opacity:1.1;
 background-image:url('restaurant_images/login_background.png');
 background-size: cover;
  background-repeat: no-repeat;
 border-radius:10px 10px 10px 10px;
}

.restaurant_header_child_1
{
width:80%;
margin:auto; 
color:white; 
}

.restaurant_header_child_1 h1
{
margin-left:160px;
}

/*.restaurant_header h1
{
margin-top:0px; 
color:white;
margin-left:320px;
padding-top:20px; 
font-size:45px;
}
*/

.restaurant_header_child_3
{
color:white;
text-align:justify; 
text-align:center;
width:80%; 
margin:auto;
line-height:40px; 
font-size:large;
height:auto;
}

.restaurants_container
{
 display:flex;
 flex-wrap:wrap;
 justify-content:flex-start;/*we ended here*/
 align-items:center;
 gap:35px;
 max-width:80%;/*1180px*/
 margin:auto;
 margin-bottom:0px;
}

.individual_restaurant_container
{
 border:1px solid lightgrey; 
 width:350px;
 border-radius:10px 10px 10px 10px;
}

.individual_restaurant_container img
{
 width:100%; 
 height:120px;
 border-radius:10px 10px 0 0;
}

.restaurant_biz_name
{
 font-weight:bolder; 
 font-size:x-large;
 text-align:center; 
 border-bottom:1px solid lightgrey;
 line-height:0px;
}

.restaurant_location_details
{
border-bottom:1px solid lightgrey; 
margin-top:5px;
}

.restaurant_location_details_child
{
display:flex; 
margin-bottom:5px;
gap:15px;
width:auto;
padding:5px;
border:1px solid lightgrey;
}

.restaurant_location_details_child_2
{
font-weight:bolder; 
width:120px;
}
.restaurant_menu_desc
{
 border-bottom:1px solid lightgrey;
 margin-bottom:5px;
}

.restaurant_menu_desc_head
{
text-wrap:wrap;
font-weight:bold; 
font-size:large;
text-align:center;
line-height:0px;
margin-bottom:15px;
}

.food_container
{
/* border:1px solid lightgrey;*/
}

.individual_dish_container
{
 display:flex;
 flex-wrap:wrap;
 justify-content:space-between; 
 border-bottom:1px solid lightgrey;
 margin-bottom:5px; 
 padding-bottom:2px;
 padding-top:2px;
 border-radius:5px;
}

.left_dish_properties
{
background:#F2F2F2;
border-radius:5px;
 display:flex; 
 width:135px;
 align-items:center;
 gap:10px;
}

.left_dish_properties img
{
  width:40px;
  height:40px; 
  border-radius:5px;
}
.right_dish_properties
{
	background:#F2F2F2;
border-radius:5px;
 display:flex;
 width:165px;
 align-items:center; 
 gap:10px; 
}

.right_dish_properties img
{
 width:40px;
 height:40px;
 border-radius:5px;
}

.see_menu_and_order_button
{
 padding:10px; 
 font-size:large;
 width:auto; 
 background-color:green; 
 text-align:center; 
 color:white;
 border-radius:0 0 10px 10px;
}

a
{
 text-decoration:none;
}


/*Adjusting Column Layout for Tablet*/
@media screen and (max-width: 600px) {
	
.restaurant_header
{
 width:100%;
 margin:auto;
 margin-top:0px;
 height:250px;
 background-image:url('restaurant_images/login_background.png');
 background-size: cover;
 border-radius:10px 10px 10px 10px;
}

.restaurants_container
{
 width:100%;
 gap:5px;
}

.restaurant_header_child_1 h1
{
margin-left:60px;
padding-top:95px;
}

.restaurant_header_child_3
{
display:none;
color:white;
text-align:justify; 
width:100%; 
margin:auto;
line-height:23px; 
font-size:small;
height:auto;
margin-left:0px;
}
.individual_restaurant_container
{
	margin-bottom:1px;
	 width:100%;
}

.individual_dish_container
{
 display:flex;
 flex-wrap:wrap;
 align-items:center;
 justify-content:space-between;
}

.restaurant_location_details_child
{
display:flex;
justify-content:flex-start;
}

.restaurant_location_details_child_2
{
}

}
/*Adjusting Column Layout for Mobile*/
@media screen and (max-width: 480px) {
	
.restaurants_container
{
 width:100%;
 margin:auto;
}

.restaurant_header
{
 width:100%;
 margin:auto;
 margin-top:0px;
 height:250px;
 background-image:url('restaurant_images/login_background.png');
 background-size: cover;
 border-radius:10px 10px 10px 10px;
}

.individual_restaurant_container
{
	margin-bottom:5px;
	 width:100%;
	 margin:auto;
}

.individual_dish_container
{
 display:flex;
 flex-wrap:wrap;
 align-items:center;
 justify-content:space-between;
}

.restaurant_location_details_child
{
display:flex;
justify-content:flex-start;
}

.restaurant_location_details_child_2
{
}

}