/* Basic reset and layout setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Top navigation bar */
#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    padding: 10px 20px;
    color: white;
}

#menu-items {
    display: flex;
}

.nav-item {
    color: white;
    text-decoration: none;
    margin-right: 20px;
    font-size: 16px;
}

.nav-item:hover {
    text-decoration: underline;
}

/* Google button Start */
.gsi-material-button {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-appearance: none;
  background-color: WHITE;
  background-image: none;
  border: 1px solid #747775;
  -webkit-border-radius: 20px;
  border-radius: 20px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  color: #1f1f1f;
  cursor: pointer;
  font-family: 'Roboto', arial, sans-serif;
  font-size: 14px;
  height: 40px;
  letter-spacing: 0.25px;
  outline: none;
  overflow: hidden;
  padding: 0 12px;
  position: relative;
  text-align: center;
  -webkit-transition: background-color .218s, border-color .218s, box-shadow .218s;
  transition: background-color .218s, border-color .218s, box-shadow .218s;
  vertical-align: middle;
  white-space: nowrap;
  width: auto;
  max-width: 400px;
  min-width: min-content;
}

.gsi-material-button .gsi-material-button-icon {
  height: 20px;
  margin-right: 12px;
  min-width: 20px;
  width: 20px;
}

.gsi-material-button .gsi-material-button-content-wrapper {
  -webkit-align-items: center;
  align-items: center;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
  height: 100%;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

.gsi-material-button .gsi-material-button-contents {
  -webkit-flex-grow: 1;
  flex-grow: 1;
  font-family: 'Roboto', arial, sans-serif;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

.gsi-material-button .gsi-material-button-state {
  -webkit-transition: opacity .218s;
  transition: opacity .218s;
  bottom: 0;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.gsi-material-button:disabled {
  cursor: default;
  background-color: #ffffff61;
  border-color: #1f1f1f1f;
}

.gsi-material-button:disabled .gsi-material-button-contents {
  opacity: 38%;
}

.gsi-material-button:disabled .gsi-material-button-icon {
  opacity: 38%;
}

.gsi-material-button:not(:disabled):active .gsi-material-button-state, 
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
  background-color: #303030;
  opacity: 12%;
}

.gsi-material-button:not(:disabled):hover {
  -webkit-box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
}

.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
  background-color: #303030;
  opacity: 8%;
}
/* Google button end */


/* Layout container */
#container {
    display: flex;
    height: 100vh;  /* Full viewport height */
    overflow: hidden; /* Prevents page scrolling */
}

/* Sidebar (Restaurant List) */
#sidebar {
    width: 20%;
    background-color: #f4f4f4;
    padding: 10px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Prevents sidebar from scrolling */
    display: flex;
    flex-direction: column;
}

/* Make the restaurant list scrollable */
#list-container {
    flex-grow: 1;
    overflow-y: auto; /* Enables vertical scrolling */
    max-height: calc(100vh - 50px); /* Limits height to fit viewport */
    padding-right: 5px;
}

/* Main content (Details & Photos) */
/* Main content styles */
#main-content {
    width: 80%;
    padding: 20px;
    overflow-y: auto;
}

/* Restaurant list styling */
ul {
    list-style-type: none;
    padding: 0;
}

li {
    padding: 8px;
    margin: 5px 0;
    background: #f4f4f4;
    cursor: pointer;
    border-radius: 5px;
    text-align: left;
}

li:hover {
    background: #ddd;
}

/* Restaurant Details */
#resto-details {
    border: 1px solid #ccc;
    padding: 10px;
    margin-top: 10px;
    display: none;
}

/* Ensuring text wraps properly in details */
#resto-details pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    max-width: 100%;
    overflow-wrap: break-word;
	font-size: 1.5em; /* Increases font size 2 times (default is 1em) */
    line-height: 1.2; /* Improves readability */
}

/* Photos styling */
.photo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.resto-photo {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.resto-photo:hover {
    transform: scale(1.1);
}

/* Style for audio player */
.audio-player {
    width: 100%;
    max-width: 400px; /* Limit max width */
    margin-top: 10px;
	/* background-color: #99FF99; */
}
/* Style the progress bar/timeline */
.audio-player::-webkit-media-controls-timeline {
    background-color: #99FF99;
    border-radius: 25px;
}


/* Features container */
.features-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

/* Feature bubble styling */
.feature-bubble {
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    text-transform: capitalize;
    display: inline-block;
}

/* Green for available features */
.feature-true {
    background-color: #4CAF50;
    color: white;
}

/* Pink for unavailable features */
.feature-false {
    background-color: #ff6b6b;
    color: white;
}

/* Basic styling for the list items */
.list-item {
	display: flex;
	align-items: center;
	padding: 10px;
	border-bottom: 1px solid #ddd;
}
.list-icon {
	margin-right: 10px;
	font-size: 20px; /* Adjust size as needed */
}
.list-name {
	margin-right: 10px;
	font-weight: bold;
}

.list-actions {
    margin-left: auto;
    display: flex;
    gap: 10px;
}
.edit-icon, .delete-icon {
    cursor: pointer;
    padding: 5px;
}

.edit-icon:hover, .delete-icon:hover {
    color: #007bff;
}

.private-status {
   display: flex;
   align-items: center;
}

.private-status input[type="checkbox"] {
	position: relative;
	width: 40px;
	height: 20px;
	-webkit-appearance: none;
	appearance: none;
	background: #c6c6c6;
	border-radius: 20px;
	cursor: pointer;
	transition: .3s;
}

.private-status input[type="checkbox"]:checked {
	background: #2196F3;
}

.private-status input[type="checkbox"]::before {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	width: 16px;
	height: 16px;
	background: #fff;
	border-radius: 50%;
	transition: .3s;
}

.private-status input[type="checkbox"]:checked::before {
	transform: translateX(20px);
}

.private-status input[type="checkbox"]:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}


.icon {
    font-size: 40px;
    cursor: pointer;
    color: gray; /* Default off state */
    margin-left: 10px;
}

.icon.active {
    color: red; /* Active on state */
}

/* For user bubbles */
.favorite-users-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.user-bubble {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ddd;
    transition: transform 0.3s ease;
}

.user-bubble:hover {
    transform: scale(1.1);
    cursor: pointer;
}

.user-picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



