/* 
 * CCR Booking System - Global Theme
 * 
 * This file defines the color palette and design tokens used across
 * the entire application. Import this in all templates for consistency.
 * 
 * Usage in templates:
 * <link rel="stylesheet" href="{% static 'core/theme.css' %}">
 */

:root {
  /* ============================================
     TYPOGRAPHY
     ============================================ */
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* ============================================
     PRIMARY BRAND COLORS
     ============================================ */
  --primary: #6AA684;
  --primary-dark: #378C5C;
  --primary-light: #D8F2E1;
  --primary-hover: #5FB17A;
  
  /* ============================================
     SEMANTIC COLORS
     ============================================ */
  --danger-red: #dc3545;
  --danger-red-dark: #c82333;
  --danger-red-light: rgba(220, 53, 69, 0.1);
  
  --warning-yellow: #ffc107;
  --warning-yellow-dark: #e0a800;
  --warning-yellow-light: #fff3cd;
  
  --success-green: #28a745;
  --success-green-dark: #218838;
  --success-green-light: #d4edda;
  
  --info-cyan: #17a2b8;
  --info-cyan-dark: #138496;
  --info-cyan-light: #d1ecf1;
  
  /* ============================================
     NEUTRAL COLORS
     ============================================ */
  --bg: #fafbfc;
  --surface: #ffffff;
  --surface-hover: #f6f8fa;
  
  --border: #e1e4e8;
  --border-light: #e8eaec;
  --border-dark: #d1d5da;
  
  --text: #24292e;
  --text-light: #6a737d;
  --text-lighter: #959da5;
  --text-muted: #959da5;
  
  /* ============================================
     BOOKING STATE COLORS
     ============================================ */
  
  /* Available cells - white with hover effect */
  --free-bg: #ffffff;
  --free-hover: var(--primary-light);
  --free-border: var(--border-light);
  
  /* Other practitioners' bookings - light pink */
  --booked-other-bg: #F2D9D8;
  --booked-other-text: #8B4A44;
  --booked-other-border: #e8c4c2;
  
  /* My bookings - light green */
  --booked-mine-bg: #D8E6DC;
  --booked-mine-text: #54835D;
  --booked-mine-border: #c0d4c4;
  
  /* Cancelled bookings - light pink */
  --cancelled-bg: #F2D9D8;
  --cancelled-text: #8B4A44;
  --cancelled-border: #e8c4c2;
  
  /* Past bookings - light grey */
  --past-bg: #F5F5F5;
  --past-text: #505050;
  --past-border: #e1e4e8;
  --past-opacity: 0.6;
  
  /* ============================================
     EFFECTS & SHADOWS
     ============================================ */
  --shadow-sm: 0 1px 2px rgba(27,31,35,0.08);
  --shadow: 0 1px 3px rgba(27,31,35,0.12);
  --shadow-md: 0 2px 4px rgba(27,31,35,0.15);
  --shadow-lg: 0 4px 8px rgba(27,31,35,0.18);
  --shadow-hover: 0 1px 2px rgba(27,31,35,0.12), 0 2px 6px rgba(27,31,35,0.1);
  
  /* ============================================
     BORDER RADIUS
     ============================================ */
  --radius-sm: 4px;
  --radius: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  /* ============================================
     SPACING SCALE
     ============================================ */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 24px;
  --spacing-2xl: 32px;
  
  /* ============================================
     TYPOGRAPHY
     ============================================ */
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-md: 15px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 20px;
  
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* ============================================
     TRANSITIONS
     ============================================ */
  --transition-fast: 0.1s ease;
  --transition: 0.15s ease;
  --transition-slow: 0.3s ease;
  
  /* ============================================
     Z-INDEX LAYERS
     ============================================ */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-sidebar: 900;
  --z-modal-backdrop: 1000;
  --z-modal: 1100;
  --z-popover: 1200;
  --z-tooltip: 1300;
  
  /* ============================================
     BREAKPOINTS (for reference in media queries)
     ============================================ */
  /* Use these values in your @media queries:
     --breakpoint-sm: 576px
     --breakpoint-md: 768px
     --breakpoint-lg: 992px
     --breakpoint-xl: 1200px
  */
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Reset & Base Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-ui);
  font-size: var(--font-size-base);
  color: var(--text);
  background: var(--bg);
  margin: 0;
  padding: 0;
  line-height: 1.5;
  font-weight: 400;
}

/* Button Base Styles */
.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

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

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

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

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--primary);
}

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

.btn-danger:hover {
  background: var(--danger-red-dark);
  border-color: var(--danger-red-dark);
}

/* Text Utilities */
.text-muted {
  color: var(--text-muted);
}

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

.text-danger {
  color: var(--danger-red);
}

.text-success {
  color: var(--success-green);
}

/* Shadow Utilities */
.shadow-sm {
  box-shadow: var(--shadow-sm);
}

.shadow {
  box-shadow: var(--shadow);
}

.shadow-md {
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

/* ============================================
   GLOBAL FONT APPLICATION
   ============================================ */
body {
  font-family: var(--font-ui);
}

