/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Tema Claro (Padrão) */
:root {
    --primary: #0d6efd;
    --primary-hover: #0b5ed7;
    --secondary: #6c757d;
    --secondary-hover: #5c636a;
    --success: #198754;
    --success-hover: #157347;
    --danger: #dc3545;
    --danger-hover: #bb2d3b;
    --warning: #ffc107;
    --warning-hover: #ffc107;
    --info: #0dcaf0;
    --info-hover: #0aa2c0;
    --light: #f8f9fa;
    --light-hover: #e9ecef;
    --dark: #212529;
    --dark-hover: #1c1f23;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --border-color: #dee2e6;
    --border-radius: 0.375rem;
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.5;
    
    /* Cores de tema */
    --bg-body: #ffffff;
    --bg-card: #ffffff;
    --bg-card-header: #f8f9fa;
    --bg-card-footer: #f8f9fa;
    --bg-navbar: #ffffff;
    --bg-footer: #ffffff;
    --bg-input: #ffffff;
    --bg-table-hover: #f8f9fa;
    --bg-table-striped: #f8f9fa;
    
    --text-main: #212529;
    --text-muted: #6c757d;
    --text-link: #6c757d;
    --text-link-hover: #0d6efd;
    
    --border-main: #dee2e6;
}

/* Tema Escuro */
[data-theme="dark"] {
    --primary: #3b8bfd;
    --primary-hover: #4da3ff;
    --secondary: #6c757d;
    --secondary-hover: #8a929a;
    --success: #24a465;
    --success-hover: #2db85e;
    --danger: #e04b5b;
    --danger-hover: #f56565;
    --warning: #ffc107;
    --warning-hover: #ffcd33;
    --info: #33d4f5;
    --info-hover: #4dd4ff;
    --light: #212529;
    --light-hover: #2c3034;
    --dark: #f8f9fa;
    --dark-hover: #e9ecef;
    --white: #212529;
    --gray-100: #212529;
    --gray-200: #2c3034;
    --gray-300: #3d4146;
    --gray-400: #495057;
    --gray-500: #6c757d;
    --gray-600: #adb5bd;
    --gray-700: #ced4da;
    --gray-800: #dee2e6;
    --gray-900: #f8f9fa;
    --border-color: #495057;
    --border-radius: 0.375rem;
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
    --font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.5;
    
    /* Cores de tema */
    --bg-body: #121417;
    --bg-card: #1e2226;
    --bg-card-header: #25292d;
    --bg-card-footer: #25292d;
    --bg-navbar: #1e2226;
    --bg-footer: #1e2226;
    --bg-input: #25292d;
    --bg-table-hover: #2d3237;
    --bg-table-striped: #25292d;
    
    --text-main: #e9ecef;
    --text-muted: #adb5bd;
    --text-link: #adb5bd;
    --text-link-hover: #4da3ff;
    
    --border-main: #495057;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-main);
    background-color: var(--bg-body);
    padding: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.container-fluid {
    width: 100%;
    padding: 0 15px;
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
}

.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; padding: 0 15px; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; padding: 0 15px; }
.col-3 { flex: 0 0 25%; max-width: 25%; padding: 0 15px; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; padding: 0 15px; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; padding: 0 15px; }
.col-6 { flex: 0 0 50%; max-width: 50%; padding: 0 15px; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; padding: 0 15px; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; padding: 0 15px; }
.col-9 { flex: 0 0 75%; max-width: 75%; padding: 0 15px; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; padding: 0 15px; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; padding: 0 15px; }
.col-12 { flex: 0 0 100%; max-width: 100%; padding: 0 15px; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

.text-center { text-align: center; }
.text-start { text-align: left; }
.text-end { text-align: right; }

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }
.text-light { color: var(--light); }
.text-dark { color: var(--dark); }
.text-muted { color: var(--text-muted); }

.fw-bold { font-weight: 700; }
.fw-normal { font-weight: 400; }
.fw-light { font-weight: 300; }

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: var(--border-radius);
    transition: all 0.15s ease-in-out;
    border: 1px solid transparent;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    color: var(--white);
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-secondary {
    color: var(--white);
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    border-color: var(--secondary-hover);
}

.btn-success {
    color: var(--white);
    background-color: var(--success);
    border-color: var(--success);
}

.btn-success:hover {
    background-color: var(--success-hover);
    border-color: var(--success-hover);
}

.btn-danger {
    color: var(--white);
    background-color: var(--danger);
    border-color: var(--danger);
}

.btn-danger:hover {
    background-color: var(--danger-hover);
    border-color: var(--danger-hover);
}

.btn-warning {
    color: var(--gray-900);
    background-color: var(--warning);
    border-color: var(--warning);
}

.btn-warning:hover {
    background-color: var(--warning-hover);
    border-color: var(--warning-hover);
}

.btn-info {
    color: var(--white);
    background-color: var(--info);
    border-color: var(--info);
}

.btn-info:hover {
    background-color: var(--info-hover);
    border-color: var(--info-hover);
}

.btn-light {
    color: var(--gray-900);
    background-color: var(--light);
    border-color: var(--light);
}

.btn-light:hover {
    background-color: var(--light-hover);
    border-color: var(--light-hover);
}

.btn-dark {
    color: var(--white);
    background-color: var(--dark);
    border-color: var(--dark);
}

.btn-dark:hover {
    background-color: var(--dark-hover);
    border-color: var(--dark-hover);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    background-color: transparent;
}

.btn-outline-primary:hover {
    color: var(--white);
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-main);
    background-color: var(--bg-input);
    border: 1px solid var(--border-main);
    border-radius: var(--border-radius);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, background-color 0.3s ease, color 0.3s ease;
}

.form-control:focus {
    color: var(--text-main);
    background-color: var(--bg-input);
    border-color: var(--primary);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

.form-select {
    display: block;
    width: 100%;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-main);
    background-color: var(--bg-input);
    border: 1px solid var(--border-main);
    border-radius: var(--border-radius);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, background-color 0.3s ease, color 0.3s ease;
}

.form-select:focus {
    border-color: var(--primary);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-check {
    display: block;
    min-height: 1.5rem;
    padding-left: 1.5em;
    margin-bottom: 0.125rem;
}

.form-check-input {
    float: left;
    margin-left: -1.5em;
}

.form-check-label {
    display: inline-block;
    margin-bottom: 0.125rem;
}

/* Cards */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: var(--border-radius);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.card-body {
    flex: 1 1 auto;
    padding: 1.5rem;
}

.card-title {
    margin-bottom: 0.75rem;
}

.card-text {
    margin-bottom: 1rem;
}

.card-header {
    padding: 1rem 1.5rem;
    margin-bottom: 0;
    background-color: var(--bg-card-header);
    border-bottom: 1px solid var(--border-main);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.card-footer {
    padding: 1rem 1.5rem;
    background-color: var(--bg-card-footer);
    border-top: 1px solid var(--border-main);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Alert */
.alert {
    position: relative;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
}

.alert-primary {
    color: #084298;
    background-color: #cfe2ff;
    border-color: #b6d4fe;
}

.alert-secondary {
    color: #41464b;
    background-color: #e2e3e5;
    border-color: #d3d4d5;
}

.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

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

.alert-warning {
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5;
}

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

/* Navigation */
.navbar {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    background-color: var(--bg-navbar);
    border: 1px solid var(--border-main);
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.navbar-toggler {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
}

.navbar-toggler span {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.navbar-toggler:hover span {
    background-color: var(--primary);
}

.navbar-toggler.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.navbar-toggler.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.navbar-brand {
    display: inline-block;
    padding-top: 0.3125rem;
    padding-bottom: 0.3125rem;
    margin-right: 1rem;
    font-size: 1.25rem;
    line-height: inherit;
    white-space: nowrap;
    text-decoration: none;
    color: var(--text-main);
    transition: color 0.3s ease;
}

.navbar-nav {
    display: flex;
    flex-direction: row;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.nav-link {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--text-link);
    transition: color 0.15s ease-in-out;
}

.nav-link:hover {
    color: var(--text-link-hover);
}

.nav-link.active {
    color: var(--text-link-hover);
}

/* Tables */
.table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid var(--border-main);
    color: var(--text-main);
    transition: border-color 0.3s ease, color 0.3s ease;
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid var(--border-main);
    border-top: 0;
    background-color: var(--bg-card-header);
    font-weight: 600;
}

.table tbody tr:hover {
    background-color: var(--bg-table-hover);
    transition: background-color 0.3s ease;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--bg-table-striped);
    transition: background-color 0.3s ease;
}

.table-bordered {
    border: 1px solid var(--border-main);
    transition: border-color 0.3s ease;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid var(--border-main);
}

/* Melhorias para tabelas no tema escuro */
[data-theme="dark"] .table {
    background-color: var(--bg-card);
}

[data-theme="dark"] .table thead th {
    background-color: #2d3237;
    border-bottom-color: #4a5568;
    color: #e9ecef;
}

[data-theme="dark"] .table th,
[data-theme="dark"] .table td {
    border-color: #4a5568;
}

[data-theme="dark"] .table tbody tr {
    background-color: transparent;
}

[data-theme="dark"] .table tbody tr:nth-of-type(odd) {
    background-color: #25292d;
}

[data-theme="dark"] .table tbody tr:hover {
    background-color: #2d3237;
}

/* Paginação */
.pagination {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
}

.page-item {
    display: inline-block;
}

.page-link {
    display: block;
    padding: 0.375rem 0.75rem;
    background-color: var(--white);
    border: 1px solid var(--border-main);
    color: var(--text-link);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.15s ease-in-out;
}

.page-link:hover {
    background-color: var(--bg-table-hover);
    color: var(--text-link-hover);
    border-color: var(--border-main);
}

.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.page-item.disabled .page-link {
    background-color: var(--bg-table-striped);
    color: var(--text-muted);
    cursor: not-allowed;
    pointer-events: none;
}

[data-theme="dark"] .page-link {
    background-color: #2d3237;
    border-color: #4a5568;
    color: #adb5bd;
}

[data-theme="dark"] .page-link:hover {
    background-color: #3d4146;
    color: #4da3ff;
}

[data-theme="dark"] .page-item.active .page-link {
    background-color: #3b8bfd;
    border-color: #3b8bfd;
    color: #ffffff;
}

[data-theme="dark"] .page-item.disabled .page-link {
    background-color: #25292d;
    color: #6c757d;
}

/* Form Select */
.form-select {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-main);
    background-color: var(--bg-input);
    border: 1px solid var(--border-main);
    border-radius: var(--border-radius);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-select:focus {
    border-color: var(--primary);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

[data-theme="dark"] .form-select {
    background-color: #25292d;
    border-color: #4a5568;
    color: #e9ecef;
}

[data-theme="dark"] .form-select:focus {
    border-color: #3b8bfd;
    box-shadow: 0 0 0 0.25rem rgba(59, 139, 253, 0.25);
}

/* Table responsive */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* D-flex utilities */
.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

/* Table small */
.table-sm th,
.table-sm td {
    padding: 0.25rem 0.5rem;
}

/* Utility Classes */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.ms-0 { margin-left: 0; }
.ms-1 { margin-left: 0.25rem; }
.ms-2 { margin-left: 0.5rem; }
.ms-3 { margin-left: 1rem; }
.ms-4 { margin-left: 1.5rem; }
.ms-5 { margin-left: 3rem; }

.me-0 { margin-right: 0; }
.me-1 { margin-right: 0.25rem; }
.me-2 { margin-right: 0.5rem; }
.me-3 { margin-right: 1rem; }
.me-4 { margin-right: 1.5rem; }
.me-5 { margin-right: 3rem; }

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 1rem; }
.pt-4 { padding-top: 1.5rem; }
.pt-5 { padding-top: 3rem; }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: 0.25rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 1rem; }
.pb-4 { padding-bottom: 1.5rem; }
.pb-5 { padding-bottom: 3rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

.d-none { display: none; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.border { border: 1px solid var(--gray-200); }
.border-top { border-top: 1px solid var(--gray-200); }
.border-bottom { border-bottom: 1px solid var(--gray-200); }
.border-start { border-left: 1px solid var(--gray-200); }
.border-end { border-right: 1px solid var(--gray-200); }

.rounded { border-radius: var(--border-radius); }
.rounded-circle { border-radius: 50%; }
.rounded-0 { border-radius: 0; }

.shadow { box-shadow: var(--box-shadow); }
.shadow-sm { box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); }
.shadow-lg { box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175); }

.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-success { background-color: var(--success); }
.bg-danger { background-color: var(--danger); }
.bg-warning { background-color: var(--warning); }
.bg-info { background-color: var(--info); }
.bg-light { background-color: var(--light); }
.bg-dark { background-color: var(--dark); }
.bg-white { background-color: var(--white); }

.text-white { color: var(--white); }

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-main);
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    color: var(--text-main);
}

.theme-toggle:hover {
    background-color: var(--bg-card-header);
}

.theme-toggle-icon {
    font-size: 1.2rem;
}

/* Navigation Icon */
.nav-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
    width: 16px;
    height: 16px;
}

/* Spacing */
hr {
    margin: 1rem 0;
    color: inherit;
    background-color: currentColor;
    border: 0;
    opacity: 0.25;
}

hr:not([size]) {
    height: 1px;
}

/* Responsive */
@media (max-width: 992px) {
    .col-md-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-md-9 { flex: 0 0 75%; max-width: 75%; }
    .col-md-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-md-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-md-12 { flex: 0 0 100%; max-width: 100%; }
    
    .container {
        padding: 0 10px;
    }
    
    body {
        padding: 10px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Page Header Mobile */
    .page-title {
        font-size: 1.75rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    /* Flow Indicator Mobile */
    .flow-indicator {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
    
    /* Action Buttons Mobile */
    .action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Form Check Mobile */
    .form-check {
        padding: 0.5rem;
    }
    
    /* Page Header Mobile */
    .page-title {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .page-subtitle {
        font-size: 0.9rem;
    }
    
    /* Source/Target Cards Mobile */
    .source-card, .target-card {
        margin-bottom: 1rem;
    }
    
    /* Flow Indicator Mobile */
    .flow-indicator {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
    
    /* Action Buttons Mobile */
    .action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Result List Mobile */
    .result-list {
        grid-template-columns: 1fr;
    }
    
    /* Info Card Mobile */
    .info-card {
        margin-top: 1rem;
    }
    
    /* Manual Section Mobile */
    .section-title {
        font-size: 1.25rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .section-content {
        padding-left: 0;
    }
    
    .manual-steps li {
        padding-left: 1rem;
    }
    
    .manual-steps li::before {
        left: 0.5rem;
    }
    
    /* Table Details Mobile */
    .table-details-card {
        margin-bottom: 1rem;
    }
    
    /* Chat Card Mobile */
    .chat-card .card-body {
        max-height: 400px;
    }
    
    /* AI Actions Mobile */
    .ai-actions {
        flex-direction: column;
    }
    
    .ai-actions .action-btn {
        width: 100%;
    }
    
    /* Action Buttons Inline Mobile */
    .action-buttons-inline {
        flex-direction: column;
        width: 100%;
    }
    
    .action-buttons-inline .action-btn-sm {
        width: 100%;
        justify-content: center;
    }
    
    /* Table Responsive Mobile */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Table Mobile - Bootstrap pattern */
    .table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table thead,
    .table tbody,
    .table tfoot,
    .table tr,
    .table td,
    .table th {
        display: block;
    }
    
    .table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .table tr {
        border: 1px solid var(--border-main);
        margin-bottom: 1rem;
        border-radius: 0.5rem;
    }
    
    .table td {
        border: none;
        border-bottom: 1px solid var(--border-main);
        position: relative;
        padding-left: 50%;
        text-align: left;
    }
    
    .table td:before {
        position: absolute;
        top: 50%;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        transform: translateY(-50%);
        font-weight: 600;
        color: var(--text-muted);
    }
    
    /* Connection Row Mobile */
    .connection-row {
        display: block;
        padding: 1rem;
    }
    
    .connection-row td {
        display: block;
        padding: 0.5rem 0;
        border: none;
    }
    
    .connection-row td:last-child {
        padding-top: 1rem;
    }
    
    /* Difference Item Mobile */
    .difference-item {
        padding: 0.75rem;
    }
    
    .diff-section {
        margin-bottom: 0.75rem;
    }
    
    /* SQL Textarea Mobile */
    .sql-textarea {
        font-size: 0.85rem;
    }
    
    /* Navbar Mobile */
    .navbar-toggler {
        display: flex;
    }
    
    .navbar-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-navbar);
        border: 1px solid var(--border-main);
        border-top: none;
        border-radius: 0 0 var(--border-radius) var(--border-radius);
        padding: 1rem;
        gap: 0;
        z-index: 1000;
        box-shadow: var(--box-shadow);
    }
    
    .navbar-nav.active {
        display: flex;
    }
    
    .navbar-nav li {
        width: 100%;
        border-bottom: 1px solid var(--border-main);
    }
    
    .navbar-nav li:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        display: block;
        width: 100%;
    }
    
    .theme-toggle {
        width: 100%;
        text-align: center;
        border-top: 1px solid var(--border-main);
        padding-top: 0.75rem;
        margin-top: 0.5rem;
    }
}