
body {
    margin: 0;
    font-family: Arial, sans-serif;
}

:root {
    --border-color: #dee2e6;
    --primary-bg: #343a40;
    --primary-fg: #ffffff;
    --accent: #198754;
    --warning: #ffc107;
    --danger: #dc3545;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
}

h1 {
    margin: 0;
    font-size: 1.75rem;
}

h2 {
    margin: 0.25rem 0 1.5rem 0;
    font-weight: normal;
    color: #6c757d;
}

.meta {
    margin: 3%;
    margin-bottom: 1.5rem;
}

.meta span {
    display: inline-block;
    min-width: 6rem;
    font-weight: 600;
}

.user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.user-header h1 {
    margin: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}
thead > tr > th:first-child, tbody > tr > td:first-child, tfoot > tr > td:first-child  {
    text-align: left;
}

th, td {
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid var(--border-color);
    text-align: right;
}

th {
    background: var(--primary-bg);
    color: var(--primary-fg);
}

tfoot td {
    font-weight: bold;
}

.negative {
    color: var(--danger);
}

.qr {
    text-align: center;
    margin-top: 2rem;
}

.badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    background: var(--accent);
    color: #fff;
    border-radius: 0.25rem;
    font-size: 0.85rem;
}

.badge.no {
    background: var(--warning);
    color: #000;
}

/* Base Menu Styles */
.menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 10px;
    gap: 20px; /* spacing between user and icon */
}



/* For small screens (mobile) */
@media (max-width: 768px) {
    .menu {
        justify-content: flex-end;
    }

    .dropdown {
        display: none;
        position: absolute;
        right: 10px;
        top: 50px;
        width: 200px;
    }

    .container {
        overflow-y: auto;
    }
}

.container {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: 100vh;
}

.section {
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: white;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: white;
}

.textfield {
    position: relative;
    max-width: 85%;
    /*border: 2px solid white;*/
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Creates a soft shadow effect around text */
    background-color: rgba(0, 0, 0, 0.6); /* Slight background behind the text for contrast */
    line-height: 1.5;
    z-index: 2; /* Ensure it is above the video */
}

.section h1 {
    font-size: 2.9em;
    margin: 0;
    text-align: center;
}

.section p {
    font-size: 1.2em;
    margin: 0;
}

@media (orientation: landscape) {
    .section {
        background-size: contain;
    }
}

/* Example Background Colors/Images */
.section1 {
    background-image: url('./image.jpg');
}

.section2 {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white; /* Text color (fallback if not using textfield) */
    text-align: left;
    background-color: black;
}

.section3 {
    background-image: url('./bg/rfid.jpg');
    background-size: cover;
    text-align: left;
}

.section4 {
    background-image: url('./bg/IMG_0456.jpg');
    background-size: cover;
    text-align: left;
}

.section5 {
    background-image: url('./bg/s-l1600.webp');
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: contain;
    z-index: 0; /* Below the text */
    pointer-events: none; /* Makes it non-interactive */
    overflow-y: hidden;
}

@media (min-width: 1024px), (orientation: landscape) {
    .background-video {
        object-fit: cover; /* Crop the video to cover the section */
    }
}

.contact-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-item {
    display: flex;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.icon {
    font-size: 1.2em;  /* Bigger icons for visibility */
    margin-right: 10px;
}

.contact-item a {
    color: #ff7e5f;  /* Change link color to highlight */
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.social{
    align-items: center;
    text-align: center;
    justify-content: center;
    font-size: 2em;
}


@media (max-width: 768px) {
    .contact-details {
        flex-direction: column;
    }

    .contact-item {
        font-size: 1.1em;
    }

    .social{
        font-size: 2em;
    }
}

.arrow {
    position: static;
    top: 20px;
    margin: 0;
    left: 0;
    transform: translateX(-50%);
    font-size: 3em;
    font-style: bold;
    color: darkgreen;
    cursor: pointer;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}



.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.7);
}

.authModal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
}

.close-button {
    float: right;
    font-size: 1.5rem;
    cursor: pointer;
}

.user-profile {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    color: white;
    margin-right: 20px;
}

.user-profile:hover {
    opacity: 0.8;
}

.user-icon {
    font-size: 20px;
    margin-right: 8px;
}

a.user-profile{
    text-decoration: none !important;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.auth-form label {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.auth-form input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
}

.auth-form-button {
    padding: 10px;
    background-color: #28a745; /* green button */
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.auth-form-button:hover {
    background-color: #218838;
}


.profile-form {
    display: flex;
    flex-direction: column;
    gap: 0; /* gap už nepoužíváme, řízeno přes marginy */
    margin-top: 1rem;
}

.profile-form label {
    margin-top: 1rem;        /* větší mezera NAD label */
    margin-bottom: 0.2rem;   /* malá mezera POD label k inputu */
    font-weight: bold;
}

.profile-form input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
}

.profile-form-button {
    width: fit-content;
    margin: 1rem auto 0 auto;
    padding: 10px;
    background-color: #007bff;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.profile-form-button:hover {
    background-color: #0056b3;
}


.hidden {
    display: none;
}

.snackbar {
    background-color: #0e3a2f;
    border-radius: 6px;
    color: white;

    max-width: calc(100vw - 16px);
    width: auto;
    white-space: normal;
    padding: 12px;

    display: flex;
    flex-wrap: wrap;                /* allow wrapping on small screens */
    justify-content: center;
    align-items: center;
    gap: 12px;

    position: fixed;
    bottom: calc(env(safe-area-inset-bottom) + 24px);
    left: 8px;
    right: 8px;
    margin-left: auto;
    margin-right: auto;
    z-index: 1000;

    box-sizing: border-box;
  }

  .snackbar-message {
    text-align: center;
    white-space: normal;
    flex: 1 1 auto;                /* allow message to grow */
  }

  /* Prevents button from shrinking */
  .snackbar-button {
    border-radius: 6px;
    background: transparent;
    color: #fff;
    font-weight: bold;
    padding: 6px 16px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  /* Optional divider */
  .snackbar-divider {
    height: 100%;
    width: 2px;
    background-color: #5a5b5c;
  }

  /* Push snackbar above keyboard on mobile if needed */
  .snackbar.visible-above-keyboard {
    bottom: 160px;
  }

  /* === DESKTOP OVERRIDE === */
  @media (min-width: 768px) {
    .snackbar {
      left: auto;
      right: calc(env(safe-area-inset-right) + 16px);
      min-width: 300px;
      margin-left: 0;
      margin-right: 0;
      flex-wrap: nowrap;           /* no wrapping */
      justify-content: space-between; /* message left, button right */
    }

    .snackbar-message {
      text-align: left;            /* optional: left-align text on desktop */
    }
  }

  .password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    flex: 1;
    padding-right: 2.5rem; /* space for the eye icon */
}

.toggle-password {
    position: absolute;
    right: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    color: #666;
}

.logout-button {
    background-color: #d9534f;
    color: white;
    border: none;
    padding: 0.5em 1em;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    text-wrap: nowrap;
}

.logout-button:hover {
    background-color: #c9302c;
}

.credit-form-row {
    display: flex;
    align-items: center;
    gap: 4px; /* spacing between elements */
}

.credit-form-row input[type="amount"] {
    font-size: 17px;
    padding: 4px;
    width: 100px;
}

.profile-pay-button {
    font-size: 17px;
    padding: 6px 12px 6px 6px ;
    border: none;
    border-radius: 5px;
    background-color: #f0c14b;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease-in-out;
}

.profile-pay-button:hover {
    background-color: #e2b33c;
}