/* Light HR Board Theme - Inspired by ProfitPulse with graphite and orange accents */
:root {
    /* Light theme colors */
    --background: #ffffff;
    --foreground: #1f2937;
    --card: #f9fafb;
    --card-foreground: #1f2937;
    --popover: #ffffff;
    --popover-foreground: #1f2937;
    --primary: #ea580c;
    --primary-foreground: #ffffff;
    --secondary: #f3f4f6;
    --secondary-foreground: #374151;
    --muted: #f3f4f6;
    --muted-foreground: #6b7280;
    --accent: #f3f4f6;
    --accent-foreground: #374151;
    --destructive: #dc2626;
    --destructive-foreground: #ffffff;
    --border: #e5e7eb;
    --input: #ffffff;
    --ring: #ea580c;
    
    /* Graphite colors */
    --graphite-50: #f9fafb;
    --graphite-100: #f3f4f6;
    --graphite-200: #e5e7eb;
    --graphite-300: #d1d5db;
    --graphite-400: #9ca3af;
    --graphite-500: #6b7280;
    --graphite-600: #4b5563;
    --graphite-700: #374151;
    --graphite-800: #1f2937;
    --graphite-900: #111827;
    
    /* Orange accent colors */
    --orange-50: #fff7ed;
    --orange-100: #ffedd5;
    --orange-200: #fed7aa;
    --orange-300: #fdba74;
    --orange-400: #fb923c;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --orange-700: #c2410c;
    --orange-800: #9a3412;
    --orange-900: #7c2d12;
    
    /* HR specific colors */
    --hr-orange: #ea580c;
    --hr-orange-foreground: #ffffff;
    --hr-blue: #3b82f6;
    --hr-green: #10b981;
    --hr-purple: #8b5cf6;
    --hr-red: #ef4444;
    --hr-yellow: #f59e0b;
    
    /* Role colors */
    --role-admin: #8b5cf6;
    --role-hr: #3b82f6;
    --role-lead: #10b981;
    --role-employee: #6b7280;
    
    /* Status colors */
    --status-active: #10b981;
    --status-inactive: #6b7280;
    --status-pending: #f59e0b;
    --status-urgent: #ef4444;
    
    /* Radius */
    --radius: 0.5rem;
  }
  
  /* Base styles */
  * {
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    margin: 0;
    padding: 0;
  }
  
  /* Container */
  .container {
    max-width: 1600px;
    margin: 0 auto;
    background-color: var(--card);
    border-radius: var(--radius);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    min-height: 100vh;
    border: 1px solid var(--border);
  }
  
  /* Header */
  .header {
    background-color: var(--background);
    color: var(--foreground);
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
    position: relative;
  }
  
  .header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--graphite-800) 0%, var(--hr-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .header p {
    color: var(--muted-foreground);
    font-size: 1.125rem;
  }
  
  /* User Navigation */
  .user-nav {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--foreground);
  }
  
  .user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  
  .user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--graphite-600) 0%, var(--hr-orange) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    border: 2px solid var(--border);
  }
  
  .user-info > div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .user-info > div > span:first-child {
    font-weight: 600;
    color: var(--foreground);
  }
  
  .logout-btn {
    background-color: var(--secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--foreground);
    transition: all 0.2s ease;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
  }
  
  .logout-btn:hover {
    background-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--hr-orange);
  }
  
  .logout-btn span {
    display: none;
  }
  
  @media (min-width: 768px) {
    .logout-btn span {
      display: inline;
    }
  }
  
  .user-role {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  .role-admin { background-color: var(--role-admin); color: white; }
  .role-hr { background-color: var(--role-hr); color: white; }
  .role-lead { background-color: var(--role-lead); color: white; }
  .role-employee { background-color: var(--role-employee); color: white; }
  
  /* Tabs */
  .tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    background-color: var(--card);
  }
  
  .tab {
    flex: 1;
    padding: 1.25rem;
    text-align: center;
    background-color: var(--card);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--muted-foreground);
    border-bottom: 2px solid transparent;
    transition: all 0.25s ease;
    position: relative;
  }
  
  .tab:hover {
    background-color: var(--muted);
    color: var(--foreground);
  }
  
  .tab.active {
    color: var(--hr-orange);
    border-bottom-color: var(--hr-orange);
    background-color: var(--card);
  }
  
  .tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--hr-orange), var(--orange-400));
  }
  
  .tabs-container {
    padding: 2rem;
  }
  
  .tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
  }
  
  .tab-content.active {
    display: block;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* Forms */
  .form-container {
    background-color: var(--card);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
  }
  
  form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
  }
  
  .form-group {
    flex: 1;
    min-width: 200px;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--foreground);
    font-size: 0.875rem;
  }
  
  input, textarea, select {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    color: var(--foreground);
    transition: all 0.2s ease;
  }
  
  input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--hr-orange);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
  }
  
  textarea {
    resize: vertical;
    min-height: 100px;
  }
  
  /* Buttons */
  .btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--hr-orange) 0%, var(--orange-500) 100%);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
  }
  
  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(234, 88, 12, 0.3);
  }
  
  .btn:active {
    transform: translateY(0);
  }
  
  .btn-secondary {
    background: linear-gradient(135deg, var(--graphite-600) 0%, var(--graphite-700) 100%);
    color: white;
  }
  
  .btn-danger {
    background: linear-gradient(135deg, var(--destructive) 0%, #dc2626 100%);
  }
  
  .btn-success {
    background: linear-gradient(135deg, var(--hr-green) 0%, #059669 100%);
  }
  
  /* Board */
  .board {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .board-col {
    flex: 1;
    background-color: var(--muted);
    padding: 1.5rem;
    border-radius: var(--radius);
    min-height: 400px;
    border: 1px solid var(--border);
  }
  
  .board-col h3 {
    color: var(--foreground);
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .board-col h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, var(--hr-orange), var(--orange-400));
    border-radius: 2px;
  }
  
  /* Cards */
  .card {
    background-color: var(--card);
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
  }
  
  .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--hr-orange);
  }
  
  .card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--hr-orange), var(--orange-400));
  }
  
  .card b {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--foreground);
    font-weight: 600;
  }
  
  .card p {
    color: var(--muted-foreground);
    margin: 0.25rem 0;
    font-size: 0.875rem;
  }
  
  /* Tables */
  .ctable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background-color: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
  }
  
  .ctable th,
  .ctable td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    word-wrap: break-word;
  }
  
  .ctable th {
    background-color: var(--muted);
    font-weight: 600;
    color: var(--foreground);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  .ctable tr:hover {
    background-color: var(--muted);
  }
  
  .ctable tr:last-child td {
    border-bottom: none;
  }
  
  /* Status badges */
  .status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  .status-active { background-color: var(--status-active); color: white; }
  .status-inactive { background-color: var(--status-inactive); color: white; }
  .status-pending { background-color: var(--status-pending); color: white; }
  .status-urgent { background-color: var(--status-urgent); color: white; }
  
  /* Loading state */
  .loading {
    opacity: 0.6;
    pointer-events: none;
  }
  
  .spinner {
    border: 2px solid var(--border);
    border-top: 2px solid var(--hr-orange);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .container {
      border-radius: 0;
      min-height: 100vh;
    }
    
    .header {
      padding: 1rem;
    }
    
    .header h1 {
      font-size: 1.875rem;
    }
    
    .user-nav {
      position: static;
      justify-content: center;
      margin-top: 1rem;
    }
    
    .tabs {
      flex-direction: column;
    }
    
    .board {
      flex-direction: column;
    }
    
    .tabs-container {
      padding: 1rem;
    }
    
    form {
      flex-direction: column;
    }
    
    .form-group {
      min-width: 100%;
    }
  }
  
  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }
  
  ::-webkit-scrollbar-track {
    background: var(--muted);
  }
  
  ::-webkit-scrollbar-thumb {
    background: var(--graphite-400);
    border-radius: 4px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: var(--hr-orange);
  }
  