/* style.css (Place this file in public_html/css/) */

/* ================================================================================
CRITICAL PERFORMANCE NOTE:
To achieve 90+ Google PageSpeed score, the Tailwind CSS CDN was removed from index.html.

You MUST PASTE THE ENTIRE MINIFIED TAILWIND CSS LIBRARY 
CODE in the section below (START OF TAILWIND CORE). 
================================================================================
*/

/* -------------------------------------------------------------------------- */
/* 1. START OF TAILWIND CORE (PASTE ALL MINIFIED TAILWIND CODE HERE)          */
/* -------------------------------------------------------------------------- */

/* PASTE FULL MINIFIED TAILWIND CSS HERE (Approx. 120-130 KB of code) */

/* -------------------------------------------------------------------------- */
/* 2. GLOBAL SETUP AND TYPOGRAPHY                                             */
/* -------------------------------------------------------------------------- */

body {
    /* Uses Inter font or system default sans-serif */
    font-family: 'Inter', sans-serif;
    /* Smooth color transition for dark mode */
    transition: background-color 0.5s ease;
}


/* -------------------------------------------------------------------------- */
/* 3. CUSTOM HELPER CLASSES (Manually defined styles)                         */
/* -------------------------------------------------------------------------- */

/* Styling for result log area (Used for PRE tag) */
.log-style {
    background-color: #1f2937; /* Dark background for log */
    color: #f3f4f6; /* Light text */
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem; /* text-sm */
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 400px;
    overflow-y: auto;
    
    /* Custom scrollbar for professional look */
    scrollbar-width: thin;
    scrollbar-color: #2563eb #1f2937; 
}

/* Custom scrollbar for Webkit browsers */
.log-style::-webkit-scrollbar {
    width: 8px;
}
.log-style::-webkit-scrollbar-thumb {
    background-color: #2563eb; /* Blue-600 */
    border-radius: 4px;
}
.log-style::-webkit-scrollbar-track {
    background: #111827; 
}

/* Content Block Styling for SEO/Guides section */
.content-block {
    background-color: #ffffff; 
    padding: 1.5rem; 
    border-radius: 0.75rem; 
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); 
    border: 1px solid #e5e7eb; 
}
.dark .content-block {
    background-color: #1f2937; 
    border-color: #374151; 
}

/* --- Start of User Provided Helper Styles (Ensures consistency) --- */

/* Styling for form section headers */
.section-header {
    color: #1f2937; 
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}
.dark .section-header {
    color: #f3f4f6; 
    border-bottom-color: #374151; 
}

/* Style for input labels - Defined in <style> block too, for FCP */
.label-style {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151; 
    margin-bottom: 0.25rem;
}
.dark .label-style {
    color: #d1d5db; 
}


/* Base style for all input fields - Defined in <style> block too, for FCP */
.input-style {
    display: block;
    width: 100%;
    border: 1px solid #d1d5db; 
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    padding: 0.75rem;
    background-color: #ffffff;
    color: #1f2937; 
    transition: all 0.2s ease-in-out;
}
.dark .input-style {
    border-color: #4b5563; 
    background-color: #374151; 
    color: #e5e7eb; 
}
.input-style:focus {
    border-color: #2563eb; 
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2); 
}

/* Style for the Authentication Checkbox */
.auth-checkbox {
    height: 1rem;
    width: 1rem;
    color: #2563eb; 
    border-color: #d1d5db;
    border-radius: 0.25rem;
    background-color: #ffffff;
}
.dark .auth-checkbox {
    border-color: #4b5563;
    background-color: #4b5563;
}


/* Header Navigation Links (Desktop) - Defined in <style> block too, for FCP */
.nav-link {
    color: #4b5563; 
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    transition: color 0.2s, background-color 0.2s;
}

.nav-link:hover {
    color: #1d4ed8; 
    background-color: #eff6ff; 
}

.dark .nav-link {
    color: #d1d5db; 
}

.dark .nav-link:hover {
    color: #93c5fd; 
    background-color: #374151; 
}

.nav-active {
    color: #2563eb; 
    font-weight: 700;
    background-color: #dbeafe; 
}
.dark .nav-active {
    color: #93c5fd; 
    background-color: #374151; 
}


/* Mobile Navigation Links (Drawer) */
.mobile-nav-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    padding: 0.75rem 0;
    display: block;
    width: 100%;
    text-align: center;
    transition: color 0.2s, background-color 0.2s;
}

.mobile-nav-link:hover, .mobile-nav-active {
    color: #2563eb;
    background-color: #f3f4f6; 
}

.dark .mobile-nav-link {
    color: #f3f4f6;
}

.dark .mobile-nav-link:hover, .dark .mobile-nav-active {
    color: #93c5fd;
    background-color: #1f2937; 
}

/* Input Spinners Hide (For Port input) */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}
/* --- End of Custom Helper Styles --- */