/* Race SMS Sender Styles */

/* Base Styles */
body {
    background-color: #f3f3f3;
    line-height: 1.6;
}

.container-fluid {
    padding: 1.5rem;
}

/* Header and Logo */
.site-logo {
    max-height: 80px;
    margin: 1rem auto;
    display: block;
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

/* Card Styles */
.card {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
}

.card-body {
    padding: 1.25rem;
}

#logs {
    height: 300px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.9rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
}

#logs .log-success {
    color: #28a745;
}

#logs .log-error {
    color: #dc3545;
}

#logs .log-warning {
    color: #ffc107;
}

#logs .log-info {
    color: #17a2b8;
}

#apiPreview {
    height: 200px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.9rem;
    white-space: pre;
    background: #fff;
    padding: 1rem;
}

#messagePreview {
    min-height: 100px;
    font-family: monospace;
    padding: 1rem;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
}

/* Form Controls and Accessibility */
.form-control {
    border-radius: 0.375rem;
}

.preview-container {
    min-height: 100px;
    max-height: 300px;
    overflow-y: auto;
    font-family: monospace;
    white-space: pre-wrap;
    font-size: 0.9em;
}

.message-preview {
    min-height: 100px;
    white-space: pre-wrap;
    font-family: monospace;
}

.logs-container {
    height: 200px;
    overflow-y: auto;
    font-family: monospace;
    white-space: pre-wrap;
    font-size: 0.9em;
}

.live-bibs-container {
    height: 400px;
    overflow-y: auto;
    font-family: monospace;
    padding: 0.5rem;
}

/* Button Styles */
.btn {
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
}

.btn-group {
    gap: 0.5rem;
}

/* Accessibility Focus Styles */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Form Labels */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Custom Field Styles */
.custom-field {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    border-radius: 4px;
    padding: 0.5rem;
}

.custom-field:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.custom-field .form-select {
    flex: 2;
}

.custom-field .form-control {
    flex: 1;
}

.custom-field .btn-remove {
    width: 40px;
    padding: 0.25rem;
}

.custom-field .btn-danger {
    opacity: 0.8;
}

.custom-field .btn-danger:hover {
    opacity: 1;
}

#liveBibs {
    height: 300px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 1rem;
}

#liveBibs div {
    padding: 0.25rem 0.5rem;
    border-bottom: 1px solid #eee;
}

#liveBibs div:last-child {
    border-bottom: none;
}

.btn-success {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

.btn-success:hover {
    background-color: #45a049;
    border-color: #45a049;
}

#fileName {
    background-color: #fff;
    cursor: default;
}

#runnersCount {
    padding: 0.25rem 0;
    font-size: 0.875rem;
}

footer {
    font-size: 0.9rem;
    border-top: 1px solid #dee2e6;
    margin-top: 2rem;
    padding: 1rem 0;
    color: #6c757d;
}

.live-bibs-container .bib-entry {
    padding: 0.5rem;
    margin: 0.25rem 0;
    border-radius: 4px;
    background-color: #f8f9fa;
    border-left: 3px solid #28a745;
}

.live-bibs-container .text-muted {
    text-align: center;
    padding: 1rem;
    color: #6c757d;
}
