/* Ares Studio Design System — Global Styles */

/* Page visibility */
.page {
  display: none;
}
.page.visible {
  display: block;
}

/* Navigation active state */
#nav a.active,
.nav-item.active {
  background: rgba(217, 211, 204, 0.1);
  color: #D9D3CC;
  border-left: 2px solid #D9D3CC;
}

/* Primary button hover glow */
.btn-primary:hover,
button.bg-ares-graphite:hover,
button.bg-ares-neon:hover {
  box-shadow: 0 0 20px rgba(217, 211, 204, 0.15);
}

/* Card hover effect */
.card-hover {
  transition: all 0.2s ease;
}
.card-hover:hover {
  border-color: rgba(217, 211, 204, 0.3);
  box-shadow: 0 0 30px rgba(217, 211, 204, 0.08);
}

/* Input focus glow */
input:focus,
textarea:focus,
select:focus {
  transition: all 0.2s ease;
}

/* Smooth transitions */
* {
  transition-property: color, background-color, border-color, box-shadow;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

/* ——— Mobile-first responsive layout ——— */
/* Sidebar: on small screens it's an overlay; toggle with #sidebar-toggle */
@media (max-width: 767px) {
  #admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 50;
    width: 16rem;
    max-width: 85vw;
    transform: translateX(-100%);
    transition: transform 0.2s ease-out;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
  }
  body.sidebar-open #admin-sidebar {
    transform: translateX(0);
  }
  #admin-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
  }
  body.sidebar-open #admin-sidebar-backdrop {
    display: block;
  }
  .admin-main {
    min-width: 0;
  }
  .admin-header-wrap {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .admin-header-wrap .font-heading.text-lg {
    font-size: 1rem;
  }
}
#sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border-radius: 10px;
  border: 1px solid var(--ares-border, #1f1f1f);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  cursor: pointer;
}
@media (max-width: 767px) {
  #sidebar-toggle {
    display: inline-flex;
  }
}

/* Touch-friendly: minimum tap targets 44px */
@media (max-width: 767px) {
  .rounded-card.px-3.py-2 {
    min-height: 44px;
  }
  button.rounded-card,
  a.rounded-card.px-2.py-1 {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Tables: horizontal scroll on small screens */
.admin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 767px) {
  .admin-table-wrap table {
    min-width: 600px;
  }
}

/* Modals: full-bleed on mobile, max height with scroll */
@media (max-width: 767px) {
  #job-modal .rounded-card.border,
  .fixed.inset-0.z-50 > div.rounded-card {
    max-height: 95vh;
    overflow-y: auto;
    margin: 0.5rem;
  }
}

/* Filter rows: stack on mobile */
@media (max-width: 640px) {
  .filter-row-flex {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-row-flex select,
  .filter-row-flex input {
    width: 100%;
  }
}
