/* styles.css */

/* Dark theme for the body and general layout */
body {
    background-color: #121212;
    color: #f0f0f0;
    font-family: 'Arial', sans-serif;
}

/* Form styling */
#termin-div {
    max-width: 500px;
    margin: 50px auto;
    background-color: #1e1e1e;
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.4);
}

.form-group label {
    color: #f0f0f0;
}

.form-control {
    background-color: #333;
    color: #f0f0f0;
    border: 1px solid #444;
    border-radius: 5px;
    margin-left: 15px;
    margin-right: 15px;
}

input::placeholder {
    color: #999;
}

input[type="submit"] {
 background-color: grey;
    color: black;
    /* border: none; */
    /* border-color: white; */
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-top: 15px;
}

input[type="submit"]:hover {
    /* background-color: #fb4061; */
    background-color: grey;

}
/* Datepicker weekdays styling */
.ui-datepicker th {
    color: white; /* Weekday text color */
}

/* General Datepicker styling */
#datepicker {
    cursor: auto;
    background-color: #333;
    color: #fff;
    border-radius: 5px;
    border: 2px solid #444;
    padding: 10px;
    width: 100%;
    margin-bottom: 10px;
}
#datepicker::placeholder {
    color: white;
    opacity: 1;
}
/* Datepicker styling */
.ui-datepicker {
    background-color: #333;
    border: 3px solid #555;
}

/* Make sure the calendar days have a readable color */
.ui-datepicker-calendar td a {
    background-color: #444;
    color: #f0f0f0;
} 

.ui-datepicker-calendar td a:hover {
    background-color: white;
}

/* Datepicker header */
.ui-datepicker-header {
    background-color: #444;
    border-bottom: 1px solid #555;
    color: #fff;
}

/* Disable days have dimmed color */
.ui-state-disabled {
    background-color: #222 !important;
    color: #777 !important;
}

/* Make the next and previous buttons visible */
.ui-datepicker-prev, .ui-datepicker-next {
    background-color: white; /* Button background color */
    border-radius: 5px;
}

/* Arrows for next and prev buttons */
.ui-datepicker-prev span, .ui-datepicker-next span {
    color: #777777; /* Arrow color */
    font-size: 1.2rem; /* Size of the arrow */
}

#termin-div{
margin-bottom: auto;
}


/* Combobox styling */
#combobox select {
    background-color: white;
    color: #444;
    margin-top: 10px;
    border: 1px solid #444;
    border-radius: 5px;
    width: 100%;
    padding: 10px;
    height: 35px;
    margin-top: 10px;
    margin-bottom: 10px;
}


/* Name and email fields spacing */
#nameAndEmail input {
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
}
footer{
  vertical-align: bottom;  
}

/* The snackbar - position it at the bottom and in the middle of the screen */
#snackbar {
    visibility: hidden; /* Hidden by default. Visible on click */
    min-width: 250px; /* Set a default minimum width */
    margin-left: -125px; /* Divide value of min-width by 2 */
    background-color: #333; /* Black background color */
    color: #fff; /* White text color */
    text-align: center; /* Centered text */
    border-radius: 2px; /* Rounded borders */
    padding: 16px; /* Padding */
    position: fixed; /* Sit on top of the screen */
    z-index: 1; /* Add a z-index if needed */
    left: 50%; /* Center the snackbar */
    bottom: 30px; /* 30px from the bottom */
  }
  
  /* Show the snackbar when clicking on a button (class added with JavaScript) */
  #snackbar.show {
    visibility: visible; /* Show the snackbar */
    /* Add animation: Take 0.5 seconds to fade in and out the snackbar.
    However, delay the fade out process for 2.5 seconds */
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
  }
  
  /* Animations to fade the snackbar in and out */
  @-webkit-keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
  }
  
  @keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
  }
  
  @-webkit-keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
  }
  
  @keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
  }
  #toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.toast {
    background-color: #333;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 250px;
    font-size: 16px;
    font-family: Arial, sans-serif;
    opacity: 1;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    transform: translateX(100%);
}

.toast.success { background-color: #4CAF50; }
.toast.error { background-color: #f44336; }

.toast.show {
    transform: translateX(0);
}

.toast.hide {
    opacity: 0;
    transform: translateX(100%);
}