/* Base */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Header */
header {
    background-color: #fff;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo {
    font-weight: 600;
    font-size: 20px;
    color: #111;
}
header a {
    color: #555;
    margin: 0 12px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}
header a:hover {
    color: #111;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .logo {
        display: none;
    }
    header a {
        margin: 0 3px;
        font-size: 13px;
    }
}

/* Page Layout */
main {
    padding: 30px;
}
@media (max-width: 768px) {
    main { padding: 15px; }
}

/* Table Styling - Stripe-like */
.table-container {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    line-height: 1.4;
}

th, td {
    padding: 10px 14px;
    text-align: left;
    border: none;
    white-space: nowrap;
}

th {
    background-color: #f9f9f9;
    color: #555;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e6e6e6;
}

td {
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

tr:hover td {
    background-color: #fafafa;
}
.form-layout tr:hover td, .nohover tr:hover td {
    background-color: #ffffff;
}
.form-layout tr a::before {
  content: none;
}

tr a::before {
/*table row clickable : Entire row is clickable thanks to the pseudo-element overlay*/
  content: "";
  position: absolute;
  inset: 0;           /* stretch to cover row */
}
/* Ensure the <tr> is relatively positioned for overlay */
tr {
  position: relative;
}


/* Compact Inputs inside table */
input[type="number"],
input[type="text"],
select {
    padding: 6px 8px;
    font-size: 13px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Buttons */
.big-button {
    padding: 8px 16px;
    background-color: #635bff;
    color: #fff;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    border: none;
    text-decoration: none;
    display: inline-block;
}
.big-button:hover {
    background-color: #5046e4;
}

/* Filters */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 8px;
}
.filter-bar input[type="text"] {
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 220px;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 20px 0;
}
.pagination a {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  transition: background 0.2s;
}
.pagination a.active {
  background: #635bff;
  color: white;
  border-color: #635bff;
}
.pagination a:hover {
  background: #f6f6ff;
}

.filter-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.filters {
    display: flex;
    gap: 20px;
    font-size: 14px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 20px;
}
.filters a {
    position: relative; /* allows pseudo-element positioning */
    color: #555;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 0; /* vertical spacing without bottom padding */
    transition: color 0.2s ease;
}
.filters a:hover {
    color: #111;
}
.filters a.active {
    color: #111;
    border-bottom: 2px solid #635bff;
    padding-bottom: 2px;
}
.filters a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px; /* sits directly over the container border */
    height: 2px;
    background-color: #635bff; /* Stripe-like active underline */
}
label {
    margin-bottom: 5px;
    font-size: small;
}
/* Forms & Inputs */
input, select, textarea {
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #5DE2E7;
    box-shadow: 0 0 0 2px rgba(99,91,255,0.15);
}


/* Modal window (js) for edits */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(16, 24, 32, 0.5); /* Stripe-style semi-transparent dark overlay */
    backdrop-filter: blur(2px); /* soft blur behind modal */
}
.modal-content {
    position: relative;
    background-color: #fff;
    margin: 10% auto;
    width: 60%;
    max-width: 700px;
    height: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 24px 32px;
    width: 90%;
    animation: fadeIn 0.2s ease-out;
}
.modal-delete-btn {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #888;
    transition: color 0.2s;
}


/*close button for job edit page*/
.page-close-icon {
    position: absolute;
    top: 60px;
    right: 60px;
    font-size: 24px;
}
.fas {
    cursor: pointer;
    color: #929292;
    padding: 1px;
}
.modal-close {
    top: 10px;
    right: 10px;
}

.autoComplete_wrapper{position:relative}.autoComplete_wrapper>input{height:40px;padding-left:10px;font-size:1rem;color:#747474;border-radius:4px;border:1px solid rgba(33,33,33,.2);outline:0}.autoComplete_wrapper>input::placeholder{color:rgba(123,123,123,.5);transition:all .3s ease}.autoComplete_wrapper>ul{position:absolute;max-height:226px;overflow-y:scroll;top:100%;left:0;right:0;padding:0;margin:.5rem 0 0 0;border-radius:4px;background-color:#fff;border:1px solid rgba(33,33,33,.1);z-index:1000;outline:0}.autoComplete_wrapper>ul>li{padding:10px 20px;list-style:none;text-align:left;font-size:16px;color:#212121;transition:all .1s ease-in-out;border-radius:3px;background-color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:all .2s ease}.autoComplete_wrapper>ul>li::selection{color:rgba(#fff,0);background-color:rgba(#fff,0)}.autoComplete_wrapper>ul>li:hover{cursor:pointer;background-color:rgba(123,123,123,.1)}.autoComplete_wrapper>ul>li mark{background-color:transparent;color:#ff7a7a;font-weight:700}.autoComplete_wrapper>ul>li mark::selection{color:rgba(#fff,0);background-color:rgba(#fff,0)}.autoComplete_wrapper>ul>li[aria-selected=true]{background-color:rgba(123,123,123,.1)}@media only screen and (max-width:600px){.autoComplete_wrapper>input{width:18rem}}


/* User Profile - Menu modal overlay control with css*/
#nav_menuToggle_UI{
    display: none;
}
#nav_menuToggle:checked ~ #nav_menuToggle_UI {
    display: block;
}
#nav_menuToggle:checked~.nav__menuCloserOverlay {
    display: flex;
}
.nav__menuCloserOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    background: rgba(239,239,239,0.1);
}
.nav__menu {
    position: absolute;
    right: 0;
    top: 50px;
    width: 140px;
    box-shadow: 0px 2px 10px rgba(78,78,78,0.1);
    z-index: 100;
    background: white;
}
.nav__menu a {
    text-decoration: none;
}
.menu_items p {
    color: #6e6e6e;
    padding: 10px;
    font-size: 13px;
    margin: 0;
    transition: all 0.3s ease
}
.menu_items p:hover {
    background: #f2f2f2;
}

.nav-links a.active {
  color: #635bff;
  font-weight: 600;
}
.nav-links i {
    display: inline-flex; align-items: center; width: 16px; height: 16px; justify-content: center;
}