/* ---------- font Styles ---------- */
.v-blue {color: #007bff;}
.ocean {color: #01af96;}
.o-yellow {color: #01af96;}
.d-red {color: #dc3545;}
.italic {font-style: italic;}

/* ---------- Backgrounds ---------- */
.bg-v-blue {background-color: #007bff;}
.bg-ocean {background-color: #01af96;}
.bg-o-yellow {background-color: #01af96;}
.bg-d-red {background-color: #dc3545;}

/* ---------- Display Conditions ---------- */
.flex {display: flex;}
.wrap {flex-wrap: wrap;}
.gap {gap: 15px}
.content-center {justify-content: center; align-content: center;}
.before::before {content: "Rs.";}
.after::after {content: "/-";}

/* ---------- Margins and Paddings ---------- */
.none {margin: 0;}
.top {margin-top: 25px;}


/* ---------- Labels and Input Fields ---------- */
.field { display: flex; }
.field-bottom { margin-bottom: 10px;}

.label {
    flex-shrink: 0;
    min-width: 90px;
    padding: 6px 10px;
    text-align: left;
    background-color: #007bff; color: #fff;
    border: 1px solid #007bff; border-left: 5px solid #01af96;
}

.label-hover { cursor: pointer; transition: background-color 0.5s; }
.label-hover:hover { background-color: #01af96; }

.input {
    margin-right: 12px; padding: 6px 10px;
    text-align: left;
    font-size: 15px;
    border: 1px solid #007bff;
}

.input-title { width: 350px; }

.input-date { width: 130px; }

.input-wide {
    width: 90%;
    margin-right: 0; margin-top: 5px;
    border: 1px solid #01af96; border-radius: 6px; }

.select {
    margin-right: 15px; padding: 6px 10px;
    text-align: left;
    font-size: 14px;
    border: 1px solid #007bff; border-left: 5px solid #01af96; }

.file-name {
    font-size: 14px;
    padding: 8px 10px 0;
    border: 1px solid #007bff;
}

/* ---------- Buttons ---------- */
button, a { text-decoration: none; cursor: pointer; transition: background-color 0.5s ease; }

.save-button {
    padding: 8px 20px;
    font-size: 15px;
    background-color: #01af96; color: #fff;
    border-radius: 6px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.save-button:hover { background-color: #007bff; }

.save-button-slim {
    padding: 6px 16px;
    font-size: 15px;
    background-color: #01af96; color: #fff;
    border-radius: 6px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.save-button-slim:hover { background-color: #007bff; }

.tools-button {
    margin-left: 15px; padding: 6px 16px;
    font-size: 14px;
    background-color: #01af96; color: #fff;
    border-width: 1px; border-radius: 6px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.tools-button:hover { background-color: #007bff; }

.tools a {
    margin-left: 15px; padding: 5px 16px;
    font-size: 14px;
    background-color: #007bff; color: #fff;
    border: 1px solid #000 ; border-radius: 6px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3)
}

.tools a:hover { background-color: #01af96; }

.disable-button-slim {
    padding: 6px 16px;
    font-size: 15px;
    background-color: #fcb800; color: #000;
    border-radius: 6px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.disable-button-slim:hover { background-color: #dc3545; color: #fff; }

.addrow-button {
    display: flex;
    margin-top: 10px; padding: 10px 20px;
    font-size: 16px;
    background-color: #007bff; color: #fff;
    border: none; border-radius: 6px;
}

.addrow-button:hover { background-color: #01af96; }

.remove-row-button {
    padding: 5px 10px;
    font-size: 13px;
    background-color: #007bff; color: #fff;
    border: none;
}

.remove-row-button:hover { background-color: #dc3545; }

.moveUpBtn, .moveDownBtn {
    margin-bottom: 3px;
    padding: 3px 3px 2px 1px;
    font-size: 12px;
}

.totals-summary button { padding: 2px 15px; }

.totals-summary button:hover {background-color: #fcb800;}

/* ---------- Navigation ---------- */
.nav {
    display: flex; gap: 20px;
    margin-top: 30px;
    justify-content: flex-end;
}

.nav a {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #007bff; color: #fff;
    border-radius: 7px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.nav a:hover { background-color: #01af96; }

/* ---------- Archive Buttons ---------- */
.archive {
    display: flex; gap: 20px;
    margin-top: 15px; padding: 15px;
    background-color: #fcb80033;
    border: 1px solid #000; border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

#archiveButton, .invoices-archive {
     padding: 8px 16px;
     font-size: 16px; font-weight: 600;
     background-color: #fcb800; color: #222;
     border: 1px solid #333; border-left: 5px solid #333;
     cursor: pointer; transition: background-color 0.5s ease;
     box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.invoices-archive:hover, #archiveButton:hover { background-color: #01af96; color: #fff }

/* ---------- Actions Dropdown ---------- */
.action-wrapper {
  position: relative;
  display: inline-block;
  min-width: 150px;
}

.action-dropdown { color: #007bff; font-weight: 600;}
.action-dropdown option { color: #000; }

.action-dropdown {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  padding: 7px 18px 7px 10px;
  border-radius: 8px;
  border: 1px solid #d0d7de;
  background: linear-gradient(180deg, #ffffff, #f6f8fa);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}

/* Hover */
.action-dropdown:hover {
  border-color: #0969da;
  box-shadow: 0 4px 10px rgba(9, 105, 218, 0.15);
  transform: translateY(-1px);
}

/* Focus */
.action-dropdown:focus {
  outline: none;
  border-color: #0969da;
  box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.25);
}

/* Disabled option look */
.action-dropdown option:disabled {
  color: #999;
}

/* Custom arrow */
.dropdown-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 20px;
  color: #01af96;
  transition: transform 0.25s ease;
}

/* Rotate arrow on hover */
.action-wrapper:hover .dropdown-arrow {
  transform: translateY(-50%) rotate(180deg);
}

/* ---------- Global Buttons Animation ---------- */
a {
  display: inline-flex;
  align-items: center; justify-content: center;

  position: relative;
  overflow: hidden;
}

button,
a {
  position: relative;
  overflow: hidden;
}

button::after,
a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.4),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

button:hover::after,
a:hover::after {
  transform: translateX(100%);
}