/* public/css/style.css */
:root {
    --primary: #068deb;
    --primary-dark: #0570bd;
    --primary-light: #3ba5f5;
    --primary-lighter: #e6f3fe;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f5f5f5;
}

.header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-section img {
    width: 40px;
    height: 40px;
}

.logo-section h1 {
    color: var(--primary);
    margin: 0;
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.main-content {
    flex: 1;
    padding: 2rem;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    box-sizing: border-box;
}

.container {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.screenshot-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap; /* Added for better mobile responsiveness */
}

input[type="text"] {
    flex: 1 1 300px; /* grow 1, shrink 1, basis 300px */
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s;
    min-width: 0; /* Prevents input from overflowing */
}

input[type="text"]:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-lighter);
}

.agent-select {
    flex: 0 0 auto;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 200px;
}

.agent-select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-lighter);
}

button {
    flex: 0 0 auto; /* don't grow or shrink, size to content */
    padding: 0.75rem 1.5rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s;
    white-space: nowrap; /* Prevents button text from wrapping */
}

button:hover {
    background-color: var(--primary-dark);
}

button:disabled {
    background-color: #ccc;
}

.result-container {
    text-align: center;
    margin-top: 1.5rem;
}

.view-link {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.view-link:hover {
    background-color: var(--primary-dark);
}

.error {
    color: #dc3545;
    background-color: #ffe6e6;
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 1rem;
}

.success {
    color: #28a745;
    background-color: #e6ffe6;
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 1rem;
}

.footer {
    background-color: white;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer img {
    height: 40px;
}

.footer-text {
    color: #666;
}

.screenshot-view {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.screenshot-info {
    background-color: white;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.screenshot-image {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.screenshot-image img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.back-link {
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-link:hover {
    text-decoration: underline;
}