
        body {
            padding: 20px;
            background: #f5f5f5;
        }

        .container-fluid {
            max-width: 1400px;
        }

        .CodeMirror {
            height: 250px;
            border: 1px solid #ccc;
            font-size: 14px;
        }

        .result-section {
            margin-top: 20px;
            background: white;
            padding: 10px;
            border-radius: 5px;
        }

        .error-message {
            background: #f8d7da;
            color: #721c24;
            padding: 12px;
            border-radius: 5px;
            margin-top: 10px;
        }

        .success-message {
            background: #d4edda;
            color: #155724;
            padding: 12px;
            border-radius: 5px;
            margin-top: 10px;
        }

        .file-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: #f8f9fa;
            padding: 5px 10px;
            border-radius: 4px;
            margin-top: 5px;
        }

            .file-item > div {
                display: flex;
                gap: 5px;
            }

        #activeDbLabel {
            transition: all 0.3s ease;
        }

        /* DataTables Buttons styling */
        .dt-buttons {
            margin-bottom: 10px;
            gap: 5px;
            display: inline-flex;
            flex-wrap: wrap;
            justify-content: flex-start;
        }

            .dt-buttons .btn {
                margin-right: 5px;
                color: #fff !important;
                opacity: 1 !important;
                width: auto !important;
                flex: 0 0 auto;
            }

        /* AI Helper Styling */
        .ai-input-group {
            background: #eef2ff;
            border: 1px solid #c7d2fe;
            padding: 10px;
            border-radius: 5px;
            margin-bottom: 15px;
        }

        /* Container styling */
        .panel-footer {
            background-color: #f8f9fa; /* Light gray background */
            border-top: 1px solid #e7e7e7; /* Subtle top border */
            padding: 15px 20px;
            color: #666;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            font-size: 14px;
            /* Flexbox to separate left and right content */
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap; /* Allows wrapping on smaller screens */
        }

            /* Link styling */
            .panel-footer a {
                color: #007bff; /* Standard Link Blue */
                text-decoration: none;
                transition: color 0.2s ease;
            }

                .panel-footer a:hover {
                    color: #0056b3; /* Darker blue on hover */
                    text-decoration: underline;
                }

            /* The right-side container */
            .panel-footer .pull-right {
                display: flex;
                flex-wrap: wrap;
                gap: 5px; /* Adds space between links if you remove &nbsp; */
            }

        /* Mobile Responsive Adjustments */
        @media (max-width: 768px) {
            .panel-footer {
                flex-direction: column;
                text-align: center;
                gap: 10px;
            }

                .panel-footer .pull-right {
                    justify-content: center;
                }
        }
    


        body { font-family: sans-serif; padding: 20px; background: #f5f5f5; }
        h1 { color: #333; }
        .mermaid-container { 
            background: white; 
            padding: 20px; 
            border-radius: 8px; 
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            overflow: auto;
            max-height: 80vh;
        }
        .mermaid { min-width: max-content; }
        pre { background: #2d2d2d; color: #f8f8f2; padding: 15px; border-radius: 5px; overflow-x: auto; }
        .controls { margin-bottom: 15px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
        button { padding: 8px 16px; cursor: pointer; }
        label { font-weight: bold; }
        select, input { padding: 6px; }
    

/* Ban goc thay o nhap nay bang trinh soan CodeMirror; o day giu nguyen o
   nhap thuong nhung cho no dung kich thuoc de bo cuc khong bi hut. */
#sqlEditor, .legacy-page textarea {
  width: 100%;
  min-height: 200px;
  font-family: Menlo, Consolas, monospace;
  font-size: 13px;
  padding: 8px;
  border: 1px solid #ced4da;
  border-radius: 6px;
}
