@font-face {
  font-family: 'Heading';
  src: url('/static/heading-font.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #fd0d13;
  --primary-hover: #e00b10;
  --success: #22c55e;
  --danger: #fd0d13;
  --warning: #f59e0b;
  --bg: #0a0a0a;
  --bg-lighter: #141414;
  --card-bg: #1a1a1a;
  --text: #e8e4dc;
  --text-muted: #888888;
  --border: #2a2a2a;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

h1 {
  font-family: 'Heading', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: normal;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

/* Navbar */
.navbar {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-brand img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--primary);
  opacity: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  transition: all 0.2s;
  color: var(--text-muted);
}

.nav-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  transition: fill 0.2s;
}

.nav-icon:hover {
  background: rgba(253, 13, 19, 0.1);
  color: var(--primary);
}

.nav-icon.active {
  background: var(--primary);
  color: white;
}

.nav-icon[data-tooltip] {
  position: relative;
}

.nav-icon[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px) scale(0.8);
  background: linear-gradient(135deg, var(--card-bg) 0%, #252525 100%);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: none;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(253, 13, 19, 0.1);
  z-index: 1000;
}

.nav-icon[data-tooltip]::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(2px);
  border: 6px solid transparent;
  border-bottom-color: var(--border);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 1001;
}

.nav-icon[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(12px) scale(1);
}

.nav-icon[data-tooltip]:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(6px);
}

.user-menu {
  position: relative;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s;
  object-fit: cover;
}

.user-avatar:hover {
  border-color: var(--primary);
}

.user-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-lighter);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.user-icon:hover {
  border-color: var(--primary);
}

.user-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--text-muted);
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  min-width: 200px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 1000;
}

.user-dropdown.show {
  display: block;
}

.user-dropdown-name {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.user-dropdown-email {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  word-break: break-all;
}

.user-dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
  margin-bottom: 8px;
}

.user-dropdown-item:hover {
  background: var(--bg-lighter);
  border-color: var(--primary);
  color: var(--primary);
}

.user-dropdown-logout {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
}

.user-dropdown-logout:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: var(--text);
}

.settings-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.settings-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--text-muted);
  transition: fill 0.2s;
}

.settings-icon:hover svg {
  fill: var(--primary);
}

/* Container */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 60px 0;
}

.hero h1 {
  font-size: 56px;
  margin-bottom: 16px;
  color: var(--text);
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}

.btn:hover {
  background: var(--bg-lighter);
  opacity: 1;
}

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

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

.btn-danger {
  background: transparent;
  color: var(--danger);
  border-color: var(--danger);
}

.btn-danger:hover {
  background: var(--danger);
  color: var(--text);
}

.btn-small {
  padding: 6px 12px;
  font-size: 13px;
}

/* Time off list */
.upcoming-section {
  margin-top: 40px;
}

.upcoming-section h2 {
  font-size: 28px;
  margin-bottom: 24px;
}

.time-off-list {
  display: grid;
  gap: 16px;
}

.time-off-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.time-off-avatars {
  display: flex;
  flex-shrink: 0;
}

.time-off-avatars .time-off-avatar,
.time-off-avatars .time-off-avatar-placeholder {
  margin-right: -12px;
  border: 2px solid var(--card-bg);
}

.time-off-avatars .time-off-avatar:last-child,
.time-off-avatars .time-off-avatar-placeholder:last-child {
  margin-right: 0;
}

.time-off-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.time-off-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.time-off-avatar-placeholder svg {
  width: 28px;
  height: 28px;
  fill: var(--text-muted);
}

.time-off-info {
  flex: 1;
  min-width: 0;
}

.time-off-name {
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
}

.time-off-dates {
  color: var(--text-muted);
  font-size: 14px;
}

.time-off-days {
  color: var(--primary);
  font-weight: 500;
}

.upcoming-month {
  margin-bottom: 32px;
}

.upcoming-month-header {
  font-size: 22px;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.time-off-reason {
  color: var(--text-muted);
  font-size: 14px;
  font-style: italic;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

/* Forms */
.form-container {
  max-width: 500px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}

.form-container h1 {
  font-size: 32px;
  margin-bottom: 8px;
}

.form-container > p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(253, 13, 19, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-group small {
  font-size: 12px;
  color: var(--text-muted);
}

.form-group small a {
  color: var(--primary);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  margin-top: 8px;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.radio-group {
  display: flex;
  gap: 24px;
  margin-top: 8px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  padding: 8px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.radio-label:hover {
  border-color: var(--primary);
}

.radio-label:has(input:checked) {
  border-color: var(--primary);
  background: rgba(253, 13, 19, 0.1);
}

.radio-label input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.radio-text {
  font-size: 15px;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

/* Alerts */
.alert {
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 14px;
}

.alert-success {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.alert-error {
  background: rgba(253, 13, 19, 0.15);
  color: #fd0d13;
  border: 1px solid rgba(253, 13, 19, 0.3);
}

/* Table */
.time-off-table {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.time-off-table table {
  width: 100%;
  border-collapse: collapse;
}

.time-off-table th,
.time-off-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.time-off-table th {
  background: var(--bg-lighter);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.time-off-table tr:last-child td {
  border-bottom: none;
}

.time-off-table .actions {
  display: flex;
  gap: 8px;
}

.actions-bar {
  margin-bottom: 24px;
}

/* Year grouping */
.user-group {
  margin-bottom: 40px;
}

.user-header {
  font-size: 24px;
  padding: 16px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.2s;
  margin-bottom: 0;
}

.user-header:hover {
  background: var(--bg-lighter);
}

.user-header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.user-content {
  padding-left: 24px;
  margin-top: 16px;
}

.user-group.collapsed .user-content {
  display: none;
}

.user-group.collapsed .year-toggle {
  transform: rotate(-90deg);
}

.year-group {
  margin-bottom: 32px;
}

.year-header {
  font-size: 28px;
  padding: 16px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.2s;
  margin-bottom: 0;
}

.year-header:hover {
  background: var(--bg-lighter);
}

.year-toggle {
  font-size: 14px;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.year-group.collapsed .year-toggle {
  transform: rotate(-90deg);
}

.year-total {
  margin-left: auto;
  font-size: 16px;
  color: var(--primary);
  font-weight: 500;
}

.year-content {
  padding-left: 24px;
  margin-top: 16px;
}

.year-group.collapsed .year-content {
  display: none;
}

.month-group {
  margin-bottom: 24px;
}

.month-header {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

.month-total {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: normal;
}

/* Status badges */
.status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.status-approved {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.status-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.status-cancelled {
  background: rgba(253, 13, 19, 0.15);
  color: #fd0d13;
}

/* Time off type badges */
.time-off-type-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.time-off-type-badge.vacation {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.time-off-type-badge.sick {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

/* Type icons in names */
.type-icon {
  font-size: 0.9em;
}

/* Admin/Settings */
.settings-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.settings-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.settings-section h2 {
  font-size: 24px;
  margin-bottom: 4px;
}

.section-desc {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 14px;
}

.setup-instructions {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
}

.setup-instructions h3 {
  font-size: 18px;
  margin: 20px 0 12px;
  color: var(--text);
}

.tool-group {
  margin-bottom: 20px;
}

.tool-group:last-child {
  margin-bottom: 0;
}

.tool-group strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tool-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  margin-bottom: 16px;
  font-size: 20px;
}

.admin-header:first-of-type {
  margin-top: 0;
}

.admin-header svg {
  width: 20px;
  height: 20px;
  min-width: 20px;
  max-width: 20px;
  color: var(--primary);
}

.setup-instructions h3:first-child {
  margin-top: 0;
}

.setup-instructions ol {
  padding-left: 24px;
}

.setup-instructions ul {
  padding-left: 24px;
  margin: 8px 0;
}

.setup-instructions a {
  color: var(--primary);
}

.setup-instructions strong {
  color: var(--text);
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    padding: 0 16px;
    height: auto;
    flex-direction: column;
    padding: 16px;
    gap: 12px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .container {
    padding: 24px 16px;
  }

  .form-container {
    padding: 24px;
  }

  .time-off-table {
    overflow-x: auto;
  }

  .time-off-table table {
    min-width: 600px;
  }
}

/* Person cell in all-time-off table */
.person-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.person-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.person-avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  flex-shrink: 0;
}

.person-name {
  font-weight: 500;
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.fade-in {
    animation: fadeSlideIn 0.6s ease-out forwards;
}

/* Home Layout */
.home-header {
    text-align: center;
    padding: 40px 0 20px;
}

.home-header h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.home-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.today-holiday-flag {
    height: 12px;
    width: 16px;
    vertical-align: middle;
    margin-left: 2px;
}

.home-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    max-width: 1000px;
    margin: 0 auto;
}

.home-left {
    flex-shrink: 0;
}

.home-right {
    flex: 1;
    min-width: 0;
}

@media (max-width: 768px) {
    .home-layout {
        flex-direction: column;
        align-items: center;
    }
    .home-right {
        width: 100%;
    }
}

/* Mini Calendar */
.mini-calendar {
    background: var(--bg-lighter);
    border-radius: 16px;
    padding: 20px;
    user-select: none;
    -webkit-user-select: none;
}

.mini-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.mini-calendar-header-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 4px;
    height: 42px;
}

.mini-calendar-header-wrapper span {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mini-calendar-arrow {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 8px;
    transition: all 0.2s;
    line-height: 1;
}

.mini-calendar-arrow:hover {
    background: var(--card-bg);
    color: var(--primary);
}

.mini-calendar-today-btn {
    padding: 3px 10px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    display: none;
}

.mini-calendar-today-btn.visible {
    display: block;
}

.mini-calendar-today-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.mini-calendar-slider {
    overflow: hidden;
    position: relative;
    width: 468px;
    height: 456px;
    padding: 0 20px;
    margin: 0 -20px;
}

.mini-calendar-track {
    display: flex;
    width: 856px;
    transition: transform 0.15s ease-out;
}

.mini-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 56px);
    gap: 6px;
    align-items: start;
    flex-shrink: 0;
    width: 428px;
}

.mini-calendar-headers {
    display: flex;
    justify-content: space-between;
}

.mini-calendar-day-header {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 6px 0;
}

.mini-calendar-day {
    text-align: center;
    font-size: 14px;
    padding: 4px 0;
    border-radius: 10px;
    color: var(--text-secondary);
    width: 56px;
    min-height: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    cursor: default;
}

.mini-calendar-day.has-people {
    background: rgba(253, 13, 19, 0.1);
}

.mini-calendar-day.holiday {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    font-weight: 600;
}

.mini-calendar-day.holiday.has-people {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(253, 13, 19, 0.1) 100%);
}

.mini-calendar-flags {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-top: 2px;
    flex-wrap: wrap;
}

.mini-calendar-flags img {
    width: 16px;
    height: 12px;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.mini-calendar-avatars {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
    margin-top: 3px;
    max-width: 54px;
    overflow: hidden;
}

.mini-calendar-avatars img,
.mini-calendar-avatars span {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--bg-lighter);
}

.mini-calendar-avatars span {
    background: var(--card-bg);
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.mini-calendar-day.empty {
    visibility: hidden;
}

/* Weekend days */
.mini-calendar-day.weekend {
    background: rgba(255, 255, 255, 0.03);
    color: #555;
}

.mini-calendar-day-header.weekend {
    color: #555;
}

.mini-calendar-day.today {
    background: var(--accent);
    color: white;
    font-weight: 700;
    box-shadow: 0 0 0 3px rgba(253, 13, 19, 0.3), 0 0 20px rgba(253, 13, 19, 0.5);
    animation: pulse-today 2s ease-in-out infinite;
}

@keyframes pulse-today {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(253, 13, 19, 0.3), 0 0 20px rgba(253, 13, 19, 0.5);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(253, 13, 19, 0.2), 0 0 30px rgba(253, 13, 19, 0.6);
    }
}

.mini-calendar-legend {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 16px;
    margin-bottom: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    flex-shrink: 0;
}

.legend-color.holiday {
    background: rgba(34, 197, 94, 0.3);
    border: 1px solid rgba(34, 197, 94, 0.5);
}

.legend-color.time-off {
    background: rgba(253, 13, 19, 0.2);
    border: 1px solid rgba(253, 13, 19, 0.4);
}

.mini-calendar-btn {
    margin-top: 20px;
    width: 100%;
    display: block;
    padding: 14px 24px;
    background: linear-gradient(135deg, #fd0d13 0%, #ff4444 100%) !important;
    color: white !important;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    text-decoration: none;
    border: none !important;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(253, 13, 19, 0.3);
}

.mini-calendar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(253, 13, 19, 0.5);
}

.mini-calendar-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(253, 13, 19, 0.3);
}

.mini-calendar-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.mini-calendar-btn:hover::before {
    left: 100%;
}

.mini-calendar-btn .btn-icon {
    font-size: 1.4em;
    margin-right: 4px;
    vertical-align: middle;
}

/* Friday GIF */
.friday-gif {
    height: 1.5em;
    vertical-align: middle;
    margin-right: 8px;
}

/* Team Members List (Admin) */
.team-members-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.team-member-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    background: var(--bg-lighter);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.team-member-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.team-member-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.team-member-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-muted);
}

.team-member-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.team-member-name {
    font-weight: 500;
    font-size: 14px;
}

.team-member-email {
    font-size: 12px;
    color: var(--text-muted);
}

.team-member-country-form select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    min-width: 180px;
}

.team-member-country-form select:hover {
    border-color: var(--primary);
}

.team-member-country-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(253, 13, 19, 0.2);
}

@media (max-width: 480px) {
    .team-member-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .team-member-info {
        gap: 10px;
    }
    
    .team-member-avatar,
    .team-member-avatar-placeholder {
        width: 36px;
        height: 36px;
    }
    
    .team-member-name {
        font-size: 13px;
    }
    
    .team-member-email {
        font-size: 11px;
    }
    
    .team-member-country-form select {
        width: 100%;
        min-width: unset;
    }
}

/* Mobile responsive calendar */
@media (max-width: 480px) {
    .mini-calendar {
        padding: 12px;
    }
    
    .mini-calendar-slider {
        width: calc(7 * 40px + 6 * 4px + 40px);
        height: 340px;
        padding: 0 20px;
        margin: 0 -20px;
    }
    
    .mini-calendar-track {
        width: calc(2 * (7 * 40px + 6 * 4px));
    }
    
    .mini-calendar-grid {
        grid-template-columns: repeat(7, 40px);
        gap: 4px;
        width: calc(7 * 40px + 6 * 4px);
    }

    .mini-calendar-headers {
        display: flex;
        justify-content: space-between;
    }
    
    .mini-calendar-day {
        width: 40px;
        min-height: 40px;
        font-size: 12px;
        padding: 3px 0;
        border-radius: 8px;
    }
    
    .mini-calendar-day-header {
        font-size: 10px;
        padding: 4px 0;
    }
    
    .mini-calendar-flags img {
        width: 12px;
        height: 9px;
    }
    
    .mini-calendar-avatars {
        max-width: 36px;
    }
    
    .mini-calendar-avatars img,
    .mini-calendar-avatars span {
        width: 12px;
        height: 12px;
    }
    
    .mini-calendar-arrow {
        padding: 4px 8px;
        font-size: 20px;
    }
    
    .mini-calendar-header-wrapper {
        height: 38px;
    }
    
    .mini-calendar-header-wrapper span {
        font-size: 12px;
    }
    
    .mini-calendar-today-btn {
        font-size: 10px;
        padding: 2px 8px;
    }
    
    .mini-calendar-legend {
        margin-top: 12px;
        padding-top: 10px;
    }
    
    .legend-item {
        font-size: 11px;
    }
    
    .mini-calendar-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}
