/* GLOBAL BOX SIZING FIX */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* BASE STYLES */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #f5f7fa;
}

.dashboard-container {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
}

.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid #ddd;
  padding: 20px;
}

.sidebar .logo {
  display: block;
  width: 250px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 40px; /* perfectly center with same space below */
}

.sidebar nav a {
  display: block;
  margin-bottom: 12px;
  text-decoration: none;
  color: #333;
  padding: 10px 12px;
  border-radius: 6px;
  transition: background 0.3s;
}

.sidebar nav a.active,
.sidebar nav a:hover {
  background: #2f8bc4;
  color: #fff;
}

.main-content {
  flex: 1;
  padding: 30px;
  background-color: #f5f7fa;
  width: 100%;
  max-width: 100%;
}

.card {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  margin-top: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
/* FORM STYLING */
.card form input,
.card form select,
.card form button,
.card form textarea {
  width: 100%;
  min-width: 100px;
  max-width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-top: 6px;
  margin-bottom: 16px;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}

input[type="time"],
input[type="date"],
.flatpickr-input {
  width: 100%;
  font-size: 16px;
  padding: 12px;
}

.card form label {
  font-weight: 500;
  display: block;
  margin-bottom: 6px;
}

/* FLATPICKR CUSTOM HIGHLIGHT */
.flatpickr-day.has-entry {
  background-color: #4caf50 !important;
  color: white;
  border-radius: 50%;
}

/* TABLE STYLES */
table {
  table-layout: auto;
  width: 100%;
  border-collapse: collapse;
}

td {
  padding: 4px;
  max-width: 100px;
  vertical-align: top;
  white-space: nowrap;
  overflow: hidden;
}

select {
  width: 100%;
  max-width: 100px;
  padding: 2px 4px;
  font-size: 0.8rem;
  box-sizing: border-box;
}

.site-input {
  width: 100%;
  max-width: 100px;
  font-size: 0.75rem;
  padding: 2px 4px;
}

.shift-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  width: 100%;
}

.shift-cell select,
.shift-cell .site-input {
  width: 90px;
  font-size: 0.75rem;
  padding: 2px 4px;
  box-sizing: border-box;
}

/* RESPONSIVE STYLES */
@media (max-width: 768px) {
  .dashboard-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    padding: 15px 20px;
    border-right: none;
    border-bottom: 1px solid #ddd;
    text-align: left;
  }

  .sidebar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 10px;
  }

  .sidebar nav a {
    flex: 1 1 100%;
    text-align: left;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 16px;
  }

  .main-content {
    padding: 20px;
    width: 100%;
  }

  .card {
    padding: 15px;
    margin-top: 20px;
  }

  .card form input,
  .card form select,
  .card form button,
  .card form textarea {
    font-size: 16px;
    padding: 12px;
  }

  .flatpickr-input {
    font-size: 16px;
  }

  .dropzone {
    padding: 20px;
  }

  .button-group {
    flex-direction: column;
  }

  .copy-button,
  #uploadBtn {
    width: 100%;
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .sidebar .logo {
    width: 150px;           /* Match default size */
    margin: 0 auto 40px;     /* Match default spacing */
  }


  h1 {
    font-size: 20px;
  }

  .sidebar nav a {
    font-size: 14px;
    padding: 8px 10px;
  }

  .button-group button {
    font-size: 14px;
    padding: 8px 12px;
  }
}
