/**
 * Main stylesheet for Fire Recovery Tool
 * Imports all component and layout stylesheets
 */

/* Import base styles and variables */
@import 'variables.css';
@import 'base.css';

/* Import layout styles */
@import 'layouts/grid.css';
@import 'layouts/containers.css';
@import 'layouts/header.css';
@import 'layouts/footer.css';

/* Import component styles */
@import 'components/buttons.css';
@import 'components/forms.css';
@import 'components/map.css';
@import 'components/tables.css';
@import 'components/slider.css';
@import 'components/import.css';
/* @import 'components/modals.css'; */
/* @import 'components/loader.css'; */
/* @import 'components/alerts.css'; */

/**
 * Global custom properties (CSS variables)
 */
:root {
  /* Color scheme */
  --primary-color: rgb(55, 8, 85);
  --secondary-color: rgb(39, 80, 123);
  --tertiary-color: rgb(31, 120, 122);
  --quaternary-color: rgb(52, 178, 98);
  --quinary-color: rgb(171, 219, 32);
  
  /* UI colors */
  --text-color: #333333;
  --background-color: #ffffff;
  --background-alt: #f5f5f5;
  --border-color: #dddddd;
  
  /* Alert colors */
  --success-color: #28a745;
  --info-color: #17a2b8;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  
  /* Typography */
  --font-family-base: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-family-headings: 'Montserrat', sans-serif;
  --font-size-base: 1rem;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  
  /* Borders */
  --border-radius: 4px;
  --border-width: 1px;
  
  /* Shadows */
  --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  --box-shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-speed: 0.2s;
}

/**
 * Global styles
 */
html {
  box-sizing: border-box;
  font-size: 16px;
}

*, *:before, *:after {
  box-sizing: inherit;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-headings);
  margin-top: 100;
  margin-bottom: var(--spacing-md);
  font-weight: 600;
  line-height: 1.2;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* Utility classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

.m-0 { margin: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-sm); }
.p-2 { padding: var(--spacing-md); }
.p-3 { padding: var(--spacing-lg); }



/* Page-specific styles */
/* Home page navigation boxes */
.home-nav-container {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding-top: 60px;
    padding-bottom: 100px;
}

.info-box {
    background-color: black;
    width: 280px;
    height: 450px;
    position: relative;
    border-radius: 20px;
}

.textbox {
    color: white;
    position: absolute;
    top: 0;
    text-align: left;
    padding: 30px;
}

.textbox h3 {
    color: white;
}

/* Fire severity page styles */
.form-map-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-left: 40px;
}

.upload-and-date-container {
    flex: 0 0 45%;
    max-width: 45%;
}


/* Styling for the upload and process fire analysis buttons */
.primary-button {
    display: inline-block;
    padding: 10px 20px;
    margin: 20px 0;
    font-size: 12pt;
    color: black;
    background-color: #EBE8E4;
    border: 1px solid black;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Public Sans', sans-serif;
    text-align: center;
}

.primary-button:hover {
    background-color: #BBB7AD;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.primary-button i {
    margin-right: 8px;
}

/* Map and results section (right side) - updated with better constraints */
.map-and-results {
    flex: 0 0 50%; /* Take up right 50% */
    max-width: 50%;
    display: flex;
    flex-direction: column;
    padding-left: 20px; /* Space between left and right sections */
    box-sizing: border-box; /* Include padding in width calculation */
    overflow-x: hidden; /* Prevent horizontal overflow */
}

/* Set proper dimensions for map container */
.map-container {
    width: 100%;
    height: 500px; /* Fixed height - adjust as needed */
    margin-bottom: 20px; /* Space between map and results */
}

#map {
    width: 100%;
    height: 100%;
}

/* Results panel styling */
.results-panel {
    width: 100%;
    max-width: 100%; /* Ensure it doesn't overflow */
    overflow-x: hidden; /* Prevent horizontal overflow */
}

/* results tabs section: metrics, vegetation and export buttons */
.results-tabs {
    margin-top: 20px;
    margin-bottom: 20px;
}
