/* Basic Reset & Body Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background: #333;
    color: #fff;
    padding-top: 20px;
    min-height: 70px;
    border-bottom: #0779e4 3px solid;
}

header a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
}

header ul {
    padding: 0;
    margin: 0;
    list-style: none;
    float: right;
}

header li {
    display: inline;
    padding: 0 20px 0 20px;
}

header .logo {
    float: left;
    font-size: 24px;
    font-weight: bold;
}

header nav {
    margin-top: 5px;
}

/* Main Content Area */
main.container {
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: #fff;
    min-height: 400px; /* Give some space */
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 5px;
}

/* Forms Styling */
.form-container, .dashboard-container {
    padding: 20px;
    background: #fff; /* Ensure white background for form areas if main is different */
}

.form-container h2, .dashboard-container h2, .dashboard-container h3 {
    color: #333;
    margin-top: 0;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* So padding doesn't add to width */
}

.form-group small {
    font-size: 0.8em;
    color: #666;
}

button.button, .button {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none; /* For <a> tags styled as buttons */
    font-size: 16px;
}

button.button:hover, .button:hover {
    background: #0056b3;
}

/* Messages */
.errors {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

.errors p {
    margin: 0;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
}

/* Dashboard Specifics */
.add-website-form {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.websites-list table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.websites-list th, .websites-list td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.websites-list th {
    background-color: #f0f0f0;
}

.websites-list textarea {
    width: 100%;
    min-height: 60px;
    border: 1px solid #ccc;
    padding: 5px;
    font-family: monospace;
    font-size: 0.9em;
    resize: vertical;
    box-sizing: border-box;
}


/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 20px; /* Pushes footer down */
}

footer p {
    margin: 0;
}

/* Responsive adjustments (very basic) */
@media (max-width: 768px) {
    header .logo,
    header ul {
        float: none;
        text-align: center;
    }

    header li {
        display: block;
        padding: 10px;
    }

    .container {
        width: 95%;
    }
}

/* Styles for ADA Checker (can be integrated with existing form styles or be specific) */
.ada-checker-section {
    background-color: #ffffff; /* White background for the checker section */
    padding: 20px 30px;
    margin-top: 20px;
    margin-bottom: 30px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    text-align: center;
}

.ada-checker-section h2 {
    margin-top: 0;
    color: #333;
}

.ada-checker-input-group {
    display: flex;
    gap: 10px;
    margin: 20px auto;
    max-width: 600px; /* Limit width of input group */
}

.ada-checker-input-group input[type="url"] {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

/* Re-using .button class from existing styles for the checker button */
/* .ada-checker-input-group button.button {} */

#complianceResult {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    min-height: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: left; /* Results text align left */
}

#complianceResult p {
    margin: 0;
    font-weight: bold;
}

/* Using existing .success and .error for result messages from script.js */
/* #complianceResult .success {} */
/* #complianceResult .error {} */

#installationLink { /* This was from original spec for the link */
    margin-top: 20px;
    font-size: 0.9em;
}
#installationLink a {
    color: #007bff;
    text-decoration: underline;
}

.cta-section {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
}
.cta-section h3{
    margin-top:0;
}

.widget-script-display {
    font-family: monospace;
    font-size: 0.9em; /* Slightly smaller can look cleaner for code blocks */
    background-color: #f0f0f0; /* Light grey background for differentiation */
    padding: 10px;
    border: 1px solid #ccc;
    width: 100%; /* Make it take full width of its container */
    box-sizing: border-box;
    resize: vertical; /* Allow vertical resize */
    margin-bottom: 5px; /* Space before the small helper text */
}

.installation-instructions {
    margin-top: 20px; /* Space above the instructions box */
    padding: 15px;
    background-color: #f9f9f9; /* Slightly different background */
    border: 1px solid #eee;
    border-radius: 4px;
    text-align: left;
}

.installation-instructions h4 {
    margin-top: 0;
    margin-bottom: 10px; /* Space after heading */
    color: #333;
}

.installation-instructions ol {
    padding-left: 25px; /* Standard list indentation */
    margin-bottom: 10px; /* Space after list */
}
.installation-instructions ol li {
    margin-bottom: 8px; /* Space between list items */
    line-height: 1.5;
}
.installation-instructions code {
    background-color: #e9e9e9;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
}
.installation-instructions p strong { /* For the "Note:" part */
    font-weight: bold;
}
