/* Font Face Declarations */
@font-face {
  font-family: 'BrushScript';
  src: url('webfonts/BrushScriptStd.otf') format('opentype'),
       url('webfonts/BRUSHSCI.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #2D3E50;
  --accent: #3ac7bb;
  --background: #f5f6f7;
  --white: #FFFFFF;
  --star-color: #FFD700;
  --star-inactive: #ddd;
  --shadow: rgba(0,0,0,0.1);
}

.welcome-text {
    color: #1a237e;
    font-family: 'BrushScript', 'Brush Script MT', cursive;
}

.subheading {
    color: #1a237e;
    font-weight: normal;
}

.rating-section {
    background-color: #e7ebee;
    padding: 2rem;
    margin-top: 3rem;
    border-radius: 0.5rem;
}

body {
  background-color: var(--background);
  color: var(--primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

html {
  margin: 0;
  padding: 0;
}

.content-wrapper {
  flex-grow: 1; /* Allows content to take up available vertical space */
  padding-bottom: 10px; /* Adjust this value to match your footer's height */
}

.footer {
  background-color: var(--white);
  border-top: 1px solid var(--shadow);
  padding: 1.5rem 0;
  height: 60px; /* Set a fixed height for your footer */
  display: flex;
  justify-content: center; /* Center content horizontally (optional) */
  align-items: center; /* Center content vertically (optional) */
  width: 100%;
  box-sizing: border-box; /* Include padding and border in the height */
}

/* Card Styles */
.card {
  box-shadow: 0 2px 4px var(--shadow);
  background-color: var(--white);
  border-radius: 8px;
}

/* Rating Styles */
.rating {
  display: flex;
  flex-direction: row-reverse;
  gap: 0.5rem;
  justify-content: center;
  margin: 0 auto;
  padding: 0.5rem;
  font-size: 1.5em;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 4px var(--shadow);
}

.rating input {
  display: none;
}

.duration-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.duration-option {
  position: relative;
}

.duration-radio {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.role-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.role-option {
  position: relative;
}

.role-radio {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.role-label {
  display: block;
  padding: 10px 15px;
  background-color: #f8f9fa;
  border: 2px solid #dee2e6;
  border-radius: 5px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.role-radio:checked + .role-label {
  background-color: #182260;
  color: white;
  border-color: #182260;
}

.role-radio:focus + .role-label {
  box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.duration-label {
  display: block;
  padding: 10px 15px;
  background-color: #f8f9fa;
  border: 2px solid #dee2e6;
  border-radius: 5px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.duration-radio:checked + .duration-label {
  background-color: #182260;
  color: white;
  border-color: #182260;
}

.duration-radio:focus + .duration-label {
  box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.rating label {
  color: var(--star-inactive);
  cursor: pointer;
  transition: color 0.2s ease-in-out;
  padding: 0 3px;
  font-size: 2rem;
}

.rating label:hover,
.rating label:hover ~ label,
.rating input:checked ~ label {
  color: var(--star-color);
}

.card {
  border-radius: 15px;
  border: none;
}

.card-header {
  border-top-left-radius: 15px !important;
  border-top-right-radius: 15px !important;
}

.btn-primary {
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.input-group-text {
  background-color: #f8f9fa;
  border-right: none;
}


.alert-danger {
  border-left: 4px solid #dc3545;
}


/* Token input styling */
#token {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: monospace;
  font-size: 1.2rem;
}

/* Text Styles */
.text-muted {
  font-size: 0.9rem;
}

.card-title {
  color: var(--primary);
}

.card-title .text-muted {
  font-size: 0.95rem;
  font-weight: normal;
}

/* Form Elements */
textarea {
  resize: none;
}

/* Rating Groups */
.rating-group:not(.active) {
  display: none;
}

/* Button Styles */
.button {
  background-color: var(--accent);
  color: var(--white);
  border-radius: 6px;
  transition: all 0.3s ease;
  padding: 0.8rem 1.5rem;
  border: none;
  font-weight: 500;
}

.button:hover {
  box-shadow: 0 4px 12px var(--shadow);
  background-color: color-mix(in srgb, var(--accent) 90%, black);
}

.card {
  border-radius: 15px;
  border: none;
}

.card-header {
  border-top-left-radius: 15px !important;
  border-top-right-radius: 15px !important;
}

.btn-primary {
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.input-group-text {
  background-color: #f8f9fa;
}


#productResults {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ccc;
  position: relative;  /* Ensure the list doesn't push other elements */
  z-index: 1; /*Ensure the list displays over other content*/
}

#productResults li {
  cursor: pointer;
}

.selected {
  background-color: #e9ecef;
}