/*
Theme Name: Employee Holiday Management
Theme URI: https://example.com/employee-holiday-management
Author: Codex
Description: A simple internal holiday request and approval system for employees, managers, and bosses.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: employee-holiday-management
*/

:root {
  --ink: #19202a;
  --muted: #647084;
  --paper: #ffffff;
  --mist: #f4f7fb;
  --line: #dce3ee;
  --blue: #2563eb;
  --teal: #0f9f8f;
  --green: #168a4a;
  --amber: #d97706;
  --red: #dc2626;
  --radius: 8px;
  --shadow: 0 18px 46px rgba(25, 32, 42, 0.1);
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--mist);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  margin: 0;
}

a {
  color: inherit;
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

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

.header-inner,
.site-main,
.footer-inner {
  margin: 0 auto;
  max-width: var(--content);
  padding-left: 24px;
  padding-right: 24px;
}

.header-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
  font-weight: 850;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.nav-menu,
.nav-menu ul {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  border-radius: var(--radius);
  color: var(--muted);
  display: block;
  font-size: 0.92rem;
  font-weight: 750;
  padding: 10px 12px;
  text-decoration: none;
}

.nav-menu a:hover,
.current-menu-item > a {
  background: #eef4ff;
  color: var(--blue);
}

.menu-toggle {
  background: #eef4ff;
  border: 1px solid #d8e6ff;
  border-radius: var(--radius);
  color: var(--blue);
  display: none;
  font-weight: 850;
  padding: 9px 12px;
}

.site-main {
  padding-bottom: 56px;
  padding-top: 34px;
}

.hms-hero {
  align-items: center;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.2), transparent 34%),
    linear-gradient(135deg, #13213a, #0d5d6a);
  border-radius: var(--radius);
  color: #fff;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 24px;
  overflow: hidden;
  padding: 34px;
}

.hms-hero h1,
.page-title {
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0;
}

.hms-hero p {
  color: rgba(255, 255, 255, 0.78);
  margin: 12px 0 0;
  max-width: 640px;
}

.hms-role-badge,
.hms-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 850;
  padding: 6px 10px;
  text-transform: uppercase;
}

.hms-role-badge {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hms-layout {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
}

.hms-panel,
.hms-login,
.page-content {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.hms-panel h2,
.hms-panel h3 {
  font-size: 1.25rem;
  line-height: 1.2;
  margin: 0 0 14px;
}

.hms-form {
  display: grid;
  gap: 14px;
}

.hms-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hms-field {
  display: grid;
  gap: 6px;
}

.hms-field label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

textarea {
  min-height: 110px;
}

button,
.button,
input[type="submit"] {
  background: var(--blue);
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 850;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  text-decoration: none;
}

button.secondary,
.button.secondary {
  background: #eef4ff;
  color: var(--blue);
}

button.danger {
  background: var(--red);
}

.hms-message {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  color: #166534;
  font-weight: 750;
  margin-bottom: 18px;
  padding: 12px 14px;
}

.hms-table-wrap {
  overflow-x: auto;
}

.hms-table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

.hms-table th,
.hms-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

.hms-table th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hms-status.pending {
  background: #fff7ed;
  color: var(--amber);
}

.hms-status.approved {
  background: #ecfdf5;
  color: var(--green);
}

.hms-status.declined {
  background: #fef2f2;
  color: var(--red);
}

.hms-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hms-small {
  color: var(--muted);
  font-size: 0.9rem;
}

.hms-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.hms-list li {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 12px;
}

.site-footer {
  color: var(--muted);
  padding: 28px 0 42px;
}

@media (max-width: 860px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-navigation {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
    left: 0;
    padding: 12px 24px 22px;
    position: absolute;
    right: 0;
    top: 72px;
  }

  .site-navigation.is-open {
    display: block;
  }

  .nav-menu,
  .nav-menu ul,
  .hms-layout,
  .hms-hero,
  .hms-grid {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .header-inner,
  .site-main,
  .footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hms-hero,
  .hms-panel,
  .hms-login,
  .page-content {
    padding: 18px;
  }
}
