/* Modern, Interactive Styling for Time Registration App */
:root {
  --primary-color: #4361ee;
  --secondary-color: #3a0ca3;
  --accent-color: #7209b7;
  --success-color: #4cc9f0;
  --danger-color: #f72585;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --transition-speed: 0.3s;
  --border-radius: 8px;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #3f4c56; /* Changed from gradient to solid color matching the image */
  margin: 0;
  padding: 20px;
  min-height: 100vh;
}

/* Single header styling with updated color and transition */
h1 {
  color: var(--dark-color);
  text-align: center;
  margin: 20px 0 40px 0;
  font-weight: 700;
  background: #3f4c56;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 2.8rem;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: relative;
  padding-bottom: 15px;
  transition: all 0.5s ease;
}

/* Hide tab headers if they exist */
.dash-tabs-container .tab-container {
  display: none !important;
}

/* Container styling */
.dash-tabs-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

/* Tab content */
.dash-tabs-content {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: var(--box-shadow);
  animation: fadeIn 0.5s ease-in-out;
}

/* Form elements */
.dash-dropdown .Select-control {
  border-radius: var(--border-radius);
  border: 2px solid #e0e0e0;
  transition: all var(--transition-speed);
  padding: 8px 12px;
  box-shadow: none;
}

.dash-dropdown .Select-control:hover {
  border-color: #3f4c56;
}

.dash-dropdown .is-focused:not(.is-open) > .Select-control {
  border-color: #3f4c56;
  box-shadow: 0 0 0 3px rgba(63, 76, 86, 0.25);
}

.VirtualizedSelectOption {
  transition: background-color var(--transition-speed);
}

.VirtualizedSelectFocusedOption {
  background-color: rgba(67, 97, 238, 0.1) !important;
  color: var(--primary-color) !important;
}

/* Input fields with floating effect */
input[type="number"] {
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: var(--border-radius);
  transition: all var(--transition-speed);
  font-size: 16px;
  width: 100%;
  background-color: #f8f9fa;
}

input[type="number"]:focus {
  border-color: #3f4c56;
  outline: none;
  box-shadow: 0 0 0 3px rgba(63, 76, 86, 0.25);
  background-color: white;
}

/* Labels with modern styling */
label {
  font-weight: 600;
  color: #3f4c56;
  margin-bottom: 10px;
  display: block;
  transition: all var(--transition-speed);
  font-size: 0.95rem;
}

/* Buttons with hover effects */
button {
  padding: 12px 20px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-speed);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

button:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.5s;
  z-index: -1;
}

button:hover:before {
  left: 0;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.1);
}

button:active {
  transform: translateY(1px);
}

/* Add project button - updated color */
#add-project-btn {
  background: #3f4c56 !important;
  color: white;
  box-shadow: 0 4px 15px rgba(63, 76, 86, 0.3);
}

/* Submit button - updated color */
#submit-btn {
  background: #3f4c56 !important;
  color: white;
  box-shadow: 0 4px 15px rgba(63, 76, 86, 0.3);
}

/* Reset form button */
#reset-form-btn {
  background: #3f4c56 !important;
  color: white;
  box-shadow: 0 4px 15px rgba(63, 76, 86, 0.3);
}

/* Remove button (X) - updated color and positioning */
button[id*="remove-project-btn"] {
  background: #3f4c56 !important;
  color: white;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  padding: 0;
  margin-left: 15px;
  box-shadow: 0 4px 15px rgba(63, 76, 86, 0.3);
  position: absolute;
  top: 10px;
  right: 10px;
}

/* Add position relative to the container */
#proyectos-container, #additional-projects > div {
  background-color: white;
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 20px;
  transition: all var(--transition-speed);
  border-left: 4px solid transparent;
  position: relative; /* Added to make absolute positioning work */
  width: 92%;
}

#proyectos-container:hover, #additional-projects > div:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-left: 4px solid #3f4c56;
}

/* Confirmation dialog */
.dash-confirm-dialog {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  padding: 30px;
  border: none;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive design */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }
  
  h1 {
    font-size: 2rem;
    margin: 15px 0 30px 0;
  }
  
  #proyectos-container {
    padding: 15px;
  }
  
  button {
    padding: 10px 15px;
    font-size: 0.85rem;
  }
}

/* Success box styling for vertical and horizontal centering */
#success-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#success-box > div {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 90%;
  animation: fadeIn 0.5s ease-in-out;
}

/* Message container styling - positioned between buttons */
#validation-message {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 15px 20px;
  margin: 0 auto;
  box-shadow: var(--box-shadow);
  text-align: center;
  font-weight: 600;
  transition: all var(--transition-speed);
  max-width: 100%;
  position: relative;
  animation: fadeIn 0.5s ease-in-out;
  display: none; /* Hide by default */
}

#validation-message:not(:empty) {
  display: block; /* Show when not empty */
}

.success-message {
  color: #3f4c56;
  border-left-color: #3f4c56;
}

.error-message {
  color: #3f4c56; /* Updated to use the same color */
  border-left-color: #3f4c56; /* Updated to use the same color */
}

/* Button container to align buttons and message */
.button-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
  flex-wrap: wrap;
}

.button-container button {
  margin: 10px 0;
}

/* Logo styling */
.logo {
  position: absolute;
  top: 20px;
  left: 10px;
  width: 300px; /* Adjust size as needed */
  height: auto;
  z-index: 1000; /* Ensure it appears above other elements */
  border-radius: 7px;
}

/* Interactive paragraph styling */
.parrafo {
  color: #3f4c56;
  font-size: 16px;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
