/*
Theme Name: HR Management System
Theme URI: https://e-matrixng.com
Author: Adeola Aziba
Author URI: https://e-matrixng.com
Description: Custom theme for HR Management System with Australian workforce compliance
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hr-management
Tags: hr, management, dashboard, employees
*/

/* Theme custom styles */
:root {
  --primary: #0F472A; /* Deep forest green */
  --secondary: #2D7551;
  --accent: #F59E0B;
  --background: #F9FAFB;
  --foreground: #111827;
  --muted: #F3F4F6;
  --muted-foreground: #6B7280;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
}

.alert.alert-danger {
    color: red;
}

/* Header & Navigation */
.site-header {
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.admin-bar .site-header {
  top: 32px;
}

.site-logo {
  max-height: 50px;
  width: auto;
}

.sidebar {
  background-color: white;
  border-right: 1px solid #e5e7eb;
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--foreground);
  border-radius: 0.375rem;
  transition: background-color 0.2s;
}

.sidebar-link:hover {
  background-color: var(--muted);
}

.sidebar-link.active {
  background-color: rgba(15, 71, 42, 0.1);
  color: var(--primary);
}

.sidebar-link svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.75rem;
  color: var(--primary);
}

/* Dashboard Cards */
.dashboard-card {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
}

.dashboard-card-header {
  margin-bottom: 1rem;
}

.dashboard-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: background-color 0.2s;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--secondary);
}

.btn-secondary {
  background-color: white;
  color: var(--foreground);
  border: 1px solid #d1d5db;
}

.btn-secondary:hover {
  background-color: var(--muted);
}

/* Forms */
.form-control {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--foreground);
  background-color: white;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  transition: border-color 0.15s ease-in-out;
}

.form-control:focus {
  border-color: var(--primary);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(15, 71, 42, 0.2);
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}

.table th {
  font-weight: 600;
  text-align: left;
}

.table tbody tr:hover {
  background-color: var(--muted);
}

/* Avatar */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  overflow: hidden;
  background-color: var(--muted);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-success {
  background-color: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.badge-warning {
  background-color: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.badge-danger {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.badge-info {
  background-color: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

/* Responsive */
@media (max-width: 768px) {
 /* Main content adjustments */
  .site-main {
    padding: 1rem;
  }
  
  /* Ensure content doesn't get cut off */
  .documents-container,
  .profile-container {
    padding: 20px 15px;
  }
  
  /* Grid layouts become single column */
  .documents-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .info-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Employee Status Badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-active {
    background-color: #d1fae5;
    color: #065f46;
}

.status-pre-start {
    background-color: #fef3c7;
    color: #92400e;
}

.status-pending {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-inactive {
    background-color: #f3f4f6;
    color: #6b7280;
}

.status-terminated {
    background-color: #fee2e2;
    color: #dc2626;
}

/* Employee row styling for different statuses */
.employee-row.status-pre-start {
    background-color: #fffbeb;
}

.employee-row.status-pending {
    background-color: #f0f9ff;
}

.employee-row.status-inactive {
    background-color: #f9fafb;
    opacity: 0.8;
}

.employee-row.status-terminated {
    background-color: #fef2f2;
    opacity: 0.7;
}

p.notices {
    color: red;
}

button#mobileMenuToggle {
    background: #0F472A;
    color: #fff;
    font-size: .9rem;
    font-weight: bold;
    margin-left: 70%;
    margin-top: 70px;
}
span#toggleBtnText {
    color: #fff;
    font-weight: bold;
    font-size: .9rem;
}
.h-10 {
    height: 6.5rem !important;
}
.back-btn {
    display: block;
    margin-bottom: 30px;
}
