* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  padding: 20px 0;
  font-size: 14px;
}

.form-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #101828;
}

/* Tab Styles */
.nav-tabs {
  background: #f8f9fa;
  border-bottom: 2px solid #e9ecef;
  padding: 10px 30px 0;
}

.nav-link {
  color: #666;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 15px 20px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: #667eea;
  border-bottom-color: #667eea;
}

.nav-link.active {
  color: #667eea;
  border-bottom-color: #667eea;
  background: none;
}

.tab-content {
  padding: 30px;
  border: 0.94px solid #e5e7eb;
  border-radius: 15px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Styles */
.form-section {
  margin-bottom: 30px;
}

.form-section h5 {
  background: #eaf5ff;
  color: #1c3664;
  padding: 12px 15px;
  border-radius: 8px 8px 0px 0px;
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 20px;
  border-bottom: 0.94px solid #e5e7eb;
}

/* Form Group Styles */
.form-group {
  margin-bottom: 20px;
}

label {
  font-weight: 400;
  color: #0a0a0a;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-control,
.form-select {
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background-color: #ededed;
  border: none;
}

.form-control:focus,
.form-select:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

small {
  display: block;
  margin-top: 5px;
  color: #7f8c8d;
  font-style: italic;
  font-size: 12px;
}

/* Row Styles */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-row.full {
  grid-template-columns: 1fr;
}

/* Checkbox Styles */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 10px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-item input[type="checkbox"] {
  width: 17px;
  height: 17px;
  cursor: pointer;
  accent-color: #002fff;
}

.checkbox-item label {
  margin: 0;
  cursor: pointer;
  font-weight: 500;
  color: #7f8c8d;
}

/* Hidden field styles */
.hidden-field {
  display: none;
  animation: slideDown 0.3s ease;
}

.hidden-field.show {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}

/* Button Styles */
.btn-group {
  display: flex;
  gap: 10px;
  margin-top: 30px;
  justify-content: flex-end;
}

.btn-custom {
  padding: 12px 30px;
  border-radius: 6px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-primary-custom {
  background: #232758;
  color: white;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary-custom {
  background: #e0e0e0;
  color: #333;
}

.btn-secondary-custom:hover {
  background: #d0d0d0;
}

/* Validation Error Styles */
.is-invalid {
  border-color: #dc3545 !important;
}

.error-message {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 5px;
  display: block;
}

/* File Input Styles */
.file-input-wrapper {
  position: relative;
  overflow: hidden;
  background: #ededed;
  padding: 6px;
  border-radius: 8px;
}

.file-input-wrapper input[type="file"] {
  display: none;
}

.file-input-label {
  display: inline-block;
  padding: 5px 8px;
  background: #ffffff;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
  border: 0.5px solid #d8d8d8;
  color: #717182;
  margin: 0px;
}

.file-input-label:hover {
  background: #e8e8e8;
}

.file-name {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #666;
}
table {
  width: 100%;
  border-collapse: separate;
  border: #ddd 1px solid;
  border-radius: 10px;
  border-spacing: 0;
  overflow: hidden;
}

th {
  background-color: #e8e8e8;
  padding: 12px;
  text-align: left;
  font-weight: normal;
  font-size: 14px;
  border-bottom: 1px solid #ddd;
}

td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
  font-size: 14px;
}
td input {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}
td input[type="text"] {
  width: 100%;
}
td input:focus {
  outline: none;
  border-color: #4caf50;
}
.remove-btn {
  padding: 5px 20px;
  border: 1px solid #ff4c4c;
  border-radius: 8px;
  background: #ff0000b3;
  color: #fff;
  margin-bottom: 10px;
}
button#addBtn,
#addEduBtn,
#addTechBtn,
#addWorkBtn {
  border: 1px solid #232758;
  margin-top: 10px;
  background: transparent;
  color: #000;
  padding: 7px 25px;
}
table tbody tr:last-child td {
  border: none;
}
.experience {
  margin-top: 20px;
}
.remove-row {
  line-height: 7px;
  width: 24px;
  height: 20px;
  background: red;
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
  font-size: 12px;
  color: #fff !important;
}
span.date_icon svg {
    width: 23px;
    height: 23px;
    position: absolute;
    top: 10px;
    right: 10px;
}

 /* Popup styles */
        .popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.85);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }
        
        .popup-overlay.active {
            opacity: 1;
            visibility: visible;
        }
        
        .popup-content {
            max-width: 90%;
            max-height: 90%;
            position: relative;
            transform: scale(0.8);
            transition: transform 0.3s ease;
        }
        
        .popup-overlay.active .popup-content {
            transform: scale(1);
        }
        
        .popup-content img {
            max-width: 100%;
            max-height: 80vh;
            display: block;
            border-radius: 8px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }
        
        .popup-close {
            position: absolute;
            top: -40px;
            right: -40px;
            width: 40px;
            height: 40px;
            background: white;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 24px;
            font-weight: bold;
            cursor: pointer;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
            transition: background 0.2s ease;
        }
        
        .popup-close:hover {
            background: #f0f0f0;
        }
        
        .popup-caption {
            color: white;
            text-align: center;
            margin-top: 15px;
            font-size: 1.1rem;
        }
        
        .instructions {
            background: white;
            padding: 25px;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
            margin-bottom: 30px;
        }
        
        .instructions h2 {
            color: #2575fc;
            margin-bottom: 15px;
        }
        
        .code-block {
            background: #2d3748;
            color: #e2e8f0;
            padding: 15px;
            border-radius: 8px;
            font-family: 'Courier New', monospace;
            margin: 15px 0;
            overflow-x: auto;
        }
        
        footer {
            text-align: center;
            margin-top: 40px;
            padding: 20px;
            color: #6b7280;
            border-top: 1px solid #e5e7eb;
        }
   input.parsley-success,
select.parsley-success,
textarea.parsley-success {
  color: #468847;
  background-color: #DFF0D8;
  border: 1px solid #D6E9C6;
}

input.parsley-error,
select.parsley-error,
textarea.parsley-error {
  color: #B94A48;
  background-color: #F2DEDE;
  border: 1px solid #EED3D7;
}

.parsley-errors-list {
  margin: 2px 0 3px;
  padding: 0;
  list-style-type: none;
  font-size: 0.9em;
  line-height: 0.9em;
  opacity: 0;
  color: #B94A48;

  transition: all .3s ease-in;
  -o-transition: all .3s ease-in;
  -moz-transition: all .3s ease-in;
  -webkit-transition: all .3s ease-in;
}

.parsley-errors-list.filled {
  opacity: 1;
}     
