body {
    margin: 0;
    padding: 0;
    background-color: #f4f6f9;
    font-family: "Segoe UI", Arial, sans-serif;
}

.page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding-top: 40px;
}

.logo img {
    width: 320px;
    height: auto;
    margin-bottom: 10px;
}

.login-container {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 320px;
    text-align: center;
    box-sizing: border-box;
}


h2 {
    color: #043C96;
    font-weight: bold;
    margin-bottom: 20px;
}

input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

button {
    width: 100%;
    padding: 12px;
    background: #043C96;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #032f78;
}

/* Кнопка Реєстрації */
button.secondary {
    background: #e0e0e0;
    color: #043C96;
    border: 2px solid #043C96;
    margin-top: 10px;
}

button.secondary:hover {
    background: #f5f5f5;
    border-color: #032f78;
    color: #032f78;
}

.forgot-password {
    margin-top: 10px;
}

.forgot-password a {
    color: #043C96;
    font-size: 14px;
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.no-account {
    margin-bottom: 4px;
}

.input-hint {
    font-size: 12px;
    color: #666;
    margin-top: -6px;
    margin-bottom: 10px;
    display: none;
}

.form-error {
    color: red;
    font-size: 13px;
    margin-top: -8px;
    margin-bottom: 10px;
}

input.error {
    border: 2px solid red;
}

.success-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 14px;
}

.form-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 14px;
}

/* === СТИЛІ ДЛЯ ХЕДЕРА КЛІЄНТА === */
.client-header {
    width: 100%;
    background-color: #043C96; /* Замість білого */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    position: relative;
}

.client-logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}


.client-logo {
    height: 60px; /* Було 40px — зробили більшим */
}

.brand-name {
    font-weight: bold;
    font-size: 1.3rem;
    color: #043C96;
}

.menu {
    display: flex;
    gap: 20px;
    background-color: #043C96;
    padding: 10px 20px;
    border-radius: 0 0 6px 6px;
    margin-left: auto;
}

.menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.menu a:hover {
    text-decoration: underline;
}

.burger {
    display: none;
    font-size: 26px;
    background: none;
    border: none;
    color: white; /* Білий для контрасту */
    cursor: pointer;
}

.content {
    padding: 30px 20px;
    flex: 1;
    max-width: 960px;
}

.evis {
    color: #043C96;
}

.create-button {
    display: inline-block;
    margin-top: 20px;
    background-color: #043C96;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s ease;
}

.create-button:hover {
    background-color: #032f78;
}

/* Адаптивність */
@media (max-width: 768px) {
    .menu {
        display: none;
        flex-direction: column;
        background-color: #043C96;
        position: absolute;
        top: 60px;
        right: 20px;
        padding: 10px;
        border-radius: 8px;
        z-index: 999;
    }

    .menu.open {
        display: flex;
    }

    .burger {
        display: block;
    }
}

.white-box {
    background-color: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
    max-width: 880px;
    width: 95%;
    margin: 40px auto;
    box-sizing: border-box;
    color: #111;
    position: relative;
    z-index: 1;
}

.client-logo-container a {
    text-decoration: none !important;
    display: flex;
    align-items: center;
}

.client-logo-container a:visited,
.client-logo-container a:hover,
.client-logo-container a:focus,
.client-logo-container a:active {
    text-decoration: none !important;
}

.client-logo-container img {
    display: block;
    border: none;
}

form label {
    display: block;
    margin-top: 15px;
    font-weight: 500;
}

form input,
form select {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 16px;
}

form label {
    display: block;
    margin-top: 16px;
    font-weight: 500;
}

select {
    margin-bottom: 15px;
}

.filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filters a {
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    background-color: #e5e7eb;
    color: #111827;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.filters a:hover {
    background-color: #cbd5e1;
}

.filters a.active {
    background-color: #2563eb;
    color: #fff;
    font-weight: 600;
}

.filters-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.filter-action {
    background-color: #2563eb;
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.filter-action:hover {
    background-color: #1e40af;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    box-sizing: border-box;
}

table {
    width: 100%;
    min-width: 300px;
    border-collapse: collapse;
}

table th, table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
    font-size: 14px;
    word-break: break-word;
    white-space: normal;
}

table th {
    background-color: #f0f4f8;
    color: #111827;
    font-weight: 600;
}

table tr:nth-child(even) {
    background-color: #f9fafb;
}

.edit-btn,
.approve-btn,
.reject-btn,
.close-btn {
  background: transparent; /* або background-color */
  border: none;
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  margin: 0 4px;
  color: #043C96;
  transition: transform 0.1s ease;
  appearance: none;
}

.edit-btn:hover,
.approve-btn:hover,
.reject-btn:hover,
.close-btn:hover {
  transform: scale(1.2);
  color: white;
  background-color: #021f4e;
  
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 10000;
}

.close-modal {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 24px;
  cursor: pointer;
}

.flash {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 16px 24px;
  border-radius: 8px;
  font-family: sans-serif;
  font-size: 16px;
  min-width: 300px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  display: none;
}
.flash.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.flash.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.badge-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #ffc107; /* жовтий */
  border-radius: 50%;
  margin-left: 5px;
  vertical-align: middle;
}
