/* ============ HELFER VERFÜGBARKEITSPLANER STYLES ============ */

:root {
  --primary-green: #7AB51D;
  --primary-green-dark: #5a8f15;
  --primary-green-light: #9ed444;
  --accent-yellow: #F5C400;
  --accent-blue: #0072BC;
  --accent-blue-light: #e6f3fb;
  --text-dark: #1a1a1a;
  --text-medium: #4a4a4a;
  --text-light: #6a6a6a;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.2s ease;
  --danger: #d32f2f;
  --danger-light: #ffebee;
  --warning: #ff9800;
  --warning-light: #fff3e0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-light);
  min-height: 100vh;
}

.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ============ HEADER ============ */
.header {
  background: var(--bg-white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--primary-green) 0%, var(--primary-green) 70%, var(--accent-yellow) 100%);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  color: var(--text-dark);
}

.header-nav {
  display: flex;
  gap: 0.25rem;
  flex: 1;
}

.header-nav a, .header-nav button {
  color: var(--text-medium);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: var(--transition);
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-nav a:hover, .header-nav button:hover {
  color: var(--primary-green);
  background: var(--bg-light);
}

.header-nav a.active {
  color: var(--primary-green);
  background: rgba(122, 181, 29, 0.1);
}

.header-nav svg {
  width: 18px;
  height: 18px;
}

.user-info {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.75rem;
}

/* ============ LOGO ============ */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-green);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-main {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.logo-sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============ MOBILE NAV ============ */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  visibility: hidden;
  opacity: 0;
  transition: var(--transition);
}

.mobile-nav.open {
  visibility: visible;
  opacity: 1;
}

.mobile-nav-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.mobile-nav-content {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 85%;
  max-width: 320px;
  background: var(--bg-white);
  padding: 1.5rem;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobile-nav.open .mobile-nav-content {
  transform: translateX(0);
}

.mobile-nav-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.mobile-nav-close svg {
  width: 24px;
  height: 24px;
}

.mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav nav a, .mobile-nav nav button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  color: var(--text-dark);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: var(--transition);
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.mobile-nav nav a:hover, .mobile-nav nav button:hover {
  background: var(--bg-light);
  color: var(--primary-green);
}

.mobile-nav nav svg {
  width: 20px;
  height: 20px;
}

/* ============ LOGIN PAGE ============ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
  padding: 2rem;
}

.login-card {
  background: var(--bg-white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 400px;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header .logo {
  justify-content: center;
  margin-bottom: 1.5rem;
}

.login-header h1 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.login-header p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-medium);
}

.form-group input, .form-group select, .form-group textarea {
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary-green);
}

.login-error {
  background: var(--danger-light);
  color: var(--danger);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  text-align: center;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn svg {
  width: 20px;
  height: 20px;
}

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

.btn-primary:hover {
  background: var(--primary-green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--accent-yellow);
  color: var(--text-dark);
}

.btn-secondary:hover {
  background: #e6b800;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-green);
  color: var(--primary-green);
}

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

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

.btn-danger:hover {
  background: #b71c1c;
}

.btn-full {
  width: 100%;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-icon {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  color: var(--text-medium);
  transition: var(--transition);
}

.btn-icon:hover {
  background: var(--bg-light);
  color: var(--primary-green);
}

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

.btn-icon svg {
  width: 18px;
  height: 18px;
}

/* ============ MAIN CONTENT ============ */
.main-content {
  flex: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-header h1 {
  font-size: 1.75rem;
  color: var(--text-dark);
}

.page-header-actions {
  display: flex;
  gap: 0.75rem;
}

/* ============ CALENDAR ============ */
.calendar-container {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 1rem;
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.calendar-nav h2 {
  font-size: 1.25rem;
  min-width: 200px;
  text-align: center;
}

.calendar-nav button {
  background: none;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-nav button:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
}

.calendar-nav button svg {
  width: 20px;
  height: 20px;
}

.calendar-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1rem;
  background: var(--bg-light);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-btn:hover {
  border-color: var(--primary-green);
}

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

.filter-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.today-btn {
  padding: 0.5rem 1rem;
  background: var(--accent-yellow);
  color: var(--text-dark);
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.today-btn:hover {
  background: #e6b800;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-day-header {
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-medium);
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
}

.calendar-day {
  min-height: 120px;
  border: 1px solid var(--border-color);
  border-top: none;
  padding: 0.5rem;
  background: var(--bg-white);
  transition: var(--transition);
  cursor: pointer;
}

.calendar-day:hover {
  background: var(--bg-light);
}

.calendar-day.other-month {
  background: #fafafa;
  color: var(--text-light);
}

.calendar-day.today {
  background: rgba(122, 181, 29, 0.1);
}

.calendar-day.today .day-number {
  background: var(--primary-green);
  color: white;
}

.day-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.day-events {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.day-event {
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: var(--transition);
}

.day-event:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-sm);
}

.day-event-more {
  font-size: 0.7rem;
  color: var(--text-light);
  padding: 0.25rem;
}

/* ============ WEEK VIEW ============ */
.week-view {
  overflow-x: auto;
}

.week-grid {
  display: grid;
  grid-template-columns: 60px repeat(7, 1fr);
  min-width: 800px;
}

.week-header {
  display: contents;
}

.week-header-cell {
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
}

.week-header-cell:first-child {
  background: transparent;
}

.week-header-cell.today {
  background: rgba(122, 181, 29, 0.2);
}

.week-header-date {
  font-size: 1.5rem;
  color: var(--text-dark);
}

.week-header-day {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
}

.week-body {
  display: contents;
}

.week-time-slot {
  display: contents;
}

.week-time {
  padding: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-light);
  text-align: right;
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.week-cell {
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  min-height: 50px;
  padding: 0.25rem;
  position: relative;
  cursor: pointer;
}

.week-cell:hover {
  background: var(--bg-light);
}

.week-cell.today {
  background: rgba(122, 181, 29, 0.05);
}

.week-event {
  position: absolute;
  left: 2px;
  right: 2px;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  color: white;
  overflow: hidden;
  cursor: pointer;
  z-index: 1;
}

/* ============ LIST VIEW ============ */
.list-view {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.list-header {
  display: grid;
  grid-template-columns: 150px 120px 120px 1fr 150px 100px;
  padding: 1rem 1.5rem;
  background: var(--bg-light);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-medium);
  border-bottom: 2px solid var(--border-color);
}

.list-item {
  display: grid;
  grid-template-columns: 150px 120px 120px 1fr 150px 100px;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
  transition: var(--transition);
}

.list-item:hover {
  background: var(--bg-light);
}

.list-item:last-child {
  border-bottom: none;
}

.list-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.list-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.75rem;
}

.list-actions {
  display: flex;
  gap: 0.25rem;
  justify-content: flex-end;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
}

.empty-state svg {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-medium);
}

/* ============ MODAL ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 1rem;
}

.modal {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
  font-size: 1.25rem;
}

.modal-header button {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.modal-header button:hover {
  background: var(--bg-light);
}

.modal-header button svg {
  width: 20px;
  height: 20px;
}

.modal-body {
  padding: 1.5rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  margin-top: 0.5rem;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.checkbox-group label {
  font-size: 0.9rem;
  color: var(--text-medium);
}

/* ============ ADMIN SECTION ============ */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.stat-icon.green { background: var(--primary-green); }
.stat-icon.blue { background: var(--accent-blue); }
.stat-icon.yellow { background: var(--accent-yellow); }
.stat-icon.red { background: var(--danger); }

.stat-content h3 {
  font-size: 0.875rem;
  color: var(--text-light);
  font-weight: 500;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
}

.admin-section {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.section-header h2 {
  font-size: 1.25rem;
}

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

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

.admin-table th {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-medium);
  background: var(--bg-light);
}

.admin-table tr:hover {
  background: var(--bg-light);
}

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

.user-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-cell-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
}

.role-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.role-admin {
  background: rgba(122, 181, 29, 0.15);
  color: var(--primary-green-dark);
}

.role-helfer {
  background: rgba(0, 114, 188, 0.15);
  color: var(--accent-blue);
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}

.status-active {
  background: #e8f5e9;
  color: #2e7d32;
}

.status-inactive {
  background: #fafafa;
  color: #757575;
}

.action-buttons {
  display: flex;
  gap: 0.25rem;
}

/* ============ CHANGE LOG ============ */
.changelog-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.changelog-item:last-child {
  border-bottom: none;
}

.changelog-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.changelog-icon svg {
  width: 18px;
  height: 18px;
  color: white;
}

.changelog-icon.create { background: var(--primary-green); }
.changelog-icon.update { background: var(--accent-blue); }
.changelog-icon.delete { background: var(--danger); }

.changelog-content {
  flex: 1;
}

.changelog-content strong {
  color: var(--text-dark);
}

.changelog-content p {
  color: var(--text-medium);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.changelog-time {
  font-size: 0.75rem;
  color: var(--text-light);
  white-space: nowrap;
}

/* ============ TOAST ============ */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 400;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

.toast-success {
  background: var(--primary-green);
  color: white;
}

.toast-error {
  background: var(--danger);
  color: white;
}

.toast-warning {
  background: var(--warning);
  color: white;
}

.toast svg {
  width: 20px;
  height: 20px;
}

.toast button {
  background: none;
  border: none;
  color: inherit;
  padding: 0.25rem;
  cursor: pointer;
  opacity: 0.8;
}

.toast button:hover {
  opacity: 1;
}

/* ============ COLOR PICKER ============ */
.color-picker {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.color-option {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: var(--transition);
}

.color-option:hover {
  transform: scale(1.1);
}

.color-option.selected {
  border-color: var(--text-dark);
}

/* ============ FLOATING LOGOUT BUTTON ============ */
.floating-logout {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-white);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-medium);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  z-index: 50;
}

.floating-logout:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: var(--danger-light);
}

.floating-logout svg {
  width: 18px;
  height: 18px;
}

/* ============ LOADING ============ */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border-color);
  border-top-color: var(--primary-green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .list-header, .list-item {
    grid-template-columns: 1fr 100px 100px 150px 80px;
  }
  
  .list-header > *:nth-child(4),
  .list-item > *:nth-child(4) {
    display: none;
  }
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .user-info {
    display: none;
  }
  
  .page-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .page-header-actions {
    justify-content: stretch;
  }
  
  .page-header-actions .btn {
    flex: 1;
  }
  
  .calendar-header {
    flex-direction: column;
  }
  
  .calendar-nav {
    width: 100%;
    justify-content: space-between;
  }
  
  .calendar-filters {
    width: 100%;
    justify-content: center;
  }
  
  .calendar-day {
    min-height: 80px;
    padding: 0.25rem;
  }
  
  .day-number {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }
  
  .day-event {
    font-size: 0.65rem;
    padding: 0.15rem 0.25rem;
  }
  
  .list-header, .list-item {
    grid-template-columns: 1fr 80px 80px 60px;
  }
  
  .list-header > *:nth-child(4),
  .list-item > *:nth-child(4),
  .list-header > *:nth-child(5),
  .list-item > *:nth-child(5) {
    display: none;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .modal {
    margin: 0.5rem;
    max-height: 95vh;
  }
  
  .admin-table-wrapper {
    overflow-x: auto;
  }
  
  .admin-table {
    min-width: 600px;
  }
  
  .floating-logout {
    bottom: 1rem;
    left: 1rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
  
  .floating-logout svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 1rem;
  }
  
  .login-card {
    padding: 2rem 1.5rem;
  }
  
  .calendar-day-header {
    padding: 0.5rem;
    font-size: 0.7rem;
  }
  
  .stat-card {
    padding: 1rem;
  }
  
  .stat-value {
    font-size: 1.5rem;
  }
  
  .toast {
    left: 1rem;
    right: 1rem;
    transform: none;
  }
  
  @keyframes slideUp {
    from {
      transform: translateY(20px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
}
