:root {
  --primary-color: #2e7d32; /* Green */
  --accent-color: #4caf50; /* Light Green */
  --bg-color: #f9f9f9;
  --text-color: #333;
  --white: #ffffff;
  --border-radius: 8px;
  --shadow: 0 4px 6px rgba(0,0,0,0.1);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Raleway', sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.6;
}

/* --- Header & Nav --- */
header {
  background-color: #000; /* Keeping your black header preference */
  color: var(--white);
  padding: 1rem;
  text-align: center;
}

header img {
  max-width: 250px; /* Reduced size for cleaner look */
  height: auto;
}

header p {
  margin: 0;
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 300;
  letter-spacing: 1px;
}

nav {
  background-color: var(--primary-color);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav li {
  margin: 0;
}

nav a {
  display: block;
  padding: 15px 25px;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  transition: background-color 0.3s;
}

nav a:hover, nav a.active {
  background-color: var(--accent-color);
}

/* --- Main Layout --- */
main {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Generic Section Styles */
.section-card {
  background: var(--white);
  padding: 30px;
  margin-bottom: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border-left: 5px solid var(--primary-color);
}

h2, h3, h4 {
  color: var(--primary-color);
  margin-top: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Products Grid (products.html) --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--white);
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  text-align: center;
  transition: transform 0.2s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.product-card ul {
  list-style: none;
  padding: 0;
}

.product-card li {
  padding: 5px 0;
  border-bottom: 1px solid #eee;
}

/* --- Interactive Section (index.html) --- */
.sample-sites-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.sample-site-link {
  padding: 8px 16px;
  background-color: #eee;
  color: var(--text-color);
  text-decoration: none;
  border-radius: 20px; /* Pill shape */
  font-weight: bold;
  transition: all 0.2s;
}

.sample-site-link:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.carousel-container {
  text-align: center;
  margin-top: 20px;
}

.carousel-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  max-height: 400px;
  object-fit: cover;
}

/* --- Contact Form --- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
}

.contact-form input, 
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}

.contact-form button {
  background-color: var(--primary-color);
  color: white;
  padding: 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
}

.contact-form button:hover {
  background-color: var(--accent-color);
}

/* --- Map --- */
.map-responsive {
  overflow: hidden;
  padding-bottom: 56.25%; /* Aspect ratio 16:9 */
  position: relative;
  height: 0;
  border-radius: var(--border-radius);
}

.map-responsive iframe {
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  position: absolute;
  border: 0;
}

/* --- Footer --- */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 20px;
  margin-top: auto;
}

:root {
  --primary: #2e7d32;
  --dark: #1b5e20;
  --light: #f5f5f5;
  --white: #ffffff;
  --text: #333;
}

body {
  font-family: 'Raleway', sans-serif;
  margin: 0;
  background-color: var(--light);
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
header {
  background: black;
  color: white;
  text-align: center;
  padding: 1rem;
}
header img { max-width: 250px; }

/* Navigation */
nav {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
nav a {
  display: block;
  padding: 15px 25px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}
nav a:hover, nav a.active { background: var(--dark); }

/* Layout */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  width: 100%;
  flex: 1;
}

/* SPA Logic: This class hides sections */
.hidden { display: none !important; }

.section-card {
  background: white;
  padding: 30px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

h3 { color: var(--primary); text-transform: uppercase; margin-top: 0; }

/* Product Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.card {
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

/* Carousel */
.carousel-area { text-align: center; margin-top: 20px; }
.carousel-img {
  max-width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
}
.filter-btn {
  padding: 8px 16px;
  margin: 5px;
  border: 1px solid #ccc;
  background: #eee;
  cursor: pointer;
  border-radius: 20px;
}
.filter-btn:hover { background: var(--primary); color: white; }

/* Map */
.map-container {
  height: 0;
  padding-bottom: 56.25%;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}
.map-container iframe {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%; border: 0;
}

/* Forms */
input, textarea { width: 100%; padding: 10px; margin-bottom: 10px; border: 1px solid #ccc; border-radius: 4px;}
button.submit { background: var(--primary); color: white; border: none; padding: 10px 20px; cursor: pointer; font-size: 1rem;}

footer { background: var(--primary); color: white; text-align: center; padding: 20px; margin-top: auto; }

:root { --primary: #2e7d32; --dark: #1b5e20; }
body { font-family: 'Segoe UI', sans-serif; margin: 0; 
  /* padding-bottom: 120px;  */
  background: #f4f4f4; }

.site-header { background: #000; color: #fff; padding: 15px; text-align: center; cursor: pointer; user-select: none; }
.hidden { display: none !important; }

/* Content Blocks */
.content-block { margin: 15px auto; background: white; transition: all 0.2s; position: relative; max-width: 1000px; }
.editable { border: 2px dashed #ff4444; min-height: 50px; cursor: text; outline: none; }
.drag-handle { position: absolute; top: -10px; right: -10px; background: #333; color: #fff; width: 25px; height: 25px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; pointer-events: none; }

/* Toolbar */
.dev-toolbar { position: fixed; bottom: 0; left: 0; width: 100%; background: #222; color: #fff; padding: 10px; border-top: 4px solid var(--primary); z-index: 999; }
.toolbar-header { text-align: center; font-weight: bold; margin-bottom: 5px; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; }
.toolbar-actions { display: flex; justify-content: center; gap: 10px; }
.toolbar-actions button { background: var(--primary); border: none; color: #fff; padding: 8px 15px; border-radius: 4px; cursor: pointer; font-size: 14px; display: flex; align-items: center; gap: 5px; }
.toolbar-actions button:hover { background: var(--dark); }

/* Mass Panel */
.mass-panel { background: #333; padding: 15px; margin-top: 10px; display: flex; justify-content: center; gap: 20px; }
.mass-panel label { display: flex; flex-direction: column; align-items: center; font-size: 12px; }


/* Modal */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 2000; display: flex; justify-content: center; align-items: center; }
.modal-content { background: #fff; padding: 25px; border-radius: 8px; width: 90%; max-width: 400px; max-height: 80vh; overflow-y: auto; }
#history-list { list-style: none; padding: 0; }
#history-list li { padding: 10px; border-bottom: 1px solid #eee; cursor: pointer; }
#history-list li:hover { background: #f0f0f0; }

@keyframes fadeIn { from { opacity: 0; transform: translate(-50%, -20px); } to { opacity: 1; transform: translate(-50%, 0); } }


/* Maintenance Screen */
.maintenance-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: #f4f4f4;
    z-index: 9999; /* On top of everything */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.maintenance-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    max-width: 400px;
    width: 90%;
    border-top: 5px solid var(--primary); /* Tweed Green */
}

.maintenance-icon {
    width: 80px;
    height: 80px;
    color: var(--primary);
    margin-bottom: 20px;
    animation: hammer 2s ease-in-out infinite;
}

.estimate-box {
    background: #e8f5e9; /* Light Green */
    color: #1b5e20;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 1.1rem;
}

.subtext { font-size: 0.9rem; color: #666; }

@keyframes hammer {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
}


.site-header { 
    background: #000000; /* Black Background */
    color: #fff; 
    padding: 20px 10px; 
    text-align: center; 
    cursor: pointer; 
    user-select: none; 
    border-bottom: 1px solid #333;
}

/* Logo Styling */
.header-logo {
    max-width: 100%;
    width: 350px; /* Adjusts size */
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Fallback Red Text Styling */
.site-header h1 {
    color: #ff0000; /* Red */
    margin: 0;
    /* White Outline Effect */
    text-shadow: 2px 0 #fff, -2px 0 #fff, 0 2px #fff, 0 -2px #fff,
                 1px 1px #fff, -1px -1px #fff, 1px -1px #fff, -1px 1px #fff;
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 2.5rem;
    font-family: 'Shadows Into Light', cursive, sans-serif; /* Optional: Matches your original font */
}




/* Navigation */
.main-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.nav-btn {
    background: transparent;
    border: 1px solid #444;
    color: #ccc;
    padding: 8px 20px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.2s;
}

.nav-btn:hover { background: #333; color: white; }

.nav-btn.active {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* Contact Modal specific styles */
.contact-modal {
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.contact-modal h3 { margin-top: 0; color: #2e7d32; }

.contact-modal input, .contact-modal textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    box-sizing: border-box;
}

.modal-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.modal-buttons button {
    flex: 1;
    padding: 12px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    font-weight: bold;
}

#close-email { background: #eee; color: #333; }
.submit-btn { background: #2e7d32; color: white; }

.filter-btn {
    display: inline-block;
    padding: 8px 16px;
    margin: 5px;
    background-color: #eee;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.filter-btn:hover {
    background-color: #2e7d32;
    color: #fff;
    border-color: #2e7d32;
}

/* Navigation Bar */
.main-nav {
    display: flex;
    justify-content: center;
    background-color: #f4f4f4; /* Light grey bar */
    border-bottom: 2px solid #ddd;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.nav-btn {
    flex: 1; /* Make buttons even width */
    max-width: 150px;
    background: transparent;
    border: none;
    color: #666;
    padding: 15px 0;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}

.nav-btn:hover {
    color: #2e7d32;
    background: #e8f5e9;
}

.nav-btn.active {
    color: #2e7d32; /* Tweed Green */
    border-bottom: 3px solid #2e7d32;
    background: white;
}

/* --- LOADING SCREEN --- */
.loading-overlay {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100vh;
    background: #ffffff;
    z-index: 5000; /* High z-index to cover everything */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease; /* Smooth fade out when done */
}

.loading-icon {
    width: 80px; 
    height: 80px;
    color: #2e7d32; /* Tweed Green */
    /* Pulse Animation */
    animation: pulse-fade 0.8s ease-in-out infinite alternate;
}

@keyframes pulse-fade {
    0% { 
        opacity: 0.4; 
        transform: scale(0.9);
    }
    100% { 
        opacity: 1; 
        transform: scale(1.1);
    }
}

/* Helper to hide it smoothly */
.fade-out {
    opacity: 0;
    pointer-events: none;
}

:root { --primary: #2e7d32; --dark: #1b5e20; }

body { 
    font-family: 'Segoe UI', sans-serif; 
    margin: 0; 
    /* Default padding is 0. JS will toggle this when Dev Mode is on */
    padding-bottom: 0; 
    background: #f4f4f4;
    min-height: 100vh;
    transition: padding-bottom 0.3s ease;
}

/* --- 1. FIX CONTACT PADDING ISSUE --- */
/* This removes the default gap at the top of <h3> inside your sections */
.content-block h3:first-child, 
.content-block h4:first-child {
    margin-top: 0;
}

/* --- 2. DEV MODE BODY ADJUSTMENT --- */
body.dev-active {
    padding-bottom: 120px !important; /* Make room for toolbar */
}

/* --- 3. ELEMENT TOOLBAR (New) --- */
.content-block { margin: 15px auto; background: white; transition: all 0.2s; position: relative; max-width: 1000px; }

.editable { 
    border: 2px dashed #ff4444; 
    cursor: text; 
    outline: none; 
}

/* The container for the mini icons */
.element-tools {
    position: absolute;
    top: -35px; /* Sit on top of the element */
    right: 0;
    background: #333;
    border-radius: 4px;
    display: flex;
    gap: 2px;
    padding: 2px;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.tool-btn {
    background: transparent;
    border: none;
    color: white;
    padding: 5px 8px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 3px;
}
.tool-btn:hover { background: #555; }

/* Tooltip colors */
.tool-pos { color: #4caf50; } /* Green */
.tool-size { color: #2196f3; } /* Blue */
.tool-scale { color: #ff9800; } /* Orange */
.tool-color { color: #e91e63; } /* Pink */

/* --- EXISTING STYLES (Keep these) --- */
.site-header { background: #000; color: #fff; padding: 20px 10px; text-align: center; cursor: pointer; user-select: none; border-bottom: 1px solid #333; }
.header-logo { max-width: 100%; width: 350px; height: auto; display: block; margin: 0 auto; }
.site-header h1 { color: #ff0000; margin: 0; text-shadow: 2px 0 #fff, -2px 0 #fff, 0 2px #fff, 0 -2px #fff, 1px 1px #fff, -1px -1px #fff, 1px -1px #fff, -1px 1px #fff; font-weight: 800; letter-spacing: 1px; font-size: 2.5rem; font-family: 'Shadows Into Light', cursive, sans-serif; }

/* Nav */
.main-nav { display: flex; justify-content: center; background-color: #f4f4f4; border-bottom: 2px solid #ddd; padding: 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.nav-btn { flex: 1; max-width: 150px; background: transparent; border: none; color: #666; padding: 15px 0; cursor: pointer; text-transform: uppercase; font-weight: 700; font-size: 0.9rem; transition: all 0.2s; border-bottom: 3px solid transparent; }
.nav-btn:hover { color: #2e7d32; background: #e8f5e9; }
.nav-btn.active { color: #2e7d32; border-bottom: 3px solid #2e7d32; background: white; }

/* Loading & Maintenance */
.loading-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: #ffffff; z-index: 5000; display: flex; justify-content: center; align-items: center; transition: opacity 0.5s ease; }
.loading-icon { width: 80px; height: 80px; color: #2e7d32; animation: pulse-fade 0.8s ease-in-out infinite alternate; }
@keyframes pulse-fade { 0% { opacity: 0.4; transform: scale(0.9); } 100% { opacity: 1; transform: scale(1.1); } }
.fade-out { opacity: 0; pointer-events: none; }

.maintenance-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: #f4f4f4; z-index: 9999; display: flex; justify-content: center; align-items: center; text-align: center; }
.maintenance-content { background: white; padding: 40px; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); max-width: 400px; width: 90%; border-top: 5px solid var(--primary); }
.maintenance-icon { width: 80px; height: 80px; color: var(--primary); margin-bottom: 20px; animation: hammer 2s ease-in-out infinite; }
@keyframes hammer { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(-15deg); } 75% { transform: rotate(15deg); } }
.estimate-box { background: #e8f5e9; color: #1b5e20; padding: 15px; border-radius: 8px; margin: 20px 0; font-size: 1.1rem; }
.subtext { font-size: 0.9rem; color: #666; }


/* Toolbar & Modals */
.dev-toolbar { position: fixed; bottom: 0; left: 0; width: 100%; background: #222; color: #fff; padding: 10px; border-top: 4px solid var(--primary); z-index: 999; }
.toolbar-header { text-align: center; font-weight: bold; margin-bottom: 5px; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; }
.toolbar-actions { display: flex; justify-content: center; gap: 10px; }
.toolbar-actions button { background: var(--primary); border: none; color: #fff; padding: 8px 15px; border-radius: 4px; cursor: pointer; font-size: 14px; display: flex; align-items: center; gap: 5px; }
.mass-panel { background: #333; padding: 15px; margin-top: 10px; display: flex; justify-content: center; gap: 20px; }
.mass-panel label { display: flex; flex-direction: column; align-items: center; font-size: 12px; }
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 2000; display: flex; justify-content: center; align-items: center; }
.modal-content { background: #fff; padding: 25px; border-radius: 8px; width: 90%; max-width: 400px; max-height: 80vh; overflow-y: auto; }
.hidden { display: none !important; }


/* Add this to your existing .tool-pos class */
.tool-pos { 
    color: #4caf50; 
    cursor: grab !important; /* Hand icon */
}

.tool-pos:active {
    cursor: grabbing !important; /* Closed hand when dragging */
}


/* When JS removes the 'hidden' class, this animation runs */
.toast:not(.hidden) {
    /* Duration: 4 seconds total. 
       Curve: Fast enter, smooth stop. */
    animation: slide-through 4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes slide-through {
    0% {
        transform: translateX(120vw); /* Start Right */
        opacity: 0;
    }
    10% {
        transform: translateX(-50%); /* Slide to Center */
        opacity: 1;
    }
    85% {
        transform: translateX(-50%); /* Wait in Center */
        opacity: 1;
    }
    100% {
        transform: translateX(-120vw); /* Exit Left */
        opacity: 0;
    }
}

/* --- TOAST NOTIFICATION --- */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    
    /* Deep Green with Red Border */
    background: #1b5e20;
    border: 3px solid #ff0000;
    color: #fff;
    font-weight: bold;
    
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    text-align: center;
    min-width: 300px;
    z-index: 6000;
    
    /* Start off-screen Right */
    transform: translateX(150vw); 
    opacity: 0;
    pointer-events: none; /* Click through when hidden */
}

/* The Animation */
.toast:not(.hidden) {
    pointer-events: auto;
    /* 4 Seconds Total: Enter, Wait, Exit */
    animation: slide-fly-through 4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes slide-fly-through {
    0% {
        transform: translateX(150vw); /* Far Right */
        opacity: 0;
    }
    10% {
        transform: translateX(-50%); /* Center Screen */
        opacity: 1;
    }
    85% {
        transform: translateX(-50%); /* Stay Center */
        opacity: 1;
    }
    100% {
        transform: translateX(-150vw); /* Fly out Left */
        opacity: 0;
    }
}

/* --- HEADER DIMMING --- */
/* When body has this class, dull the header */
body.toast-active .site-header,
body.toast-active .main-nav, 
body.toast-active #app-container {
    filter: brightness(0.4) blur(1px); /* Dull and slight blur */
    transition: filter 0.5s ease;
}

.site-header, .main-nav, #app-container {
    transition: filter 0.5s ease;
}

/* --- BOTTOM OF styles.css --- */

/* FORCE TOAST TO BE SMALLER & CENTERED */
.toast {
    width: auto !important;
    max-width: 90vw !important; /* Prevent edge touching on phones */
    white-space: normal !important; /* Wrap long text */
    left: 50% !important;
    bottom: 100px !important;
    transform: translateX(150vw); /* Ensure start position is off-screen */
}

/* Ensure animation centers it correctly */
@keyframes slide-fly-through {
    0% { transform: translateX(150vw); opacity: 0; }
    10% { transform: translateX(-50%); opacity: 1; } /* -50% centers it based on its own width */
    85% { transform: translateX(-50%); opacity: 1; }
    100% { transform: translateX(-150vw); opacity: 0; }
}


/* --- MY NOTES (Paper Style) --- */
.notepad-container {
    background: #fdf6e3; /* Creamy yellow paper color */
    padding: 20px;
    border: 1px solid #d6d0b8;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
    position: relative;
    border-radius: 2px;
}

/* The yellow header tape */
.notepad-tape {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 30px;
    background: rgba(255, 235, 59, 0.7);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transform: translateX(-50%) rotate(-2deg); /* Slightly wonky */
}

.notepad-title {
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    color: #8b7d6b;
    margin-top: 0;
    text-transform: uppercase;
    border-bottom: 2px solid #e0dccc;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.notepad-textarea {
    width: 100%;
    min-height: 200px;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    line-height: 1.8; /* Space for lines */
    color: #333;
    resize: vertical;
    
    /* Ruled Lines Effect */
    background-image: linear-gradient(#e0dccc 1px, transparent 1px);
    background-size: 100% 1.8em; /* Match line-height */
}

/* --- EMERGENCY ALERT STYLES --- */
.alert-box {
    background-color: #ff9800; /* Bright Orange */
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    margin-bottom: 20px;
    position: relative;
    border: 2px solid #f57c00;
    animation: slideDown 0.5s ease-out;
}

.alert-box h3 {
    margin-top: 0;
    color: #fff;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- DEV-ONLY QUICK DELETE BUTTON --- */
.quick-delete-btn {
    position: absolute;
    top: -15px;
    left: -15px; /* Top Left corner */
    background: red;
    color: white;
    border: 2px solid white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 200;
    transition: transform 0.2s;
}

.quick-delete-btn:hover {
    transform: scale(1.1);
    background: darkred;
}

.site-header { 
    background: #000; 
    color: #fff; 
    padding: 20px 10px; 
    text-align: center; 
    cursor: pointer; 
    
    /* PREVENTS TEXT HIGHLIGHTING */
    user-select: none; 
    -webkit-user-select: none;
    
    border-bottom: 1px solid #333;
}

/* PREVENTS NATIVE IMAGE DRAGGING (The Ghost Image) */
.site-header img {
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: none; /* Let clicks pass through to the div */
}

/* --- RICH TEXT EDITOR --- */
.editor-btn {
    background: white;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 5px 10px;
    cursor: pointer;
    color: #333;
    font-size: 0.9rem;
    transition: all 0.1s;
}

.editor-btn:hover {
    background: #e0e0e0;
}

.editor-btn:active {
    background: #ccc;
    transform: translateY(1px);
}

/* Style the visual editor to look like the real site */
#visual-editor h3 { color: #2e7d32; margin-top: 0; }
#visual-editor ul { padding-left: 20px; }
#visual-editor a { color: #2e7d32; text-decoration: underline; }