/*
Theme Name: Hello Elementor Child
Theme URI: https://example.com
Description: The VLP Custom child theme for Hello Elementor.
Author: Ben Lichtenwalner
Author URI: https://example.com
Template: hello-elementor
Version: 1.0
Text Domain: hello-elementor-child
*/

/* Reset Hello Elementor table styles */
table {
  border: none;
  border-spacing: 0;
  border-collapse: collapse;
}
table th,
table td {
  border: none;
  padding: 0;
}

/* 1) ROOT VARIABLES */
:root {
  /* Orange is now primary, Blue is secondary */
  --primary-color: #ff6600;  /* Orange */
  --secondary-color: #0066ff; /* Blue */
  
  --black-color: #000000;
  --white-color: #ffffff;

  /* Text & background */
  --text-color: var(--black-color);
  --background-color: #f8f9fa;

  /* Typography */
  --font-family-sans: 'Montserrat', sans-serif;

  /* Spacing */
  --base-spacing: 16px;

  /*
    Shadows
    Added separate button shadows so we can have different intensities
  */
  --box-shadow-base: 0 4px 6px rgba(0, 0, 0, 0.10);
  --box-shadow-hover: 0 8px 12px rgba(0, 0, 0, 0.15);
  --box-shadow-btn: 0 5px 8px rgba(0, 0, 0, 0.6);
  --box-shadow-btn-hover: 0 10px 15px rgba(0, 0, 0, 0.8);
}

/* 2) GLOBAL RESETS & BASE STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family-sans);
  font-size: 16px;
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
  margin: 0;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: #004fc4;
}
.visited-link:visited {
  color: #3a0099;
}

/* 3) LAYOUT WRAPPERS */
.site-header {
  background-color: var(--white-color);
  display: flex;
  align-items: center;
  padding: var(--base-spacing);
  box-shadow: var(--box-shadow-base);
}

.site-header h1 {
  margin-left: var(--base-spacing);
}

.content-wrapper {
  max-width: 1100px;
  margin: var(--base-spacing) auto;
  padding: var(--base-spacing);
}

.site-footer {
  background-color: var(--white-color);
  text-align: center;
  padding: var(--base-spacing);
  margin-top: var(--base-spacing);
  box-shadow: var(--box-shadow-base);
}

/* Logo Styling */
.vlp-logo {
  height: 60px;
  width: auto;
}

/* 4) TYPOGRAPHY */
h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5em;
}

h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin: 1em 0 0.5em;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333333;
  margin: 0.75em 0 0.5em;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0.5em 0;
}

h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.4em 0;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0.4em 0;
}

/* 5) BUTTONS */
.btn {
  display: inline-block;
  border: none;
  color: var(--white-color);
  font-family: var(--font-family-sans);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border-radius: 6px;
  box-shadow: var(--box-shadow-btn);
  transition: all 0.2s ease;
  margin: 0.25rem;
}

.btn:hover {
  box-shadow: var(--box-shadow-btn-hover);
  transform: translateY(-2px);
}

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

.btn-disabled,
.btn[disabled] {
  background-color: #cccccc;
  color: #666666;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-large {
  padding: 12px 20px;
  font-size: 1rem;
}
.btn-small {
  padding: 8px 14px;
  font-size: 0.85rem;
}

/* Override Elementor Button Styles */
.elementor-button {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  color: var(--white-color);
  background-color: var(--primary-color);
  border: none;
  border-radius: 6px;
  padding: 12px 20px;
  font-family: var(--font-family-sans);
  font-size: 1rem;
  font-weight: 600;
  box-shadow: var(--box-shadow-btn);
  transition: all 0.3s ease;
}

.elementor-button:hover {
  background-color: var(--secondary-color);
  box-shadow: var(--box-shadow-btn-hover);
  transform: translateY(-2px);
}

.elementor-button .elementor-button-icon {
  margin-right: 8px;
  font-size: 1.2rem;
  color: var(--white-color);
}

/* FORM STYLING */
.form-group {
  margin-bottom: 1.5rem;
}

input[type="text"],
input[type="date"],
textarea,
select {
  width: 100%;
  padding: 10px;
  border: 2px solid #0066ff; 
  border-radius: 4px; 
  font-size: 1rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

input[type="date"] {
  max-width: 200px; /* Restrict date input width */
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 5px rgba(255, 102, 0, 0.5);
  outline: none;
}

select {
  max-width: 200px;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Buttons for Forms */
button {
  background-color: var(--primary-color);
  color: var(--white-color);
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--box-shadow-btn);
}

button:hover {
  background-color: var(--secondary-color);
  box-shadow: var(--box-shadow-btn-hover);
}

/* 6) TABLES */

/* Default Table Styling */
.vlp-styled-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--base-spacing) 0;
  box-shadow: var(--box-shadow-base);
  overflow: hidden;
  background-color: var(--white-color);
}

/* Updated Table Header Styling */
.vlp-styled-table thead {
  background-color: #0066ff; /* Faded Blue background for header */
  color: #ffffff; /* White text color */
  border: none;
  /* border-radius: 24px 24px 24px 24px !important; /* Rounded top corners */
  overflow: hidden; /* Ensure border-radius applies properly */
}

.vlp-styled-table thead th {
  padding: 12px; /* Padding for the header cells */
  text-align: left; /* Align text */
  cursor: pointer; /* Pointer cursor for clickable headers */
}

/* Ensure Rounded Corners Apply */
.vlp-styled-table thead tr:first-child th:first-child {
  border-top-left-radius: 12px !important; /* Round the top-left corner */
}

.vlp-styled-table thead tr:first-child th:last-child {
  border-top-right-radius: 12px !important; /* Round the top-right corner */
}

.vlp-styled-table thead tr th:last-child {
  border-top-right-radius: 8px !important; /* Rounded corner for the last column */
}

.vlp-styled-table tbody tr:nth-child(even) {
  background-color: #eeeeee; /* Zebra striping for even rows */
}

.vlp-styled-table tbody tr:hover {
  background-color: var(--primary-color); /* Highlight on hover */
  color: var(--white-color); /* Text color change */
}

.vlp-styled-table tbody td {
  padding: 10px;
  text-align: left;
  border: none;
}

/* Layout-Only Tables */
.layout-only {
  border: none;
  background: none;
  box-shadow: none;
  border-collapse: separate;
  border-spacing: 2px; 
}

.vlp-layout-only tr {
  background: none !important;
}

.vlp-layout-only td,
.vlp-layout-only th {
  background: none !important;
  border: none !important;
  padding: 0.5rem; 
}

/* Remove hover effects */
.vlp-layout-only tr:hover {
  background: none !important;
  color: inherit !important;
}

/* Enable a specific class for no hover only */
.no-hover:hover,
.no-hover:hover td {
  background-color: inherit !important;
  color: inherit !important;
}

/* 7. Progress Bar Elements */

/* Progress Container Styles */
.progress-container {
  width: 100%;
  background-color: #f2f2f2; /* Light gray background */
  border: 2px solid #0066ff; /* Blue border */
  border-radius: 10px; /* Rounded corners */
  overflow: hidden; /* Ensure content stays inside the border */
  height: 20px; /* Match the progress bar height */
}

/* Progress Bar Styles */
.progress-bar {
  height: 100%; /* Full height of the container */
  background-color: #4caf50; /* Green for progress */
  color: #ffffff; /* White text */
  text-align: center; /* Center-align text */
  line-height: 20px; /* Vertically center text */
  font-size: 0.9rem; /* Slightly smaller text */
  transition: width 0.3s ease; /* Smooth transition when progress changes */
}

/* SLIDER Elements */
/* Slider Container */
.slider-container {
  position: relative;
  margin-bottom: 20px;
}

/* Slider Input */
.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 5px;
  outline: none;
  background: linear-gradient(to right, rgb(216, 44, 207) 50%, rgb(224, 224, 224) 50%);
  transition: background 0.3s ease;
}

/* Slider Thumb */
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgb(216, 44, 207);
  cursor: pointer;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
}

.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgb(216, 44, 207);
  cursor: pointer;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
}

/* Status Label */
.status-label {
  text-align: center;
  position: absolute;
  width: 100%;
  top: -30px;
  font-size: 0.52em;
}

/* Low and High Text */
.low-text,
.high-text {
  font-size: 0.8em;
}