/*
   CSS styling examples for the Vaadin app.

   Visit https://vaadin.com/docs/styling/application-theme/ for more information.
*/

html {
  --lumo-primary-color: #34649B;
  --lumo-header-text-color:  #34649B;
  --lumo-primary-text-color: #34649B;
  --lumo-secondary-text-color: #34649B;
  --lumo-body-text-color: #34649B;
  --lumo-primary-contrast-color: #FFFFFF;
  --lumo-contrast-60pct: #34649B;
  --lumo-success-color: #439046; /* Custom success color */
  --lumo-error-color: #d3362a; /* Custom error color */
  --lumo-warning-text-color: #4b92cd; /* Custom warning color */
  --lumo-contrast-color: #FF9C43;
  --lumo-primary-color-50pct: #f4f4f4;
  --lumo-primary-color-10pct: #f4f4f4;
  --lumo-contrast-5pct: #f4f4f4;
  --lumo-contrast-10pct: #f4f4f4;
}


/* Example: CSS class name to center align the content . */
.centered-content {
  margin: 0 auto;
  max-width: 250px;
}

/* Example: the style is applied only to the textfields which have the `bordered` class name. */
vaadin-text-field.bordered::part(input-field) {
  box-shadow: inset 0 0 0 1px var(--lumo-contrast-30pct);
  background-color: var(--lumo-base-color);
}

.page-title {
    font-size: var(--lumo-font-size-l);
    margin: 0;
    padding: 10px 0px 0px 0px;
}

.page-logo {
    height: 30px;
    padding: 0px 0px 15px 0px;
}

.address-grid{
    font-size: var(--lumo-font-size-xs);
}

.text-warning {
    font-size: var(--lumo-font-size-s);
    color: var(--lumo-warning-text-color);
    margin: 0;
}

.chat-window-message-list {
    width: 100%;
    max-height: 230px;
}

.chat-window-chat-layout{
    height: 290px;
    overflow: auto;
    border: 1px solid #ddd;
    padding: 10px;
}

.chat-window-message{
    padding: 2px 0px;
    margin-bottom: 10px;
}

.chat-window-input {
    width: 100%;
}

.chat-window-header{
    font-weight: bold;
}

.toggle-chat-button{
    position: fixed;
    bottom: 20px;
    right: 50px;
    z-index: 199;
    padding: 10px;
    width: 60px;  /* Set the button width */
    height: 60px; /* Set the button height */
    border-radius: 50%; /* Make it round */
    background-size: 70%; /* Scale down the image to leave padding */
    background-color: var(--lumo-secondary-text-color);
    background-image: url('/images/logo-white.svg'); /* Replace with your image path */
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Prevent tiling */
    border: 3px solid var(--lumo-contrast-color); /* Use custom variable */
    cursor: pointer; /* Change cursor to pointer */
}


.bordered {
   border: 1px solid var(--lumo-primary-text-color); /* Use custom variable */
}

.pallet-numbered{
    color: var(--lumo-primary-text-color);
    padding: 0px 0px 0px 5px;
}

.minimize-button {
   background: none;
   border: none;
   cursor: pointer;
   font-weight: bold;
}

.chat-window-input.vaadin-text-area {
    background-color: var(--lumo-base-color);
}

.scroller-style {
    padding: var(--lumo-space-s);
}

.changes-indicator {
    width: 20px;            /* Button width */
    height: 20px;           /* Button height */
    border-radius: 50%;     /* Make it a circle */
    background-color: var(--lumo-warning-text-color);
    color: white;           /* Icon/text color */
    border: none;           /* Remove border */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.count-indicator {
    gap: 0px;
    width: 20px;            /* Button width */
    height: 20px;           /* Button height */
    border-radius: 50%;     /* Make it a circle */
    background-color: var(--lumo-primary-text-color);
    color: white;           /* Icon/text color */
    border: none;           /* Remove border */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.changes-indicator:hover {
    background-color: #0056b3; /* Darker shade on hover */
}

.changes-indicator:focus {
    outline: none; /* Remove focus outline */
    box-shadow: 0 0 5px #007bff;
}


.add-dialog{
    z-index: 200 !important;
}

.validation-error {
    color: var(--lumo-error-color);
    font-size: var(--lumo-font-size-s);
}

.validation-error::before {
    content: "🚫️ ";
}

.validation-success {
    color: var(--lumo-success-color);
    font-size: var(--lumo-font-size-s);
}

.validation-success::before {
    content: "✅ ";
}

.validation-warning {
    color: var(--lumo-warning-text-color);
    font-size: var(--lumo-font-size-s);
}

.validation-warning::before {
    content: "⚠️ ";
}

.small-text-secondary{
    font-size: var(--lumo-font-size-xs);
    color: var(--lumo-secondary-text-color);
}

.login-view {
    background: linear-gradient(135deg, var(--lumo-primary-color-10pct), var(--lumo-primary-color-50pct));
}

.login-container {
    background: var(--lumo-base-color);
    padding: 2rem;
    border-radius: var(--lumo-border-radius-l);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
}

.login-header {
    margin: 0 0 2rem;
    color: var(--lumo-primary-text-color);
    text-align: center;
}

.login-form {
    width: 100%;
}

.print-link{
    color: var(--lumo-contrast-color);
}

.print-link vaadin-icon{
    padding: 0px 0px 3px 0px;
    width: 20px;
    height: 20px;
}