/* --- Modern Login Page Styles --- */
body.login-page {
    background: radial-gradient(ellipse 80% 80% at 50% 20%, #7f9cf5 0%, #6ee7b7 100%) fixed;
    min-height: 100vh;
    margin: 0;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-page .container {
    max-width: 400px;
    width: 100%;
    margin: 40px auto;
    background: rgba(255,255,255,0.10);
    border-radius: 28px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    padding: 56px 36px 36px 36px;
    backdrop-filter: blur(16px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-page .logo {
    display: block;
    margin: 0 auto 18px auto;
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    object-fit: contain;
}

.login-page .brand {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.login-page .welcome {
    color: #e0e7ef;
    font-size: 1.15rem;
    margin-bottom: 28px;
    font-weight: 500;
}

.login-page form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
}

.login-page .input-group {
    position: relative;
    margin-bottom: 0;
    width: 100%;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.18);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 0;
}

/* Add custom arrow for select dropdown */
.login-page .input-group .select-arrow {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #fff; /* changed to white for consistency */
    z-index: 3;
}

.login-page .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    height: 20px;
    width: 20px;
    color: #fff;
    opacity: 0.85;
    pointer-events: none;
    z-index: 2;
}

.login-page .input {
    width: 100%;
    padding: 14px 14px 14px 48px;
    font-size: 1rem;
    border-radius: 12px;
    border: none;
    background: rgba(255,255,255,0.18);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    outline: none;
    margin: 0;
    transition: background 0.2s;
}

.login-page .input:focus {
    background: rgba(255,255,255,0.3);
}

.login-page .input::placeholder {
    color: #e0e7ef;
    opacity: 1;
    font-weight: 500;
}

/* --- Updated select.input styles to match text input --- */
.login-page .input-group select.input {
    border-radius: 12px;
    background: rgba(255,255,255,0.18); /* match text input */
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    font-size: 1rem;
    padding: 14px 48px 14px 48px; /* left for icon, right for arrow */
    height: 48px;
    color: #fff; /* match text input */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    margin: 0;
    outline: none;
    transition: background 0.2s;
}

.login-page .input-group select.input:focus {
    background: rgba(255,255,255,0.3); /* match text input focus */
}

.login-page .input-group select.input option {
    color: #233a7d !important;
    background: #f1f5fb !important;
}

.login-page .input-group select.input::-ms-expand {
    display: none;
}

.login-page .input-group .custom-arrow {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 4;
    display: flex;
    align-items: center;
    height: 18px;
}

/* Custom scrollbar styles for admin-table-container */
.admin-table-container {
    scrollbar-width: thin;
    scrollbar-color: #38bdf8 #e0e7ef;
}
.admin-table-container::-webkit-scrollbar {
    width: 8px;
    background: #e0e7ef;
    border-radius: 8px;
}
.admin-table-container::-webkit-scrollbar-thumb {
    background: #38bdf8;
    border-radius: 8px;
}
.admin-table-container::-webkit-scrollbar-thumb:hover {
    background: #0ea5e9;
}

/* Button styles */
.button {
    width: 100%;
    padding: 16px 0;
    font-size: 1.25rem;
    /* --- Consistent Button Gradient for All Buttons --- */
    background: linear-gradient(90deg, #38ef7d 0%, #22d3ee 100%);
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(34,211,238,0.12);
    cursor: pointer;
    margin-top: 12px;
    margin-bottom: 0;
    transition: background 0.2s, box-shadow 0.2s;
    letter-spacing: 0.5px;
}
.button:active, .button:focus,
button:active, button:focus,
input[type="submit"]:active, input[type="submit"]:focus,
input[type="button"]:active, input[type="button"]:focus {
    background: linear-gradient(90deg, #22d3ee 0%, #38ef7d 100%);
    box-shadow: 0 4px 16px rgba(34,211,238,0.18);
    outline: none;
    display: block;
}
.button:disabled, button:disabled, input[type="submit"]:disabled, input[type="button"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Gradient Button styles */
.button-gradient {
    background: linear-gradient(90deg, #7fffd4 0%, #7fd8ff 100%);
    color: #233a7d;
    border: none;
    border-radius: 12px;
    padding: 14px 32px;
    font-size: 1.15em;
    font-weight: 700;
    margin: 8px 8px 0 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s, box-shadow 0.2s;
}
.button-gradient:hover {
    background: linear-gradient(90deg, #7fd8ff 0%, #7fffd4 100%);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    color: #233a7d;
}

/* Delivery Table Styles */
.delivery-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
  table-layout: auto;
}
.delivery-table th, .delivery-table td {
  padding: 12px 8px;
  text-align: left;
  border-bottom: 1px solid #e1e1e1;
  box-sizing: border-box;
  /* Remove overflow hidden to allow content to show */
}
.delivery-table th:last-child, .delivery-table td:last-child {
  min-width: 120px;
  width: 120px;
}
.delivery-table th {
  background: #f1f5fb;
  font-weight: 600;
}
.delivery-action-btn {
  min-width: 100px;
  max-width: 100%;
  width: auto;
  padding: 10px 0;
  font-size: 1em;
  border-radius: 8px;
  font-weight: 700;
  background: #3466d3;
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px #3466d322;
  transition: background 0.2s;
  text-align: center;
  display: inline-block;
  margin: 0 auto;
  box-sizing: border-box;
}
.delivery-action-btn:hover {
  background: #274fa1;
}

/* Deliveries Filter Group Styles */
.deliveries-filter-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 18px;
    background: rgba(255,255,255,0.18);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 8px 12px;
    position: relative;
    box-sizing: border-box;
}
.filter-date-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 140px;
    min-width: 120px;
    max-width: 180px;
    flex: 1 1 0;
}
.input-date {
    width: 100%;
    min-width: 110px;
    max-width: 180px;
    padding: 10px 36px 10px 12px;
    font-size: 1em;
    border-radius: 8px;
    border: none;
    background: #e3f3f7;
    box-sizing: border-box;
    font-weight: 500;
    letter-spacing: 0.5px;
}
.date-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    color: #3466d3;
    pointer-events: none;
    opacity: 0.7;
}
.city-select {
    min-width: 100px;
    max-width: 140px;
    width: 100%;
    padding: 10px 8px;
    font-size: 1em;
    border-radius: 8px;
    border: none;
    background: #fff;
    box-sizing: border-box;
    flex: 1 1 0;
}
.filter-load-btn {
    min-width: 70px;
    max-width: 100px;
    width: 100%;
    padding: 10px 18px;
    font-size: 1em;
    border-radius: 8px;
    font-weight: 700;
    background: #3466d3;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 2px 8px #3466d322;
    box-sizing: border-box;
}
.filter-load-btn:hover {
    background: #274fa1;
}
.card, .delivery-table, .deliveries-filter-group {
    max-width: 100%;
    box-sizing: border-box;
}
.delivery-table {
    width: 100%;
    table-layout: fixed;
    word-break: break-word;
}
.delivery-table th, .delivery-table td {
    box-sizing: border-box;
    overflow: hidden;
}
.delivery-action-btn {
    width: 100%;
    min-width: 80px;
    max-width: 120px;
    padding: 10px 0;
    font-size: 1em;
    border-radius: 8px;
    font-weight: 700;
    background: #3466d3;
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px #3466d322;
    transition: background 0.2s;
    text-align: center;
    display: block;
    margin: 0 auto;
    box-sizing: border-box;
}
.delivery-action-btn:hover {
    background: #274fa1;
}
.card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: rgba(255,255,255,0.28);
  border-radius: 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 48px 32px 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-sizing: border-box;
  overflow-y: auto; /* Changed overflow to allow scrolling if content overflows */
}
@media (max-width: 600px) {
    .card {
        width: 98vw;
        max-width: 98vw;
        padding: 18px 4vw 18px 4vw;
    }
    .deliveries-filter-group {
        flex-direction: column;
        gap: 8px;
        padding: 8px 4px;
    }
    .filter-date-wrapper, .city-select, .filter-load-btn {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
    .delivery-table th, .delivery-table td {
        padding: 10px 4px;
    }
    .delivery-action-btn {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        padding: 8px 0;
    }
    .actions .button {
        width: 100%;
        max-width: 100%;
    }
}

/* Responsive for mobile */
@media (max-width: 500px) {
    .login-page .container {
        max-width: 98vw;
        padding: 32px 8px 24px 8px;
    }
    .login-page .logo {
        width: 56px;
        height: 56px;
    }
    .login-page .brand {
        font-size: 1.5rem;
    }
}

/* Optional: Make the delivery table area scrollable if it gets too tall, keeping the button visible */
.delivery-table {
  max-height: 320px;
  overflow-y: auto;
  display: block;
}
