/* === staff-profile-form/css/style.css === */

/* Base reset + box-sizing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #2c3e50;
  line-height: 1.6;
}

/* Center everything and give a light gray page background */
html, body {
  width: 100%;
  background: #f0f2f5;
  padding: 20px 10px;
}

/* The white "card" that holds the form */
.form-container {
  max-width: 900px;
  width: 100%;
  margin: 0 auto 40px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Purple-blue top gradient for the form header */
.form-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 40px 30px;
  text-align: center;
}

.form-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 10px;
  font-weight: 300;
}

.form-header p {
  opacity: 0.9;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  color: #f0f2f5 ;
}

/* The main form area */
.form-content {
  padding: 40px 30px;
}

/* Each "section" has a fade-in animation and spacing */
.section {
  margin-bottom: 40px;
  animation: fadeInUp 0.6s ease-out;
}

.section:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: #2c3e50;
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: #e74c3c;
}

/* Form group base styling */
.form-group {
  margin-bottom: 20px;
  width: 100%;
}

/* Grid for two-column rows */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
  width: 100%;
}

/* Single-column rows */
.form-row-single {
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: 20px;
  width: 100%;
}

/* Label styling */
label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #34495e;
  font-size: 0.95rem;
}

/* Inputs, selects, textareas - Fixed width issues */
input[type="text"],
input[type="date"],
input[type="file"],
textarea,
select {
  width: 100%;
  padding: 16px 18px;
  border: 2px solid #e0e6ed;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #fff;
  color: #2c3e50;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Focus states */
input[type="text"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
  transform: translateY(-1px);
}

/* Profile picture upload styling - Better alignment */
.profile-picture-section {
  margin-bottom: 30px;
}

.profile-upload-container {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}

.profile-preview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px dashed #3498db;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  background: #f8f9fa;
  flex-shrink: 0;
}

.profile-preview:hover {
  border-color: #2980b9;
  background: #e3f2fd;
  transform: scale(1.05);
}

.profile-placeholder {
  text-align: center;
  color: #7f8c8d;
  font-size: 0.85rem;
  padding: 10px;
}

.profile-placeholder svg {
  margin-bottom: 8px;
  color: #bdc3c7;
}

.profile-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.upload-btn,
.remove-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.upload-btn {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: white;
}

.upload-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(46, 204, 113, 0.3);
}

.remove-btn {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
}

.remove-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}

/* Checkbox group - Improved grid layout */
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
  margin-top: 15px;
  width: 100%;
}

/* Each checkbox + its expiry date - Better alignment */
.checkbox-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 15px 18px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  min-height: 60px;
  width: 100%;
}

/* Hover on checkbox card */
.checkbox-item:hover {
  background: #e3f2fd;
  border-color: #3498db;
  transform: translateY(-1px);
}

.checkbox-item input[type="checkbox"] {
  margin-right: 12px;
  margin-top: 2px;
  transform: scale(1.2);
  flex-shrink: 0;
}

.checkbox-item label {
  margin: 0;
  font-weight: 500;
  flex: 1;
  cursor: pointer;
  line-height: 1.4;
  padding-right: 10px;
}

/* The date input next to each checkbox - Better sizing */
.date-input {
  max-width: 50%;
  min-width: 140px;
  padding: 8px 12px;
  font-size: 0.9rem;
  display: none;
  flex-shrink: 0;
  margin-left: 10px;
}

/* Larger textarea */
textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

/* Submit button area */
.submit-section {
  text-align: center;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid #e0e6ed;
}

.submit-btn {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  padding: 18px 50px;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(52, 152, 219, 0.3);
  min-width: 200px;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(52, 152, 219, 0.4);
}

.submit-btn:active {
  transform: translateY(-1px);
}

/* Fade-in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* TABLET RESPONSIVENESS */
@media (max-width: 1024px) {
  .form-content {
    padding: 35px 25px;
  }
  
  .checkbox-group {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .checkbox-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    min-height: auto;
  }
  
  .checkbox-item input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 0;
  }
  
  .checkbox-item label {
    padding-right: 0;
    margin-bottom: 8px;
  }
  
  .date-input {
    width: 100%;
    min-width: 100%;
    margin-left: 0;
  }
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
  html, body {
    padding: 15px 8px;
  }
  
  .form-container {
    border-radius: 15px;
    margin-bottom: 20px;
  }
  
  .form-header {
    padding: 30px 20px;
  }
  
  .form-content {
    padding: 30px 20px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .checkbox-group {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .checkbox-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    min-height: auto;
  }
  
  .checkbox-item input[type="checkbox"] {
    margin-bottom: 8px;
  }
  
  .checkbox-item label {
    margin-bottom: 10px;
    width: 100%;
  }
  
  .date-input {
    width: 100%;
    min-width: 100%;
    margin-left: 0;
  }
  
  .profile-upload-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }
  
  .profile-preview {
    width: 100px;
    height: 100px;
  }
  
  .submit-btn {
    width: 100%;
    max-width: 300px;
    padding: 16px 30px;
  }
  
  .section {
    margin-bottom: 35px;
  }
}

/* SMALL MOBILE RESPONSIVENESS */
@media (max-width: 480px) {
  .form-content {
    padding: 25px 15px;
  }
  
  .form-header {
    padding: 25px 15px;
  }
  
  input[type="text"],
  input[type="date"],
  textarea,
  select {
    padding: 14px 16px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .checkbox-item {
    padding: 12px 15px;
  }
  
  .profile-preview {
    width: 90px;
    height: 90px;
  }
  
  .upload-btn,
  .remove-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    width: 100%;
    max-width: 200px;
  }
  
  .checkbox-group {
    gap: 10px;
  }
  
  .date-input {
    margin-top: 8px;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  .form-content {
    padding: 20px 12px;
  }
  
  .form-header {
    padding: 20px 12px;
  }
  
  .profile-preview {
    width: 80px;
    height: 80px;
  }
  
  .checkbox-item {
    padding: 10px 12px;
  }
  
  input[type="text"],
  input[type="date"],
  textarea,
  select {
    padding: 12px 14px;
  }
}


/* SHIFT REPORT FORM STYLES */


/* SHIFT REPORT FORM SPECIFIC STYLES - Add these to your existing stylesheet */
/* All rules are scoped to .shift-form-container to avoid conflicts */

/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Main container styling */
.shift-form-container {
  max-width: 900px;
  width: 100%;
  margin: 40px auto;
  padding: 30px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  font-family: 'Inter', sans-serif;
  color: #374151;
}

/* Header styling */
.shift-form-header {
  text-align: center;
  margin-bottom: 40px;
}

.shift-form-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
}

.shift-form-header p {
  color: #6b7280;
  font-size: 1rem;
  margin: 0;
}

/* Section styling */
.shift-form-section {
  margin-bottom: 40px;
}

.shift-form-section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e5e7eb;
  font-family: 'Inter', sans-serif;
}

/* Form groups and rows */
.shift-form-group {
  margin-bottom: 20px;
  width: 100%;
}

.shift-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 20px;
  width: 100%;
}

/* Labels */
.shift-form-container label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
}

/* Input fields styling */
.shift-form-container input[type="text"],
.shift-form-container input[type="date"],
.shift-form-container input[type="time"],
.shift-form-container textarea,
.shift-form-container select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  background: #ffffff;
  box-sizing: border-box;
}

/* Focus states */
.shift-form-container input[type="text"]:focus,
.shift-form-container input[type="date"]:focus,
.shift-form-container input[type="time"]:focus,
.shift-form-container textarea:focus,
.shift-form-container select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Textarea specific styling */
.shift-form-container textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

/* Radio button styling */
.shift-form-radio-row {
  display: flex;
  gap: 24px;
  margin-top: 8px;
}

.shift-form-radio-row label {
  display: flex;
  align-items: center;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 0;
}

.shift-form-radio-row input[type="radio"] {
  width: auto;
  margin-right: 8px;
  margin-bottom: 0;
  transform: scale(1.1);
}

/* Submit button styling */
.shift-form-container .submit-btn {
  background-color: #2563eb;
  color: #ffffff;
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out, transform 0.1s ease-in-out, box-shadow 0.2s ease-in-out;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
  width: 100%;
  margin-top: 40px;
}

.shift-form-container .submit-btn:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.4);
}

.shift-form-container .submit-btn:active {
  transform: translateY(0);
}

/* Success/Error message styling */
.shift-form-container .bg-green-100 {
  background-color: #dcfce7;
  color: #166534;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 32px;
  text-align: center;
  font-weight: 600;
  border: 1px solid #bbf7d0;
}

.shift-form-container .bg-red-100 {
  background-color: #fef2f2;
  color: #dc2626;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 32px;
  text-align: center;
  font-weight: 600;
  border: 1px solid #fecaca;
}

/* Responsive design */
@media (max-width: 768px) {
  .shift-form-container {
    margin: 20px auto;
    padding: 20px;
  }
  
  .shift-form-header h1 {
    font-size: 2rem;
  }
  
  .shift-form-section-title {
    font-size: 1.5rem;
  }
  
  .shift-form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .shift-form-radio-row {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .shift-form-container {
    padding: 16px;
  }
  
  .shift-form-header h1 {
    font-size: 1.75rem;
  }
  
  .shift-form-section-title {
    font-size: 1.25rem;
  }
  
  .shift-form-container input[type="text"],
  .shift-form-container input[type="date"],
  .shift-form-container input[type="time"],
  .shift-form-container textarea,
  .shift-form-container select {
    padding: 10px 12px;
  }
  
  .shift-form-container .submit-btn {
    padding: 12px 24px;
    font-size: 1rem;
  }
}