/* Update the styles.css file with modernized styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  line-height: 1.6;
  background: #f8f6f4;
  color: #333;
  background-image: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 246, 244, 0.9) 100%),
    repeating-linear-gradient(45deg, rgba(244, 128, 36, 0.05) 0px, rgba(244, 128, 36, 0.05) 2px,
    transparent 2px, transparent 6px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 40px;
  background: #ffffff;
  padding: 35px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid rgba(244, 128, 36, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

header:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(244, 128, 36, 0.1);
}

.company-info {
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.company-logo {
  max-width: 160px;
  height: auto;
  transition: transform 0.3s ease;
}

.company-logo:hover {
  transform: scale(1.05);
}

h1 {
  color: #2d2925;
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.input-section {
  background: #ffffff;
  padding: 35px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  margin-bottom: 30px;
  border: 1px solid rgba(244, 128, 36, 0.1);
}

.form-group {
  margin-bottom: 25px;
}

label {
  display: block;
  margin-bottom: 10px;
  color: #2d2925;
  font-weight: 500;
  font-size: 1.1em;
}

input[type="number"], 
input[type="date"] {
  width: 100%;
  padding: 15px;
  border: 2px solid #eee;
  border-radius: 12px;
  font-size: 1em;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

input[type="number"]:focus, 
input[type="date"]:focus {
  border-color: #f48024;
  box-shadow: 0 0 0 3px rgba(244, 128, 36, 0.1);
  outline: none;
  background: #fff;
}

button {
  background: linear-gradient(135deg, #f48024 0%, #ff9f4d 100%);
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1em;
  transition: all 0.3s ease;
  margin: 5px;
  letter-spacing: 0.5px;
  box-shadow: 0 10px 20px rgba(244, 128, 36, 0.15);
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(244, 128, 36, 0.25);
}

.results-section {
  background: #ffffff;
  padding: 35px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid rgba(244, 128, 36, 0.1);
}

.results-section h2 {
  color: #2d2925;
  margin-bottom: 25px;
  font-size: 1.8em;
  font-weight: 700;
  letter-spacing: -0.5px;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

tr {
  transition: transform 0.2s ease;
}

tr:hover {
  transform: translateX(5px);
  background-color: #fff9f4;
}

td {
  padding: 18px;
  border-bottom: 1px solid rgba(244, 128, 36, 0.1);
  font-size: 1.1em;
}

table td:first-child {
  font-weight: 500;
  color: #2d2925;
  border-radius: 12px 0 0 12px;
}

table td:last-child {
  border-radius: 0 12px 12px 0;
}

.total {
  font-weight: bold;
  background-color: #fff9f4;
}

.fee-group {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding: 20px;
  background: #fff9f4;
  border-radius: 12px;
  border: 1px solid rgba(244, 128, 36, 0.1);
  transition: transform 0.2s ease;
}

.fee-group:hover {
  transform: translateX(5px);
}

.fee-group input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #f48024;
  cursor: pointer;
}

.percent-input input[type="number"] {
  width: 100px;
  text-align: center;
  padding: 12px;
}

.flatpickr-calendar {
  background: #fff;
  box-shadow: 0 3px 13px rgba(0,0,0,0.08);
  border-radius: 8px;
}

.flatpickr-day {
  border-radius: 4px;
}

.flatpickr-day.selected {
  background: #f48024;
  border-color: #f48024;
}

.flatpickr-day:hover {
  background: #e9e9e9;
}

.flatpickr-current-month {
  color: #333;
  font-weight: 500;
}

.flatpickr-weekday {
  color: #666;
  font-weight: normal;
}

.flatpickr-day.today {
  border-color: #f48024;
}

.date-inputs-container {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.date-inputs-container .form-group {
  flex: 1;
}

.salary-months-container {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.salary-months-container h3 {
  margin-bottom: 15px;
  color: #333;
}

.salary-months-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.month-input {
  background: white;
  padding: 10px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.month-input label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.9em;
  color: #666;
}

.month-input input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.import-export {
  margin-top: 30px;
  text-align: center;
  padding: 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

input[type="file"] {
  margin: 15px 0;
  padding: 10px;
  border: 2px dashed rgba(244, 128, 36, 0.2);
  border-radius: 12px;
  width: 100%;
  cursor: pointer;
}

input[type="file"]:hover {
  border-color: #f48024;
}

.return-link {
  display: inline-flex;
  align-items: center;
  color: #f48024;
  text-decoration: none;
  font-weight: 500;
  margin-top: 15px;
}

.return-link:hover {
  color: #ff9f4d;
}

.loading {
  position: relative;
  opacity: 0.7;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #f48024;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .container {
    padding: 15px;
  }
  
  header,
  .input-section,
  .results-section {
    padding: 25px;
    border-radius: 20px;
  }
  
  .fee-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  button {
    width: 100%;
    margin: 5px 0;
  }
  
  td {
    padding: 15px;
    font-size: 1em;
  }
}