.status-badge {
    font-size: 0.9em;
    padding: 0.3em 0.6em;
}
.status-queued { background-color: #f0f0f0; color: #333; }
.status-running { background-color: #cce5ff; color: #004085; }
.status-completed { background-color: #d4edda; color: #155724; }
.status-failed { background-color: #f8d7da; color: #721c24; }

.log-container {
    max-height: 300px;
    overflow-y: auto;
    background-color: #f8f9fa;
    font-family: monospace;
    font-size: 0.9em;
    padding: 10px;
    border-radius: 5px;
}

/* Larger log container for run_details page */
.run-details .log-container {
    max-height: 500px;
}

.log-item {
    margin-bottom: 5px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 5px;
}

.log-info { color: #0c5460; }
.log-warning { color: #856404; }
.log-error { color: #721c24; }

.run-card {
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.form-card {
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.tabs-container {
    margin-top: 20px;
}

.tab-content {
    border: 1px solid #dee2e6;
    border-top: none;
    padding: 20px;
    border-radius: 0 0 5px 5px;
}

.nav-tabs .nav-link {
    border-radius: 5px 5px 0 0;
}

.table-responsive {
    max-height: 600px;
    overflow-y: auto;
}

.timestamp {
    font-size: 0.85em;
    color: #6c757d;
}

/* Additional styles for run_details page */
.metrics-card {
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.tab-metrics-table {
    font-size: 0.9em;
}

/* Login Page Styles */
.login-page {
    background: linear-gradient(135deg, #3e5697 0%, #6788cd 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    padding: 30px;
    width: 400px;
    max-width: 100%;
    text-align: center;
}

.login-heading {
    margin-bottom: 25px;
}

.login-heading h2 {
    color: #3e5697;
    font-weight: 700;
    margin-bottom: 10px;
}

.login-form {
    text-align: left;
    margin: 20px 0;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    font-weight: 600;
    color: #555;
}

.login-form .form-control {
    height: 45px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.login-form .btn-primary {
    background-color: #3e5697;
    border-color: #3e5697;
    font-weight: 600;
    padding: 10px 20px;
    height: 45px;
    transition: all 0.3s ease;
}

.login-form .btn-primary:hover {
    background-color: #354a86;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.login-info {
    color: #777;
    font-size: 14px;
    margin-top: 20px;
}

.login-info a {
    color: #3e5697;
    font-weight: 600;
    text-decoration: none;
}

.login-info a:hover {
    text-decoration: underline;
}

.flash-messages {
    margin-bottom: 20px;
}

.flash-messages .alert {
    margin-bottom: 10px;
    text-align: left;
}

body.login-page {
    padding: 0;
    margin: 0;
    min-height: 100vh;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 90%;
    max-width: 450px;
    padding: 40px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    margin: 40px auto;
}

.login-container:hover {
    box-shadow: 0 18px 35px rgba(50, 50, 93, 0.2), 0 8px 15px rgba(0, 0, 0, 0.1);
}

.login-heading {
    text-align: center;
    margin-bottom: 30px;
}

.login-heading h2 {
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
}

.login-heading p {
    font-size: 1rem;
    color: #6c757d;
}

.btn-google {
    background-color: #4285F4;
    color: white;
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-top: 25px;
    border-radius: 4px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-google:hover {
    background-color: #3367D6;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.btn-google i {
    margin-right: 10px;
    font-size: 18px;
}

.logo {
    max-width: 180px;
    margin: 0 auto 25px;
    display: block;
}

.login-info {
    text-align: center;
    margin-top: 30px;
    color: #6c757d;
    font-size: 0.9rem;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

/* Navbar Styles */
.navbar-user {
    display: flex;
    align-items: center;
}

.navbar-user .fa-user {
    margin-right: 5px;
}

/* Custom navbar styling */
.navbar-custom {
    background-color: #343a40;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
