/* DiRueLei Web Application Styles */

body {
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.loading {
    text-align: center;
    color: #666;
}

.progress {
    width: 100%;
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-bar {
    height: 100%;
    background-color: #4caf50;
    width: 0%;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    font-size: 12px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.numbered-box {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.circle {
    width: 40px;
    height: 40px;
    background-color: #3366cc;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
}

.box-content {
    flex-grow: 1;
}

.box-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
}

.box-description {
    font-size: 12px;
    color: #666;
}

.btn {
    background-color: #1f6aa5;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.btn:hover {
    background-color: #155a8a;
}

.btn-secondary {
    background-color: transparent;
    color: #1f6aa5;
    border: 1px solid #888;
}

.btn-secondary:hover {
    background-color: #888;
    color: white;
}

.btn-link {
    background: none;
    border: none;
    color: #ef5350;
    cursor: pointer;
    font-size: 13px;
    padding: 5px 10px;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.btn-link:hover {
    color: #d32f2f;
    text-decoration: underline;
}

.btn-link-clear {
    margin-top: 10px;
}

.clear-icon {
    font-size: 14px;
    margin-right: 5px;
}

.hidden {
    display: none !important;
}

.file-input {
    margin: 10px 0;
}

input[type="number"] {
    height: 1.7em;
}

#offset-settings {
    margin-top: 15px;
    margin-left: 30px;
}

.scan-options {
    margin: 20px 0;
}

.checkbox-group {
    margin: 10px 0;
}

.qr-position-dropdowns {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    margin-left: 30px;
}

.qr-position-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qr-position-item label {
    white-space: nowrap;
}

.qr-position-item select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: inherit;
}

.button-group {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.qr-generation-settings {
    margin: 20px 0;
}

.setting-group {
    margin: 15px 0;
}

.setting-label {
    margin-bottom: 5px;
}

.student-list {
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    margin-top: 15px;
    margin-left: 30px;
}

.student-checkbox {
    display: block;
    margin: 2px 0;
    padding: 8px 10px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.student-checkbox:nth-child(odd) {
    background-color: #f8f9fa;
}

.student-checkbox:nth-child(even) {
    background-color: transparent;
}

.student-checkbox:hover {
    background-color: #e3f2fd !important;
}

.student-checkbox input[type="checkbox"] {
    margin-right: 10px;
}

#student-checkboxes {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #eee;
    padding: 8px;
    margin-top: 10px;
}

/* Status Message Styles */
#status-container {
    pointer-events: none;
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 300px;
    max-width: 400px;
}

#status-container .status-message {
    pointer-events: auto;
}

.status-message {
    padding: 12px 16px;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    border-left: 4px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    transform: translateX(100%);
    opacity: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-text {
    flex: 1;
}

.status-message:hover {
    transform: translateX(-5px) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3) !important;
}

.status-message.error {
    background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
}

.status-message.success {
    background: linear-gradient(135deg, #388e3c 0%, #2e7d32 100%);
}

.status-message.info, .status-message.init-progress {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
}

.copy-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.copy-btn:active {
    transform: scale(0.95);
}

.close-btn {
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.7;
    flex-shrink: 0;
}

/* Settings Separator Styles */
.settings-separator {
    margin: 30px 0 20px 0;
}

.settings-divider {
    border: none;
    height: 1px;
    background-color: #ddd;
    margin: 0 0 15px 0;
}

.settings-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    padding-bottom: 10px;
}

/* File Upload Area Styles */
.file-upload-area {
    margin: 20px 0;
}

.file-upload-dropzone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background-color: #fafafa;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-upload-dropzone:hover {
    border-color: #1976d2;
    background-color: #f3f8ff;
}

.file-upload-dropzone.dragover {
    border-color: #1976d2;
    background-color: #e3f2fd;
    transform: scale(1.02);
}

.file-input-hidden {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.upload-icon {
    color: #666;
    transition: color 0.3s ease;
}

.file-upload-dropzone:hover .upload-icon {
    color: #1976d2;
}

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

.upload-primary {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.upload-secondary {
    font-size: 14px;
    color: #666;
}

.file-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
    color: #888;
}

.file-type {
    font-weight: 500;
}

/* File upload states */
.file-upload-dropzone.has-files {
    border-color: #388e3c;
    background-color: #f1f8e9;
}

.file-upload-dropzone.has-files .upload-icon {
    color: #388e3c;
}

/* Responsive design */
@media (max-width: 768px) {
    .file-upload-dropzone {
        padding: 30px 15px;
        min-height: 100px;
    }
    
    .upload-icon svg {
        width: 36px;
        height: 36px;
    }
    
    .upload-primary {
        font-size: 14px;
    }
    
    .upload-secondary {
        font-size: 12px;
    }
}

#scan-output {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 12px;
    margin-top: 15px;
    font-family: 'Courier New', Consolas, Monaco, monospace;
    height: 250px;
    overflow-y: auto;
}

/* Scrollbar styling for dark theme */
.output-area::-webkit-scrollbar,
#scan-output::-webkit-scrollbar {
    width: 10px;
}

.output-area::-webkit-scrollbar-track,
#scan-output::-webkit-scrollbar-track {
    background: #1e1e1e;
    border-radius: 4px;
}

.output-area::-webkit-scrollbar-thumb,
#scan-output::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.output-area::-webkit-scrollbar-thumb:hover,
#scan-output::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* Status Output Messages */
.status-output {
    padding: 5px 10px;
    margin: 3px 0;
    border-left: 3px solid #666;
    background: #252526;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.4;
    transition: all 0.2s ease;
    animation: slideInFromRight 0.3s ease;
}

.status-output:hover {
    background: #2d2d30;
    transform: translateX(2px);
}

/* Info messages - cyan/blue */
.status-output.info {
    border-left-color: #4fc3f7;
    color: #4fc3f7;
}

/* Debug messages - invisible */
.status-output.debug {
    display: none;
}

.status-output.info::before {
    content: '→ ';
    color: #4fc3f7;
    font-weight: bold;
}

/* Success messages - green */
.status-output.success {
    border-left-color: #66bb6a;
    color: #66bb6a;
}

.status-output.success::before {
    content: '✓ ';
    color: #66bb6a;
    font-weight: bold;
}

/* Error messages - red */
.status-output.error {
    border-left-color: #ef5350;
    color: #ef5350;
    background: #2d1f1f;
}

.status-output.error::before {
    content: '✗ ';
    color: #ef5350;
    font-weight: bold;
}

/* Warning messages - yellow/orange */
.status-output.warning {
    border-left-color: #ffa726;
    color: #ffa726;
}

.status-output.warning::before {
    content: '⚠ ';
    color: #ffa726;
    font-weight: bold;
}

/* Animation for new messages */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Footer with Version */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ccc;
    padding-top: 5px;
    padding-bottom: 5px;
    z-index: 100;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1px;
}

.footer-separator {
    color: #666;
}

.footer-link {
    color: #1976d2;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #1565c0;
    text-decoration: underline;
}

/* Add padding to body to prevent content from being hidden behind footer */
body {
    padding-bottom: 50px;
}

/* Datenschutz Page Styles */
.datenschutz-content {
    line-height: 1.8;
    color: #333;
}

.datenschutz-content h2 {
    color: #1976d2;
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #1976d2;
}

.datenschutz-content h3 {
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 18px;
}

.datenschutz-section {
    margin: 25px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #1976d2;
}

.datenschutz-section.highlight-box {
    background-color: #fff3cd;
    border-left-color: #ff9800;
}

.datenschutz-section.highlight-box h3 {
    color: #e65100;
}

.datenschutz-content ul {
    margin: 15px 0;
    padding-left: 25px;
}

.datenschutz-content li {
    margin: 8px 0;
}

.datenschutz-content strong {
    font-weight: 600;
    color: #1976d2;
}

.highlight-box strong {
    color: #e65100;
}

/* Artemis Import Area */
.artemis-import-area {
    background-color: #fafafa;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 20px;
}

.artemis-help-text {
    font-size: 13px;
    color: #555;
    margin: 0 0 10px 0;
    line-height: 1.6;
}

.artemis-help-link {
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
}

.artemis-help-link:hover {
    text-decoration: underline;
}

.artemis-help-box {
    background-color: #e8f4fd;
    border: 1px solid #90caf9;
    border-radius: 6px;
    padding: 12px 12px 12px 20px;
    margin-bottom: 15px;
    font-size: 13px;
    line-height: 1.7;
}

.artemis-help-box ol {
    margin: 0;
    padding-left: 18px;
}

.artemis-help-box li {
    margin: 4px 0;
}

.artemis-help-box code {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 1px 5px;
    font-size: 12px;
}

.artemis-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 500px;
}

.artemis-form input {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.artemis-form input:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.15);
}

.artemis-form .btn {
    align-self: flex-start;
    margin-top: 5px;
}

.artemis-send-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 5px;
}

.artemis-send-progress {
    font-size: 13px;
    color: #555;
}