/* Ticketing application global styles */

@font-face {
  font-family: 'DancingScript'; /* Choose a name you'll use in code */
  /* Path relative to the built output's root, assuming /Backend/static/ is served as /static/ */
  src: url('/static/fonts/DancingScript-SemiBold.ttf') format('truetype'); 
  font-weight: normal; 
  font-style: normal;  
  font-display: swap; 
}

/* Light theme (default) */
:root {
  --bg-color: #fff;
  --text-color: #000;
  --text-color-light: #666;
  --text-color-inverse: #fff;
  --border-color: #ddd;
  --nav-bg: #f5f5f5;
  --nav-active-bg: #e0e0e0;
  --nav-hover-bg: #eaeaea;
  --card-bg: #fff;
  --subtable-bg: #f8f9fa;
  --button-primary-bg: #444;
  --button-primary-hover: #444;
  --error-color: #dc3545;
  --disabled-bg: #e0e0e0;
  --disabled-text: #9e9e9e;
  --focus-ring-color: rgba(0, 123, 255, 0.25);
  
  /* Status colors */
  --status-new: #2196f3;
  --status-in-progress: #ff9800;
  --status-resolved: #4caf50;
  --status-closed: #9e9e9e;
  --status-exported: #6c757d;
  --status-report-exported: #17a2b8;
  --text-on-status: #fff;
  --text-on-progress: #000;

  --accent: rgba(0, 0, 0, 0.8);
  --accent-hover: rgba(0, 0, 0, 0.9);
  
  /* Dropdown arrow for light mode */
  --dropdown-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath fill='%23000' d='M0 2l4 4 4-4z'/%3E%3C/svg%3E");
}

/* Dark theme */
body.dark-mode {
  --bg-color: #000;
  --text-color: #fff;
  --text-color-light: #aaa;
  --text-color-inverse: #000;
  --text-primary: #ffffff;
  --text-secondary: #eeeeee;
  --border-color: #444;
  --nav-bg: #222;
  --nav-active-bg: #444;
  --nav-hover-bg: #333;
  --card-bg: #1b1b1b;
  --subtable-bg: #2a2a2a;
  --button-primary-bg: #222;
  --button-primary-hover: #222;
  --error-color: #ff5555;
  --disabled-bg: #555;
  --disabled-text: #9e9e9e;
  --focus-ring-color: rgba(100, 200, 255, 0.25);
  
  /* Status colors - slightly adjusted for dark mode */
  --status-new: #1e88e5;
  --status-in-progress: #f57c00;
  --status-resolved: #43a047;
  --status-closed: #757575;
  --status-exported: #6c757d;
  --status-report-exported: #17a2b8;
  --text-on-status: #fff;
  --text-on-progress: #000;

  --accent: rgba(255, 255, 255, 0.8);
  --accent-hover: rgba(255, 255, 255, 0.9);
  
  /* Dropdown arrow for dark mode */
  --dropdown-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath fill='%23fff' d='M0 2l4 4 4-4z'/%3E%3C/svg%3E");
}

/* Apply background and text colors to body */
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Shared styling for components */
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Dark mode dialog styles */
body.dark-mode .dialog {
  background-color: #333 !important;
  color: #fff !important;
  border: 1px solid #555 !important;
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
  background-color: #333;
  border-color: #555;
  color: #fff;
}
