body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.logout-btn {
    background-color: #dc3545;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.logout-btn:hover {
    background-color: #c82333;
}

.login-form {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.upload-section {
    margin-bottom: 30px;
}

.unified-upload {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.file-inputs {
    display: grid;
    gap: 20px;
    margin-bottom: 25px;
}

.file-input-group {
    background-color: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.file-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.file-status {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.file-status.selected {
    color: #28a745;
    font-weight: bold;
}

.upload-controls {
    text-align: center;
}

.progress-container {
    margin-top: 15px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background-color: #28a745;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-weight: bold;
    color: #333;
}

.process-section {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.process-section h3 {
    margin-top: 0;
    color: #155724;
}

.process-btn {
    background-color: #28a745;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 24px;
    margin-top: 15px;
}

.process-btn:hover {
    background-color: #218838;
}

.session-info {
    background-color: #e9ecef;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.session-info h3 {
    margin-top: 0;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="file"], input[type="text"], input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

button:hover {
    background-color: #0056b3;
}

button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.send-btn {
    background-color: #28a745;
}

.send-btn:hover {
    background-color: #218838;
}

.processing-section {
    margin: 30px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.summary {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.summary p {
    background-color: white;
    padding: 10px;
    border-radius: 4px;
    margin: 0;
    border-left: 4px solid #007bff;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: white;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

tr.ready {
    background-color: #d4edda;
}

tr.issue {
    background-color: #f8d7da;
}

.status-ready {
    color: #28a745;
    font-weight: bold;
}

.status-issue {
    color: #dc3545;
    font-weight: bold;
}

.status-success {
    color: #28a745;
    font-weight: bold;
}

.status-error {
    color: #dc3545;
    font-weight: bold;
}

.flashes {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.flashes li {
    background-color: #d1ecf1;
    color: #0c5460;
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 4px;
    border-left: 4px solid #bee5eb;
}

.logs-section, .results-section {
    margin: 30px 0;
}

h1, h2, h3 {
    color: #333;
}

h1 {
    margin: 0;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.session-status {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.session-status h3 {
    margin-top: 0;
    color: #0c5460;
}

.preview-btn {
    background-color: #17a2b8;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    width: auto;
}

.preview-btn:hover {
    background-color: #138496;
}

.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: none;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-header {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

.modal-body {
    padding: 20px;
}

.email-details {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.email-details p {
    margin: 5px 0;
}

.email-content {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    background-color: white;
}

.email-content h4 {
    margin-top: 0;
    color: #495057;
}

.modal-footer {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 8px 8px;
    text-align: right;
}

.modal-footer button {
    width: auto;
    padding: 8px 16px;
}

.reprocess-controls {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.reprocess-btn {
    background-color: #ffc107;
    color: #212529;
    font-weight: bold;
    width: auto;
    padding: 10px 20px;
}

.reprocess-btn:hover {
    background-color: #e0a800;
    color: #212529;
}

.new-session-btn {
    background-color: #6c757d;
    color: white;
    width: auto;
    padding: 10px 20px;
}

.new-session-btn:hover {
    background-color: #5a6268;
}