/* Simple Litecoin Paper Wallet Generator - Main Stylesheet (Revised v2) */

:root {
  --primary-color: #345d9d; /* Litecoin blue */
  --secondary-color: #a9a9a9; /* Silver */
  --accent-color: #00aeff; /* Bright blue accent */
  --silver-light: #e6e8e8; /* Light silver for backgrounds */
  --silver-medium: #c0c0c0; /* Medium silver for borders and accents */
  --silver-dark: #8c8c8c; /* Darker silver for text and details */
  --background-color: #f9f9f9; /* Light background */
  --text-color: #333333; /* Dark text */
  --warning-color: #FFB83D; /* Orange for warnings */
  --success-color: #2ecc71; /* Green for success */
  --border-radius: 4px;
  --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  --silver-gradient: linear-gradient(135deg, #c0c0c0, #e6e8e9);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
/* Embed Open Sans locally */
@font-face {
  font-family: 'Open Sans';
  src: url('./fonts/OpenSans-Light.ttf') format('ttf'),
       url('./fonts/OpenSans-Bold.ttf') format('ttf2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Open Sans';
  src: url('./fonts/OpenSans-Light.ttf') format('ttf'),
       url('./fonts/OpenSans-Bold.ttf') format('ttf2');
  font-weight: 700;
  font-style: normal;
}

}
html {
  height: 100%; /* Ensure html takes full height */
}

body {
  font-family: Open Sans, Verdana, Tahoma, Geneva, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--silver-light);
  display: flex; /* Use flexbox for basic layout */
  flex-direction: column; /* Stack header, main, footer vertically */
  min-height: 100vh; /* Ensure body takes at least full viewport height */
}

/* --- Header Modifications Start --- */
header {
background: var(--silver-gradient);
padding: 0.8rem 1.5rem; /* Vertical padding */
box-shadow: var(--box-shadow);
border-bottom: 3px solid var(--primary-color);
flex-shrink: 0; /* Prevent header shrinking */
display: flex;        /* *** USE FLEXBOX ON HEADER *** */
align-items: center;  /* *** Vertically center items (logo area & text area) *** */
gap: 15px;            /* Space between logo area and text area */
}
.header-logo-area {
flex-shrink: 0; /* Prevent logo area from shrinking */
/* No specific width needed, size determined by image */
}
.header-logo-area img {
height: 100px; /* *** INCREASED LOGO SIZE *** (Adjust further if needed) */
/* Removes potential extra space below image =
display: block;  */
}
.header-text-area {
flex-grow: 3;     /* Allow text area to take remaining space */
text-align: center; /* *** Align text to the left within this container *** */
}
.header-text-area h1 {
font-size: 2rem; /* *** Slightly larger H1 *** */
line-height: 1.3;  /* Adjust line height for better vertical centering feel */
margin: 0; /* Remove default margins */
color: var(--primary-color);
text-shadow: 1px 1px 1px var(--silver-medium);
}

main {
  flex-grow: 1;
  width: 100%;
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1rem;
}

section {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--box-shadow);
  border-left: 4px solid var(--primary-color);
}

/* Style for potential h1 inside sections (if different from header) */
section h1 {
  color: var(--primary-color);
  font-size: 1.8rem;
  text-shadow: 1px 1px 1px var(--silver-medium);
  margin-bottom: 1rem;
}

h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  border-bottom: 2px solid var(--silver-medium);
  padding-bottom: 0.5rem;
}

h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.2rem;
  color: var(--silver-dark);
}

p {
  margin-bottom: 1rem;
}

.security-tips, .browser-compatibility-notice {
  background-color: var(--silver-light);
  border-left: 4px solid var(--primary-color);
  padding: 1rem;
  margin: 1.5rem 0;
}

.security-tips ul, .browser-compatibility-notice ul {
  margin-left: 1.5rem;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.primary-btn, .secondary-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s ease;
  text-align: center;
}

.primary-btn {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

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

.primary-btn:disabled {
  background-color: var(--silver-medium);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.secondary-btn {
  background: var(--silver-gradient);
  color: var(--primary-color);
  border: 1px solid var(--silver-medium);
}

.secondary-btn:hover {
  background: linear-gradient(135deg, #b0b0b0, #d6d8d9);
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.advanced-toggle {
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.advanced-toggle a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.advanced-toggle a:hover {
  text-decoration: underline;
}

#advanced-options {
  margin-top: 1rem;
  padding: 1rem;
  background-color: var(--silver-light);
  border-radius: var(--border-radius);
  border: 1px solid var(--silver-medium);
}

#bip38-password-container {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
  

.tooltip-trigger {
  color: var(--primary-color); /* Use theme blue for the trigger link */
  text-decoration: underline;
  cursor: pointer;
  font-weight: normal; /* Keep consistent with surrounding text */
}

.tooltip-trigger:hover {
  color: #2a4d8a; /* Darkened primary color (matches button hover) */
}

.tooltip-content {
  display: inline-block;
  margin-left: 10px;
  padding: 8px 12px; /* Slightly increased padding for better spacing */
  background-color: white; 
  border: 3px solid var(--primary-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  position: relative;
  z-index: 10;
  }

  .tooltip-content small {
    color: var(--text-color);
    line-height: 1.3;
    font-size: 0.85em;
  } 

input[type="text"], input[type="password"] {
  padding: 0.75rem;
  border: 1px solid var(--silver-medium);
  border-radius: var(--border-radius);
  width: 100%;
  font-size: 1rem;
  background-color: white;
  transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out, background-color 0.15s ease-out;
}

input[type="text"]:focus, input[type="password"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(52, 93, 157, 0.2);
}

.entropy-container {
  margin: 2rem 0;
}

#entropy-canvas {
  width: 100%;
  height: 150px;
  border: 1px solid var(--silver-medium);
  border-radius: var(--border-radius);
  margin: 1rem 0;
  background-color: white;
  cursor: crosshair;
}

#entropy-text.entropy-input-active {
border-color: var(--accent-color);
background-color: #FF9933; 
box-shadow: 0 0 0 6px rgba(0, 174, 239, 0.3);
}

.progress-container {
  height: 8px;
  background-color: var(--silver-light);
  border-radius: 5px;
  margin: 1rem 0;
  overflow: hidden;
  border: 3px solid var(--silver-medium);
}

#entropy-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  width: 0%;
  transition: width 0.3s ease;
}

/* Wallet Display Styles - REMOVED / COMMENTED OUT */
/* These styles likely conflict with wallet-design.css */
/*
.wallet-container { ... }
.qr-code { ... }
.address, .key { ... }
*/

footer {
  text-align: center;
  padding: 2rem;
  background: var(--silver-gradient);
  border-top: 3px solid var(--primary-color);
  font-size: 0.9rem;
  color: var(--silver-dark);
  flex-shrink: 0;
}

footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
  text-decoration: underline;
}

footer ul {
  list-style-type: none;
  padding: 0;
  margin: 1rem auto 0;
  max-width: 600px;
  text-align: left;
  display: inline-block;
}

footer li {
  margin-bottom: 0.25rem;
}

/* Media Queries */
@media (min-width: 768px) {
 /* Add tablet/desktop specific adjustments if needed */
}