* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Light mode (default) */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    padding: 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark mode */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

.container {
    max-width: 99%;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 10px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body.dark-mode .container {
    background-color: #1e1e1e;
    color: #e0e0e0;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

h1 {
    margin: 0;
    color: #2c3e50;
    transition: color 0.3s ease;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3 {
    color: #e0e0e0;
}

.theme-toggle {
    background-color: #007bff;
    color: white;
    padding: 8px 12px;
    font-size: 14px;
    margin: 0;
}

h2, h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.upload-section {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

body.dark-mode .upload-section {
    border-color: #444;
    background-color: #252525;
}

.save-indicator {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

body.dark-mode .save-indicator {
    color: #aaa;
}

.session-info {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 5px;
    border: 1px solid #ddd;
    text-align: center;
}

body.dark-mode .session-info {
    background-color: #333;
    border-color: #555;
}

.session-info p {
    margin-bottom: 10px;
}

.session-info button {
    margin: 5px;
    padding: 8px 15px;
}

input[type="file"] {
    margin-top: 10px;
}

.hidden {
    display: none;
}

.progress-bar {
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

body.dark-mode .progress-bar {
    background-color: #333;
}

#progress-fill {
    height: 100%;
    background-color: #4CAF50;
    width: 0%;
    transition: width 0.3s ease;
}

#progress-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
    line-height: 20px;
    font-size: 14px;
    color: #333;
    transition: color 0.3s ease;
}

body.dark-mode #progress-text {
    color: #e0e0e0;
}

.review-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    width: 100%;
}

.content-container {
    display: flex;
    width: 100%;
    margin-bottom: 20px;
    justify-content: space-between; /* Ensure panels use all available space */
    flex-wrap: wrap; /* Allow containers to wrap if needed */
}

.html-view, .preview {
    flex: 1;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    min-height: 400px;
    width: 49%; /* Fixed width to use maximum space */
}

/* Preview panel styles */
.preview {
    background-color: white;
    margin-left: 10px;
    transition: background-color 0.3s ease;
}

body.dark-mode .preview {
    background-color: #252525;
}

/* Light mode (default) */
#raw-html {
    white-space: pre-wrap;
    word-wrap: break-word;
    background-color: #f8f8f8;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
}

/* Dark mode */
body.dark-mode #raw-html {
    background-color: #1e1e1e;
    color: #d4d4d4;
    border: 1px solid #333;
}

/* Light mode syntax highlighting */
#raw-html .link-highlight {
    color: #0066cc;
    font-weight: bold;
}

#raw-html .tag {
    color: #e83e8c;
    font-weight: bold;
}

#raw-html .attr-name {
    color: #6f42c1;
}

#raw-html .attr-value {
    color: #28a745;
}

#raw-html .comment {
    color: #6c757d;
    font-style: italic;
}

/* Dark mode syntax highlighting */
body.dark-mode #raw-html .link-highlight {
    color: #569cd6;
    font-weight: bold;
}

body.dark-mode #raw-html .tag {
    color: #f92672;
    font-weight: bold;
}

body.dark-mode #raw-html .attr-name {
    color: #a6e22e;
}

body.dark-mode #raw-html .attr-value {
    color: #e6db74;
}

body.dark-mode #raw-html .comment {
    color: #75715e;
    font-style: italic;
}

#html-preview {
    min-height: 300px;
    border: 1px solid #eee;
    padding: 10px;
}

.actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 50px; /* Increased spacing between buttons */
    padding: 15px 0;
    margin-bottom: 15px;
    width: 100%;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.approve, .disapprove {
    background-color: #4CAF50;
    color: white;
    width: 200px; /* Fixed width for both buttons */
    text-align: center;
}

.approve:hover {
    background-color: #45a049;
}

.disapprove {
    background-color: #f44336;
}

.disapprove:hover {
    background-color: #da3c30;
}

#disapprove-notes {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    display: none;
    background-color: white;
    color: #333;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body.dark-mode #disapprove-notes {
    background-color: #333;
    color: #e0e0e0;
    border-color: #555;
}

.export {
    background-color: #2196F3;
    color: white;
    margin-bottom: 20px;
}

.export:hover {
    background-color: #0b7dda;
}

#results-table-container {
    overflow-x: auto;
}

#results-table {
    width: 100%;
    border-collapse: collapse;
}

#results-table th, 
#results-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode #results-table th,
body.dark-mode #results-table td {
    border-color: #555;
    color: #e0e0e0;
}

#results-table th {
    background-color: #f2f2f2;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode #results-table th {
    background-color: #333;
    color: #e0e0e0;
}

#results-table tr:nth-child(even) {
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
}

body.dark-mode #results-table tr:nth-child(even) {
    background-color: #2a2a2a;
}

.status-approved {
    color: #4CAF50;
    font-weight: bold;
}

.status-disapproved {
    color: #f44336;
    font-weight: bold;
}