:root {
    --primary-color: #2563eb;
    --bg-color: #f8fafc;
    --text-color: #1e293b;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

h1 {
    font-size: 3rem;
    text-align: center;
    color: var(--primary-color);
}

.search-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    line-height: 1.5;
}

button {
    align-self: flex-end;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
}

.log-bubble {
    position: fixed;
    padding: 0.5rem 1rem;
    background: rgba(0,0,0,0.8);
    color: white;
    border-radius: 1rem;
    animation: fadeOut 3s ease-in forwards;
    z-index: 100;
}

@keyframes fadeOut {
    0% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-20px); }
}

#logsContainer {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.back-link {
    color: var(--primary-color);
    text-decoration: none;
}

.content {
    line-height: 1.6;
    margin: 2rem 0;
}

.result-frame {
    width: 100%;
    min-height: 500px;
    border: none;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.progress-container {
    margin: 2rem 0;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-step {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.history-grid {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.history-grid tr:nth-child(even) {
    background-color: #f5f5f5;
}

.history-grid td {
    padding: 12px 16px;
}

.history-grid a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    width: 100%;
}

.history-grid a:hover {
    color: var(--primary-color);
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem;
    margin: 0 0.5rem;
}

nav a:hover {
    color: var(--primary-color);
}

nav i {
    font-size: 1.2rem;
}

.history-grid th {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 500;
}

.date-column {
    text-align: right;
    color: #64748b;
    font-size: 0.9rem;
    width: 150px;
}

.execution-time {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.action-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

#apiKeyInput {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

#searchButton {
    min-width: 100px;
}

header {
    padding: 1rem 2rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

header nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

header nav a {
    color: #6c757d;
    text-decoration: none;
    font-size: 1.2rem;
}

header nav a:hover {
    color: #212529;
} 