/* At the very top of style.css */
:root {
    /* Light Mode (Default) */
    --bg-color: #f4f7f9;
    --text-color: #333;
    --container-bg: #ffffff;
    --h1-color: #2c3e50;
    --h2-color: #7f8c8d;
    --accent-color: #3498db;
    --border-color: #bdc3c7;
    --placeholder-color: #7f8c8d;
}

body.dark-mode {
    /* Dark Mode Palette */
    --bg-color: #2c3e50;
    --text-color: #ecf0f1;
    --container-bg: #34495e;
    --h1-color: #ffffff;
    --h2-color: #bdc3c7;
    --accent-color: #5dade2;
    --border-color: #566573;
    --placeholder-color: #95a5a6;
}
/* Basic reset and font styling */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

/* Main container for our app */
.container {
    width: 90%;
    max-width: 600px;
    text-align: center;
}

h1 {
    color: var(--h1-color);
    margin-bottom: 2rem;
}

/* Flex container for the counter boxes */
.counters {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
}

.counter-box {
    background-color: var(--bg-color);
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    width: 40%;
}

h2 {
    font-size: 1rem;
    color: var(--h2-color);
    margin-top: 0;
}

/* Styling for the count numbers */
.counter-box span {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

/* The text input area */
textarea {
    width: 100%;
    height: 250px;
    padding: 1rem;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical; /* Allows user to resize height */
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}

textarea:focus {
    outline: none;
    border-color: var(--border-color);
}

/* Add this new CSS to your style.css file */

.title-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem; /* Space between title and switch */
    width: 100%;
    margin-bottom: 2rem; /* The margin that was on the h1 */
}


/* The switch - the box around the slider */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

/* Hide the default HTML checkbox */
.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--accent-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}
