:root {
         --bg: #0f172a;
         --card: #111827;
         --text: #e5e7eb;
         --muted: #9ca3af;
         --accent: #38bdf8;
         --border: #1f2937;
         }
         * { box-sizing: border-box; }
         body {
         margin: 0;
         font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
         background: var(--bg);
         color: var(--text);
         line-height: 1.6;
         }
	/* --- Navbar & Navigation --- */
    	.navbar { 
         background-color: #0b1220 !important; 
         border-bottom: 1px solid var(--border); 
    	}
         .navbar-brand { font-size: 1.2rem; }
    	.nav-link { 
        color: var(--muted) !important; 
        font-weight: 500; 
        transition: color 0.2s;
    	}
    	.nav-link.active, .nav-link:hover { 
        color: var(--accent) !important; 
    	}
         header {
         text-align: center;
         padding: 3rem 1rem;
         border-bottom: 1px solid var(--border);
         }
         header h1 {
         font-size: 2.4rem;
         margin-bottom: .5rem;
         }
         header p {
         color: var(--muted);
         max-width: 720px;
         margin: auto;
         }
        
         .section {
         margin-bottom: 3rem;
         }
         .section h2 {
         font-size: 1.6rem;
         border-left: 4px solid var(--accent);
         padding-left: .75rem;
         margin-bottom: 1.2rem;
         }
         .tool-grid {
         display: grid;
         grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
         gap: 1rem;
         }
         /* FIX: Ensure the container is relative for the stretched link to work */
         .tool {
         background: var(--card);
         border: 1px solid var(--border);
         border-radius: 8px;
         padding: 1.5rem;
         transition: transform .15s ease, border-color .15s ease, background .15s ease;
         position: relative;
         cursor: pointer;
         }
         .tool:hover {
         transform: translateY(-3px);
         border-color: var(--accent);
         background: #1e293b;
         }
         .tool a {
         color: var(--accent);
         font-weight: 600;
         text-decoration: none;
         }
         /* FIX: This makes the entire card clickable */
         .tool a::after {
         content: "";
         position: absolute;
         top: 0;
         left: 0;
         right: 0;
         bottom: 0;
         z-index: 1;
         }
         .tool p {
         font-size: .9rem;
         color: var(--muted);
         margin-top: .4rem;
         }
         footer {
         border-top: 1px solid var(--border);
         text-align: center;
         padding: 1.5rem;
         color: var(--muted);
         font-size: .85rem;
         }
         .navbar {
         background-color: #0b1220 !important;
         }
         .nav-link {
         color: #e5e7eb !important;
         }
         .nav-link:hover {
         color: #38bdf8 !important;
         }
         .navbar-brand {
         font-size: 1.2rem;
         }
/* --- AdSense Placeholders (Critical for monetization) --- */
.ad-slot {
  background: var(--ad-bg);
  border: 1px dashed var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem auto;
  border-radius: 8px;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}
.ad-banner { width: 100%; height: 90px; max-width: 728px; }
.ad-square { width: 100%; height: 250px; }

/* FAQ Dropdown Styling */
        .faq-item {
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: 10px;
            margin-bottom: 1rem;
            overflow: hidden;
            transition: border-color 0.3s ease;
        }
        .faq-item:hover { border-color: var(--accent); }
        
        summary {
            padding: 1.25rem;
            font-weight: 600;
            color: #fff;
            cursor: pointer;
            list-style: none;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        summary::after {
            content: "+";
            color: var(--accent);
            font-size: 1.5rem;
            transition: transform 0.3s ease;
        }
        details[open] summary::after {
            transform: rotate(45deg);
        }
        .faq-answer {
            padding: 0 1.25rem 1.25rem;
            color: var(--muted);
            line-height: 1.7;
            border-top: 1px solid rgba(255,255,255,0.05);
            padding-top: 1rem;
        }

/* --- Footer --- */
footer {
  background: #020617;
  border-top: 1px solid var(--border);
  padding: 3rem 1rem;
  margin-top: 4rem;
  text-align: center;
  color: var(--text-muted);
}
footer a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 10px;
}
footer a:hover { color: var(--accent); }


  
html{
    margin: 0;
    padding: 0;
    height: 100%;
    /* Prevents margin collapse issues */
    display: flex;
    flex-direction: column;
}

/* --- Main Content Alignment (Tool Pages) --- */
main {
  flex: 1 0 auto;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
  /* This ensures children default to left alignment */
  text-align: left; 
}

footer {
    margin-bottom: 0 !important;
    padding-bottom: 3rem; /* Adjust padding instead of margins */
}
/* Add this to the end of assets/css/style.css */
textarea { 
    width: 100%; 
    height: 200px; 
    background: var(--card); 
    color: #fff; 
    border: 1px solid var(--border); 
    padding: 15px; 
    border-radius: 8px; 
    font-family: monospace; 
    margin-bottom: 20px; 
    resize: vertical; 
}
.controls { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
button { padding: 12px 24px; cursor: pointer; background: var(--accent); border: none; border-radius: 6px; font-weight: bold; color: #000; }
button.secondary { background: #4b5563; color: white; }




/* --- Tool Specific UI (Textareas, Buttons, Stats) --- */

/* Textareas for Input/Output */
textarea { 
    width: 100%; 
    height: 200px; 
    background: var(--card); 
    color: #fff; 
    border: 1px solid var(--border); 
    padding: 15px; 
    border-radius: 8px; 
    font-family: monospace; 
    margin-bottom: 20px; 
    resize: vertical; 
    outline: none;
}

textarea:focus {
    border-color: var(--accent);
}

/* Control Buttons */
.controls { 
    display: flex; 
    gap: 10px; 
    margin-bottom: 20px; 
    flex-wrap: wrap; 
}

button { 
    padding: 12px 24px; 
    cursor: pointer; 
    background: var(--accent); 
    border: none; 
    border-radius: 6px; 
    font-weight: bold; 
    color: #0f172a; /* Dark text for contrast on light blue */
    transition: opacity 0.2s;
}

button:hover {
    opacity: 0.9;
}

button.secondary { 
    background: #4b5563; 
    color: white; 
}

/* Stats Bar */
.stats { 
    padding: 12px; 
    background: var(--card); 
    border: 1px solid var(--border); 
    border-radius: 6px; 
    font-size: 0.85rem; 
    color: var(--muted); 
    margin-top: 10px; 
}

/* SEO Content Box */
.seo-box { 
    margin-top: 40px; 
    padding-top: 20px; 
    border-top: 1px solid var(--border); 
    color: var(--muted); 
}

.seo-box h2 {
    color: var(--text);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* Tool Page Titles - Forced Left */
main h1 { 
    color: var(--accent); 
    margin-top: 1rem;
    text-align: left !important;
}

/* --- Responsive Design & Mobile Fixes --- */

/* For Tablets and smaller (992px) */
@media (max-width: 992px) {
    main {
        padding: 1.5rem 1rem;
    }
}




/* Styling for the form container and controls */
.contact-form { 
    background: var(--card); 
    border: 1px solid var(--border); 
    padding: 2rem; 
    border-radius: 10px; 
    margin-top: 2rem; 
}

.form-control { 
    background: #0f172a; 
    border: 1px solid var(--border); 
    color: #fff; 
    margin-bottom: 1rem; 
}

/* Specific styling to make placeholder text light blue */
.form-control::placeholder {
    color: #a5f3fc; /* Light blue color */
    opacity: 0.8;   /* Ensures visibility against the dark background */
}

/* Support for older browsers */
.form-control::-webkit-input-placeholder { color: #a5f3fc; }
.form-control::-ms-input-placeholder { color: #a5f3fc; }

.form-control:focus { 
    background: #1e293b; 
    border-color: var(--accent); 
    color: #fff; 
    box-shadow: none; 
}