/* Python Formatter Styling */

.python-textarea {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    tab-size: 4;
}

.python-output {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    overflow-x: auto;
    min-height: 200px;
    max-height: 600px;
}

.python-pre {
    margin: 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #212529;
}

/* Syntax Highlighting */
.py-keyword {
    color: #d73a49;
    font-weight: 600;
}

.py-builtin {
    color: #6f42c1;
    font-weight: 500;
}

.py-function {
    color: #005cc5;
    font-weight: 500;
}

.py-decorator {
    color: #e36209;
    font-weight: 500;
}

.py-string {
    color: #22863a;
}

.py-number {
    color: #005cc5;
}

.py-comment {
    color: #6a737d;
    font-style: italic;
}

/* Dark Mode */
[data-bs-theme="dark"] .python-output {
    background: #1a1d23;
    border-color: #343a40;
}

[data-bs-theme="dark"] .python-pre {
    color: #e9ecef;
}

[data-bs-theme="dark"] .py-keyword {
    color: #ff6b6b;
}

[data-bs-theme="dark"] .py-builtin {
    color: #c792ea;
}

[data-bs-theme="dark"] .py-function {
    color: #5eb3f6;
}

[data-bs-theme="dark"] .py-decorator {
    color: #ffa94d;
}

[data-bs-theme="dark"] .py-string {
    color: #7ec699;
}

[data-bs-theme="dark"] .py-number {
    color: #5eb3f6;
}

[data-bs-theme="dark"] .py-comment {
    color: #6c757d;
}

/* Statistics Container */
.stats-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    min-width: 120px;
}

.stat-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 20px;
    font-weight: 600;
    color: #212529;
}

[data-bs-theme="dark"] .stats-container {
    background: #1a1d23;
    border-color: #343a40;
}

[data-bs-theme="dark"] .stat-label {
    color: #9ca3af;
}

[data-bs-theme="dark"] .stat-value {
    color: #e9ecef;
}

#validationStatus {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#validationMessage {
    margin-bottom: 0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
}

.alert-info {
    background-color: #cff4fc;
    border-color: #b6effb;
    color: #055160;
}

[data-bs-theme="dark"] .alert-danger {
    background-color: #842029;
    border-color: #a52834;
    color: #f8d7da;
}

[data-bs-theme="dark"] .alert-info {
    background-color: #055160;
    border-color: #087990;
    color: #cff4fc;
}

.toolBtn {
    transition: all 0.2s ease;
    border-radius: 6px;
    font-weight: 500;
    padding: 8px 16px;
}

.toolBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.toolBtn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .python-output {
        font-size: 12px;
        padding: 10px;
    }

    .python-pre {
        font-size: 12px;
    }

    .stats-container {
        gap: 10px;
        padding: 10px;
    }

    .stat-item {
        min-width: 90px;
    }

    .stat-label {
        font-size: 11px;
    }

    .stat-value {
        font-size: 16px;
    }

    .toolBtn {
        width: 100%;
        margin-bottom: 5px;
    }
}

.python-output::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.python-output::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-radius: 4px;
}

.python-output::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 4px;
}

.python-output::-webkit-scrollbar-thumb:hover {
    background: #868e96;
}

[data-bs-theme="dark"] .python-output::-webkit-scrollbar-track {
    background: #2d3239;
}

[data-bs-theme="dark"] .python-output::-webkit-scrollbar-thumb {
    background: #495057;
}

[data-bs-theme="dark"] .python-output::-webkit-scrollbar-thumb:hover {
    background: #6c757d;
}
