/* ===============================
   Root Variables (Brand Colors)
   =============================== */
:root {
    --font-family: "Montserrat", serif;
    --font-size: 16px;
    --font-weight: 400;
    --font-color: #212121;

    --primary-color: #010080;
    --primary-color-light: #0100801f;
    --secondary-color: #212121;
    --secondary-color-light: #fcfcfc;
    --light-color: #ffffff;

    --bs-primary: var(--primary-color);
    --bs-secondary: #5A5A5A;
    --bs-success: #28a745;
    --bs-info: #17a2b8;
}

/* ===============================
   Shared Card & Transition Styles
   =============================== */
.card,
.candidate-card {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    animation: fadeInUp 0.5s ease-out;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.2s ease;
}
.candidate-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.card.mb-4.shadow-sm,
.candidate-card {
    border: 1px solid #c0c0c0 !important;
}

/* ===============================
   Candidate-Card Specific
   =============================== */
.candidate-card {
    background: #f8f9fa;
}
.candidate-card-header {
    background: var(--primary-color);
    color: var(--light-color);
    font-weight: 600;
    text-align: center;
    padding: 12px;
    border-radius: 12px 12px 0 0;
}
.candidate-card .card-body {
    padding: 22px;
}
.candidate-info p {
    font-size: 14px;
}
.profile-img {
    background-color: var(--primary-color-light);
    text-align: center;
}
.profile-img img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.5s ease;
}
.profile-img:hover img {
    transform: scale(1.1) rotate(1deg);
}
.card-icon {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-right: 12px;
}
.candidate-card-footer {
    background: #e9ecef;
    border-top: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 0 0 12px 12px;
    text-align: right;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
}
.candidate-card-footer .btn {
    font-size: 14px;
    padding: 5px;
    border: 1px solid var(--primary-color);
    border-radius: 5px !important;
    position: relative;
    transition: box-shadow 0.2s ease;
}
.candidate-card-footer .btn:hover,
.candidate-card-footer .btn:focus {
    box-shadow: 0 0 8px rgba(1, 0, 128, 0.6);
}


/* ===============================
   Floating Text Animation
   =============================== */
@keyframes floatUp {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-4px); }
}
.card-body {
    transition: transform 0.3s ease;
}
.card:hover .card-body {
    animation: floatUp 2s ease-in-out infinite;
}

/* ===============================
   Fade-In Entry
   =============================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===============================
   Forms & Inputs
   =============================== */
.candidate-form {
    background: var(--light-color);
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}
.candidate-form .form-label {
    font-weight: 600;
    color: #444;
}
.candidate-form .form-control {
    border: 1px solid #ced4da;
    border-radius: 6px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.candidate-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(1,0,128,0.25);
}
.candidate-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}
.candidate-form h4 {
    margin: 1rem 0 0.75rem;
    font-weight: 600;
}
.candidate-form .row {
    margin-bottom: 1rem;
}

/* ===============================
   Input Groups
   =============================== */
.input-group-text {
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    font-weight: 500;
}
.input-group .form-control:not(:last-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* ===============================
   Buttons
   =============================== */
.btn-success {
    background-color: var(--bs-success);
    border-color: var(--bs-success);
}
.btn-outline-info {
    color: var(--bs-info) !important;
    border-color: var(--bs-info) !important;
}
.btn-outline-warning {
    color: #ff9800 !important;
    border-color: #ff9800 !important;
}
.btn-outline-secondary {
    color: var(--bs-secondary) !important;
    border-color: var(--bs-secondary) !important;
}
.btn-outline-danger {
    color: #dc3545 !important;
    border-color: #dc3545 !important;
}
.btn-outline-info:hover,
.btn-outline-warning:hover,
.btn-outline-secondary:hover,
.btn-outline-danger:hover {
    color: var(--light-color) !important;
}
.btn-deep-blue {
    color: var(--light-color) !important;
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    transition: box-shadow 0.3s ease;
}
.btn-deep-blue:hover {
    background-color: #000066 !important;
    border-color: #000066 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* ===============================
   Tables
   =============================== */
.table thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #444;
}
.table-bordered td,
.table-bordered th {
    border-color: #e2e2e2;
}

/* ===============================
   Step Wizard
   =============================== */
.step-card {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    margin-bottom: 20px;
}
.step-card-header {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    border-radius: 8px 8px 0 0;
}
.step-card-body {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 15px;
}
.step-button {
    border: 2px solid var(--primary-color);
    background: var(--light-color);
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: bold;
    padding: 10px 20px;
    min-width: 180px;
    border-radius: 6px;
    transition: all 0.3s ease;
}
.step-button i {
    margin-right: 5px;
}
.step-button:hover,
.step-button.active {
    background: var(--primary-color);
    color: var(--light-color);
}
.step-button.active {
    border-color: #0056b3;
    box-shadow: 0 0 10px rgba(0,123,255,0.3);
}

/* Professional button polish for footer actions */
.candidate-card-footer .btn {
  border-radius: 6px;
  font-weight: 500;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: inset 0 0 0 rgba(0,0,0,0);
}
.candidate-card-footer .btn:hover,
.candidate-card-footer .btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.12);
}

/* Stronger fill for info button */
.btn-info {
  background-color: #17a2b8;
  border-color: #17a2b8;
  color: #fff;
}
.btn-info:hover {
  background-color: #138496;
  border-color: #117a8b;
}


/* Focus ring for accessibility */
.candidate-card-footer .btn:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}
.fieldset-flex,
.work-history-segment,
.candidate-form-holder {
  display: flex;
  flex-wrap: wrap;
  gap: 16px; /* Optional spacing between fields */
}
.candidate-form-holder:hover{
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.fieldset-flex div.mb-2,
.fieldset-flex div.mb-3,
#work-history-container div.mb-3,
.candidate-form-holder div.mb-3 {
  flex: 0 0 32%; /* 3 items per row */
  box-sizing: border-box;
  margin-bottom: 0 !important;
}
#step-3 .fieldset-flex div.mb-3{
    flex: 0 0 24%; /* 3 items per row */
}
#work-history-container .form-control,
.candidate-form-holder div.mb-3 .form-control,
.candidate-form-holder div.mb-3 .form-select{
    height: 50px;
    border-radius: 100px;
}
.candidate-form-holder div.mb-3 input[type="file"]{
    min-height: calc(1.5em + (1rem + 2px));
    padding: .5rem 1rem;
}
/*============Candidate Multi Step form styles==*/
.step-card-body {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.step-card-body li {
  flex: 1 1 30%;
  text-align: center;
  position: relative;
}

.step-link {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color:var(--primary-color-light);
  border: 3px solid var(--primary-color);
  color: #495057;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
  transition: all 0.3s ease;
  font-size: 16px;
  position: relative;
  z-index: 1;
}

.step-link.active {
    font-size: 20px;
  background-color: var(--primary-color);
  color: #fff;
  animation: blink 1s infinite alternate;
  text-decoration: none;
}

.step-link.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Optional line between steps */
.step-card-body li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 25px;
  left: 50%;
  width: 100%;
  height: 3px;
  background-color: #dee2e6;
  z-index: 0;
}

@keyframes blink {
  0% { box-shadow: 0 0 0px rgba(13, 110, 253, 0.7); }
  100% { box-shadow: 0 0 12px rgba(13, 110, 253, 0.9); }
}
