/* Jane's Jungle Corporate Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --jungle-primary: #ff6b35;  /* Brand orange */
  --jungle-secondary: #f7931e; /* Brand yellow */
  --jungle-green: #2d8f3f; /* Brand green */
  --jungle-dark-green: #1e5a2b;
  --jungle-light-green: #e8f5e8;
  --jungle-dark: #1a202c; /* Professional dark */
  --jungle-gray: #4a5568; /* Professional gray */
  --jungle-light-gray: #f7fafc;
  --jungle-gradient: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  --corporate-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.jungle-title {
  font-family: 'Fredoka', cursive;
  font-weight: 700;
  background: var(--jungle-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.corporate-login-bg {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
}

.corporate-login-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e2e8f0' fill-opacity='0.3'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.corporate-card {
  background: white;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05), 0 4px 10px rgba(0,0,0,0.05);
  border-radius: 12px;
}

.corporate-input {
  border: 1px solid #d1d5db;
  transition: all 0.3s ease;
  background: #f9fafb;
  text-align: left;
  pointer-events: auto;
  cursor: text;
  position: relative;
  z-index: 10;
}

.corporate-input:focus {
  border-color: var(--jungle-primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
  outline: none;
  background: white;
  text-align: left;
}

.corporate-btn {
  background: linear-gradient(135deg, #2d8f3f 0%, #1e5a2b 100%);
  border: none;
  transition: all 0.3s ease;
  font-weight: 600;
  color: white !important;
  padding: 10px !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  position: relative;
  z-index: 100;
}

.corporate-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(45, 143, 63, 0.25);
  filter: brightness(1.1);
  color: white !important;
  cursor: pointer;
}

.corporate-logo {
  max-height: 60px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.corporate-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--jungle-dark);
  letter-spacing: -0.025em;
}

.corporate-subtitle {
  color: var(--jungle-gray);
  font-weight: 500;
}

.brand-accent {
  background: var(--jungle-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* Ensure login page is properly centered */
.corporate-login-bg {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

/* Fix input field interactions */
.corporate-input,
input[type="text"],
input[type="password"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
  pointer-events: auto;
  cursor: text;
}

/* Center the form content while keeping inputs left-aligned */
.corporate-card {
  text-align: center;
}

.corporate-card form {
  text-align: left;
}

.corporate-card .text-center {
  text-align: center;
}

/* Custom button styles */
.btn-jungle {
  background: var(--jungle-gradient);
  border-color: var(--jungle-primary);
  color: white;
}

.btn-jungle:hover {
  background: linear-gradient(135deg, #e55a2b 0%, #e0831a 50%, #256f35 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Active filter button */
.filter-btn.active {
  background: var(--jungle-gradient) !important;
  color: white !important;
  border-color: var(--jungle-primary) !important;
}

/* Admin filter buttons */
.admin-filter-btn.active {
  background: var(--jungle-gradient) !important;
  color: white !important;
  border-color: var(--jungle-primary) !important;
}

/* Tab styles */
.tab-btn.active {
  border-color: var(--jungle-primary) !important;
  color: var(--jungle-primary) !important;
}

/* Stats cards hover effect */
.bg-white.shadow:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
  transition: all 0.2s ease-in-out;
}

/* Loading spinner */
.spinner {
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--jungle-green);
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-right: 8px;
}

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

/* Table hover effect */
tbody tr:hover {
  background-color: #f9fafb;
}

/* Modal backdrop */
.modal-backdrop {
  backdrop-filter: blur(4px);
}

/* Commission badge */
.commission-badge {
  background: linear-gradient(135deg, var(--jungle-green), var(--jungle-dark-green));
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Logo styling */
.logo {
  filter: brightness(0) saturate(100%) invert(35%) sepia(94%) saturate(1458%) hue-rotate(128deg) brightness(95%) contrast(94%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-title {
    display: none;
  }
  
  .mobile-hidden {
    display: none;
  }
}