* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

.header {
  background-color: #1a1757;
  color: white;
  padding: 20px 0;
}

.header-content {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  padding: 0 20px;
  position: relative;
}

.header-title {
  color: white;
  text-decoration: none;
  font-size: 24px;
  font-weight: 600;
  transition: color 0.2s;
  margin-bottom: 10px;
}

.header-title:hover {
  color: rgba(255, 255, 255, 0.8);
}


.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  position: absolute;
  right: 20px;
}

.welcome-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  white-space: nowrap;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-outline-light {
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
}

.btn-outline-light:hover {
  color: #1a1757;
  background-color: white;
  border-color: white;
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
    justify-content: center;
  }
  
  .header-title {
    font-size: 20px;
  }
  
  .user-info {
    position: static;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

.nav-menu {
  background-color: #2c2470;
  padding: 0;
  display: flex;
  justify-content: flex-start;
}

.nav-item {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 15px 25px;
  display: block;
  transition: all 0.2s;
  border-bottom: 3px solid transparent;
}

.nav-item:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
  color: white;
  border-bottom-color: #4338ca;
  background-color: rgba(255, 255, 255, 0.05);
}

/* Dropdown menu styles */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown-arrow {
  transition: transform 0.2s;
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #2c2470;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  border-top: 3px solid #4338ca;
}

.nav-dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-item {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 15px 25px;
  display: block;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.dropdown-item:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
  border-left-color: #4338ca;
}

.dropdown-item.active {
  color: white;
  background-color: rgba(255, 255, 255, 0.05);
  border-left-color: #4338ca;
}

.container-simple {
  max-width: 1400px;
  margin: 40px auto;
  padding: 30px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.container-simple h2 {
  margin-bottom: 30px;
  font-size: 20px;
  text-align: center;
}

/* Form section - compact container for forms */
.form-section {
  max-width: 600px;
  margin: 40px auto 20px auto;
  padding: 30px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-section h2 {
  margin-bottom: 15px;
  font-size: 20px;
  text-align: center;
  color: #1a1757;
}

.form-section p {
  margin-bottom: 25px;
  text-align: center;
  color: #666;
}

/* Results section - separate container for displaying results */
.results-section {
  max-width: 1400px;
  margin: 20px auto 40px auto;
  padding: 30px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Compact results section for simple results (like pick confirmation) */
.results-section.compact {
  max-width: 600px;
}

/* Production warning styles */
.production-warning {
  margin-bottom: 20px;
}

.alert {
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 6px;
}

.alert-warning {
  color: #856404;
  background-color: #fff3cd;
  border-color: #ffeaa7;
}

.alert strong {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
}

.alert p {
  margin-bottom: 8px;
  line-height: 1.5;
}

.alert p:last-child {
  margin-bottom: 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-group > label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.form-check:last-child {
  margin-bottom: 0;
}

.form-check .form-check-label {
  display: inline;
  margin-bottom: 0;
  font-weight: normal;
}

.form-check-input {
  flex-shrink: 0;
  margin: 0;
  width: auto;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 2px solid #e1e5e9;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: #1a1757;
}

.form-text {
  font-size: 12px;
  color: #6c757d;
  margin-top: 5px;
  display: block;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  width: 100%;
}

.btn-primary {
  background-color: #1a1757;
  color: white;
}

.btn-primary:hover {
  background-color: #141244;
}

.result-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 6px;
  font-weight: 500;
}

.result-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.result-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.text-danger {
  color: #dc3545;
  font-size: 14px;
  margin-top: 5px;
  display: block;
}

.validation-message {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  padding: 8px 12px;
  margin-top: 8px;
  font-weight: 500;
  font-size: 14px;
}

.custom-validation-feedback {
  color: #dc3545;
  font-size: 13px;
  margin-top: 3px;
  display: block;
  font-style: italic;
}

.form-control.invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.valid {
  border-color: #28a745;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.placeholder-content {
  text-align: center;
  padding: 40px 20px;
}

.placeholder-content h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #1a1757;
}

.placeholder-content p {
  font-size: 16px;
  color: #6c757d;
  margin-bottom: 15px;
  line-height: 1.6;
}

.checkpointtable, .checkpointtable th, .checkpointtable td {
    border: 1px solid black;
    padding: 2px 5px;
}

.checkpointtable th {
    text-align: left;
}
}

input::placeholder {
    font-style: italic;
}

input::-webkit-input-placeholder {
    font-style: italic;
}

input:-moz-placeholder {
    font-style: italic;
}

input::-moz-placeholder {
    font-style: italic;
}

input:-ms-input-placeholder {
    font-style: italic;
}

.welcome-section {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
}

    .welcome-section h1 {
        font-size: 2.5rem;
        color: #1a1757;
        margin-bottom: 16px;
    }

.lead {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 0;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.tool-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid #e5e7eb;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .tool-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }

.tool-icon {
    color: #1a1757;
    margin-bottom: 20px;
}

.tool-card h3 {
    color: #1a1757;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.tool-card p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
    flex-grow: 1;
}

.tool-card .btn {
    width: 130px !important;
    padding: 12px 25px !important;
    margin: 0 auto !important;
    display: block !important;
}

.info-section {
    margin-top: 50px;
}

    .info-section h2 {
        text-align: center;
        color: #1a1757;
        margin-bottom: 30px;
    }

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.info-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    border-left: 4px solid #1a1757;
}

    .info-card h4 {
        color: #1a1757;
        margin-bottom: 10px;
    }

    .info-card p {
        color: #666;
        margin-bottom: 0;
        line-height: 1.6;
    }

/* Login Page Styles */
.login-container {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    overflow: hidden;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.login-header {
    text-align: center;
    padding: 50px 40px 30px;
    background: linear-gradient(135deg, #1a1757 0%, #2c2470 100%);
    color: white;
}

.login-icon {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.login-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.login-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin: 0;
    font-weight: 300;
}

.login-content {
    padding: 40px;
}

.features-preview {
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1rem;
    color: #555;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    width: 35px;
    text-align: center;
}

.login-actions {
    text-align: center;
}

.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #1a1757 0%, #2c2470 100%);
    color: white;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
    margin-bottom: 20px;
}

.btn-login:hover {
    background: linear-gradient(135deg, #141244 0%, #1e1a5c 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(26, 23, 87, 0.3);
}

.btn-login svg {
    transition: transform 0.3s ease;
}

.btn-login:hover svg {
    transform: translateX(3px);
}

.login-note {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* Responsive adjustments for login page */
@media (max-width: 768px) {
    .login-container {
        padding: 10px;
    }
    
    .login-header {
        padding: 30px 20px 20px;
    }
    
    .login-header h1 {
        font-size: 1.6rem;
    }
    
    .login-subtitle {
        font-size: 1rem;
    }
    
    .login-content {
        padding: 30px 20px;
    }
    
    .btn-login {
        font-size: 1rem;
        padding: 14px 24px;
    }
}

/* Sign Out Page Styles */
.signout-container {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.signout-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    overflow: hidden;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.signout-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.signout-header {
    text-align: center;
    padding: 50px 40px 30px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.signout-icon {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.signout-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.signout-content {
    padding: 40px;
}

.signout-message {
    margin-bottom: 30px;
    text-align: center;
}

.signout-message p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.6;
}

.session-text {
    color: #666 !important;
    font-size: 0.9rem !important;
    font-style: italic;
}

.signout-actions {
    text-align: center;
}

.btn-signin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #1a1757 0%, #2c2470 100%);
    color: white;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 250px;
}

.btn-signin:hover {
    background: linear-gradient(135deg, #141244 0%, #1e1a5c 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(26, 23, 87, 0.3);
}

.btn-signin svg {
    transition: transform 0.3s ease;
}

.btn-signin:hover svg {
    transform: translateX(3px);
}

/* Responsive adjustments for sign out page */
@media (max-width: 768px) {
    .signout-container {
        padding: 10px;
    }
    
    .signout-header {
        padding: 30px 20px 20px;
    }
    
    .signout-header h1 {
        font-size: 1.6rem;
    }
    
    .signout-content {
        padding: 30px 20px;
    }
    
    .btn-signin {
        font-size: 1rem;
        padding: 14px 24px;
    }
}