/*
 * Modern Look for WorkYield Dashboard
 */

/* Import the 'Inter' font for a clean, modern typeface */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Define the color palette and other theme variables */
:root {
  --bg-primary: #111827;      /* A deep, dark blue-gray */
  --bg-secondary: #1f2937;    /* A slightly lighter container background */
  --accent: #f97316;          /* The primary orange accent color */
  --text-primary: #f3f4f6;    /* Off-white for main text */
  --text-secondary: #9ca3af;   /* A dimmer gray for labels and secondary text */
  --border-color: #374151;    /* Subtle border color */
  --danger: #ef4444;          /* Red for destructive actions */
  --radius: 0.5rem;           /* Standard border radius */
}

/* General body styles */
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Heading styles */
h1 {
  font-weight: 700;
  letter-spacing: -0.025em;
}
h2 {
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem !important;
}

/* Input field styles */
input[type="number"],
input[type="text"] {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

/* Table design */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background-color: var(--bg-secondary);
  border-radius: var(--radius);
  overflow: hidden;
}

th, td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

tbody tr:last-child td {
  border-bottom: none;
}

thead {
  background-color: rgba(0, 0, 0, 0.15);
}

th {
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Tab Styles */
.tab-btn {
    padding: 0.5rem 1rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s ease-in-out;
}

.tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* General Button Styles */
.btn {
    border-radius: var(--radius);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.2s ease, filter 0.2s ease;
}
.btn:hover:not(:disabled) {
    filter: brightness(1.1);
    transform: translateY(-2px);
}
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--border-color) !important;
    transform: none;
}

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

.bg-red-600 {
    background-color: var(--danger) !important;
}

/* Footer Styles */
.footer {
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.footer-link {
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.footer-link:hover {
    color: var(--accent);
}

/* Skeleton Loader Styles */
.skeleton {
    background-color: var(--border-color);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}

.skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.1) 20%,
        rgba(255, 255, 255, 0.2) 60%,
        rgba(255, 255, 255, 0)
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}
.text-accent {
    color: var(--accent);
}
