/* Path : webserver/public/common/css/base.css */

/* Base CSS - Core styles, typography, colors, and variables */

/* CSS Variables for consistent theming */
:root {
    /* Color Palette */
    --primary-color: #007bff;
    --primary-dark: #0056b3;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --danger-dark: #c82333;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --white-color: #ffffff;
    
    /* Grays */
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    /* Typography */
    --font-family-base: Arial, sans-serif;
    --font-size-base: 16px;
    --font-weight-normal: 400;
    --font-weight-bold: 700;
    --line-height-base: 1.5;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 3rem;
    
    /* Borders */
    --border-width: 1px;
    --border-radius: 4px;
    --border-color: #dee2e6;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  }
  
  /* Reset and base styles */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html, body {
    height: 100%;
  }
  
  body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--gray-800);
    background-color: var(--white-color);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  
  h1, h2, h3, h4, h5, h6 {
    margin-bottom: var(--spacing-md);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    color: var(--gray-900);
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.75rem;
  }
  
  p {
    margin-bottom: var(--spacing-md);
  }
  
  a {
    color: var(--primary-color);
    text-decoration: none;
  }
  
  a:hover {
    text-decoration: underline;
  }
  
  /* Utility classes */
  .text-center {
    text-align: center;
  }
  
  .text-right {
    text-align: right;
  }
  
  .text-left {
    text-align: left;
  }
  
  .hidden {
    display: none !important;
  }
  
  .invisible {
    visibility: hidden !important;
  }
  
  .d-flex {
    display: flex;
  }
  
  .justify-content-between {
    justify-content: space-between;
  }
  
  .align-items-center {
    align-items: center;
  }
  
  .mt-0 { margin-top: 0; }
  .mt-1 { margin-top: var(--spacing-xs); }
  .mt-2 { margin-top: var(--spacing-sm); }
  .mt-3 { margin-top: var(--spacing-md); }
  .mt-4 { margin-top: var(--spacing-lg); }
  .mt-5 { margin-top: var(--spacing-xl); }
  
  .mb-0 { margin-bottom: 0; }
  .mb-1 { margin-bottom: var(--spacing-xs); }
  .mb-2 { margin-bottom: var(--spacing-sm); }
  .mb-3 { margin-bottom: var(--spacing-md); }
  .mb-4 { margin-bottom: var(--spacing-lg); }
  .mb-5 { margin-bottom: var(--spacing-xl); }
  
  /* Status colors */
  .text-primary { color: var(--primary-color); }
  .text-success { color: var(--success-color); }
  .text-danger { color: var(--danger-color); }
  .text-warning { color: var(--warning-color); }
  .text-info { color: var(--info-color); }
  
  .bg-primary { background-color: var(--primary-color); }
  .bg-success { background-color: var(--success-color); }
  .bg-danger { background-color: var(--danger-color); }
  .bg-warning { background-color: var(--warning-color); }
  .bg-info { background-color: var(--info-color); }
  .bg-light { background-color: var(--light-color); }
  .bg-dark { background-color: var(--dark-color); }

  .toast-container {
    position: fixed;       /* stay in place on scroll */
    top: 1rem;             /* 16px from top */
    right: 1rem;           /* 16px from right */
    display: flex;         
    flex-direction: column;/* stack new toasts downward */
    align-items: flex-end; /* right-align each toast */
    gap: 0.5rem;           /* spacing between toasts */
    z-index: 9999;         /* above most other content */
  }
  
  .toast {
    position: relative;      /* for close-button positioning */
    min-width: 200px;
    max-width: 320px;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.3;
    opacity: 0;
    transform: translateY(-10px);
    animation: slideIn 0.3s forwards;
  }
  
  /* different colors by type */
  .toast-info    { background: #3498db; }
  .toast-success { background: #2ecc71; }
  .toast-warning { background: #f39c12; }
  .toast-error   { background: #e74c3c; }
  
  /* little “×” button */
  .toast-close {
    position: absolute;
    top: 4px;
    right: 6px;
    background: transparent;
    border: none;
    font-size: 1.1rem;
    line-height: 1;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
  }
  
  /* entrance animation */
  @keyframes slideIn {
    to { opacity: 1; transform: translateY(0); }
  }