/* General Body & Layout */
body {
    background-color: #0A192F; /* Dark Navy Blue */
    color: #E2E8F0; /* Light Gray Text */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header Styling */
header {
    width: 100%;
    max-width: 800px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #1E3A8A; /* Lighter Navy */
}

header h1 {
    color: #FFFFFF;
}

header nav a {
    color: #60A5FA; /* Light Blue */
    text-decoration: none;
    margin-left: 1rem;
}

/* Main Content Area */
main {
    width: 100%;
    max-width: 800px;
    margin-top: 2rem;
}

/* Form Styling */
form {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

input[type="text"], input[type="email"], input[type="password"] {
    flex-grow: 1;
    padding: 0.75rem;
    font-size: 1rem;
    background-color: #1E293B; /* Darker Slate */
    border: 1px solid #334155; /* Slate */
    color: #E2E8F0;
    border-radius: 6px;
}

button, input[type="submit"] {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    background-color: #2563EB; /* Bright Blue */
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

button:hover, input[type="submit"]:hover {
    background-color: #3B82F6; /* Lighter Bright Blue */
}

/* Results List */
ul {
    list-style: none;
    padding: 0;
}

li {
    background-color: #1E293B;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    border-left: 3px solid #2563EB;
}

/* Flashed Messages (Errors/Success) */
.flashes p {
    color: #F87171; /* Light Red for errors */
    font-weight: bold;
}
/* --- NEW STYLES FOR COPY BUTTON --- */

/* Make the list item a flex container to align items */
li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Style for the new copy button */
.copy-btn {
    padding: 0.25rem 0.75rem; /* Smaller padding */
    font-size: 0.8rem; /* Smaller font */
    font-weight: normal;
    background-color: #334155; /* Slate */
    color: #E2E8F0;
    border: 1px solid #475569;
    cursor: pointer;
    border-radius: 4px;
}

.copy-btn:hover {
    background-color: #475569; /* Lighter Slate on hover */
}
/* --- NEW STYLES FOR EXPORT FEATURE --- */

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.export-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background-color: #059669; /* Green */
    border: none;
}

.export-btn:hover {
    background-color: #10B981; /* Lighter Green */
}
/* --- NEW STYLES FOR SEARCH HISTORY --- */

.dashboard-container {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Main content is twice as wide as the sidebar */
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin-top: 2rem;
}

.history-sidebar {
    background-color: #1E293B; /* Darker Slate */
    padding: 1.5rem;
    border-radius: 8px;
    height: fit-content; /* Make the sidebar only as tall as its content */
}

.history-sidebar h3 {
    margin-top: 0;
    border-bottom: 1px solid #334155;
    padding-bottom: 0.5rem;
}

.history-item {
    padding: 0;
    background-color: transparent;
    border: none;
    margin-bottom: 0.75rem;
}

.history-item a {
    color: #94A3B8; /* Lighter slate text */
    text-decoration: none;
    font-size: 0.9rem;
}

.history-item a:hover {
    color: #FFFFFF;
}