@media (min-width: 1200px) {
    .h1,
    h1 {
        font-size: 2rem;
    }
}

.card-content code {
    font-size: 12px;
    color: chocolate;
    word-wrap: break-word;
    border: 1px solid;
    padding: 4px;
    border-radius: 8px;
}

.font-size-20 {
    font-size: 20px !important;
}
.font-size-18 {
    font-size: 18px !important;
}
.font-size-14 {
    font-size: 14px !important;
}
.custom-outline-orange {
    border: 1px solid #ff9800;
    color: #ff9800;
    background-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.custom-outline-orange:hover {
    background-color: #ff9800;
    color: white;
}

.custom-outline-darkgreen {
    border: 1px solid #006400;
    color: #006400;
    background-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.custom-outline-darkgreen:hover {
    background-color: #006400;
    color: white;
}

.custom-outline-red {
    border: 1px solid #ff6347;
    color: #ff6347;
    background-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.custom-outline-red:hover {
    background-color: #ff6347;
    color: white;
}

.custom-outline-purple {
    border: 1px solid #8a2be2;
    color: #8a2be2;
    background-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.custom-outline-purple:hover {
    background-color: #8a2be2;
    color: white;
}
.custom-outline-turquoise {
    border: 1px solid #40e0d0; /* Cor turquesa */
    color: #40e0d0;
    background-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.custom-outline-turquoise:hover {
    background-color: #40e0d0; /* Muda o fundo para turquesa */
    color: white; /* Texto branco no hover */
}
pre {
    overflow: auto;
    padding-left: 10px;
    padding-bottom: 10px;
    padding-top: 10px;
}

.bg-success {
    background-color: #28a745 !important;
}
.bg-warning {
    background-color: #ffc107 !important;
}
.bg-orange {
    background-color: #fd7e14 !important;
}
.bg-danger {
    background-color: #dc3545 !important;
}
.noUi-connect {
    background: #0d6efd; /* Cor Primary do Bootstrap */
}

/* Hover no "thumb" */
.noUi-handle:hover {
    background-color: #d1d6df; /* Cor Primary com hover */
}

/* Barra de fundo */
.noUi-target {
    background: #ddd; /* Cor do fundo */
}

.pomodoro {
    background-color: #2a1313 !important;
    color: #fff;
}

.short_break {
    background-color: #2a2813 !important;
    color: #fff;
}

.long_break {
    background-color: #1a2f3a !important;
    color: #fff;
}
.timer-ring.custom {
    background-color: #162a13 !important;
    color: #fff;
}

body.pomodoro .navbar,
body.short-break .navbar,
body.long-break .navbar {
    background-color: #000;
}

body.pomodoro .navbar .nav-link,
body.short-break .navbar .nav-link,
body.long-break .navbar .nav-link,
body.pomodoro .navbar .navbar-brand,
body.short-break .navbar .navbar-brand,
body.long-break .navbar .navbar-brand {
    color: #fff !important;
}

body .list-group-item {
    background-color: #fff;
}
body .list-group-item a {
    color: #000;
    text-decoration: none;
}

[data-bs-theme="dark"] .list-group-item {
    background-color: #2c2f6c;
}
[data-bs-theme="dark"] .list-group-item a {
    color: #fff;
    text-decoration: none;
}
[data-bs-theme="dark"] .result.list-group-item {
    background-color: #bcbcbc;
}

/* ========== DIAGRAM MAKER STYLES ========== */

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --border-color: #e1e8ed;
    --toolbar-bg: #ffffff;
    --canvas-bg: #ffffff;
    --grid-color: #e5e5e5;
}

[data-bs-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d3748;
    --text-primary: #ffffff;
    --text-secondary: #cbd5e0;
    --border-color: #384151;
    --toolbar-bg: #162338;
    --canvas-bg: #1a1a1a;
    --grid-color: #384151;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.toolbar {
    width: 250px;
    border-right: 1px solid var(--border-color);
    padding: 20px;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

/* Light mode toolbar */
[data-bs-theme="light"] .toolbar {
    background-color: #ffffff;
    border-right-color: #e1e8ed;
}

/* Dark mode toolbar */
[data-bs-theme="dark"] .toolbar {
    background-color: #162338;
    border-right-color: #384151;
}

/* Light mode toolbar text */
[data-bs-theme="light"] .toolbar h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 18px;
}

/* Dark mode toolbar text */
[data-bs-theme="dark"] .toolbar h3 {
    margin-bottom: 20px;
    color: #ffffff;
    font-size: 18px;
}

/* Accordion styles */
/* Light mode accordion */
[data-bs-theme="light"] .accordion-item {
    background-color: #ffffff;
    border-color: #dee2e6;
}

[data-bs-theme="light"] .accordion-button {
    background-color: #ffffff;
    color: #212529;
    border-color: #dee2e6;
}

[data-bs-theme="light"] .accordion-button:not(.collapsed) {
    background-color: #e7f1ff;
    color: #0c63e4;
}

[data-bs-theme="light"] .accordion-body {
    background-color: #ffffff;
    color: #212529;
}

/* Dark mode accordion */
[data-bs-theme="dark"] .accordion-item {
    background-color: #1e1e1e;
    border-color: #333;
}

[data-bs-theme="dark"] .accordion-button {
    background-color: #1e1e1e;
    color: #efefef;
    border-color: #333;
}

[data-bs-theme="dark"] .accordion-button:not(.collapsed) {
    background-color: #2c3e50;
    color: #7db3d3;
}

[data-bs-theme="dark"] .accordion-body {
    background-color: #1e1e1e;
    color: #efefef;
}

/* Accordion button focus states */
[data-bs-theme="light"] .accordion-button:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

[data-bs-theme="dark"] .accordion-button:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Enhanced accordion styles for better visual appeal */
.accordion-item {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.125);
    transition: all 0.3s ease;
}

.accordion-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.accordion-button {
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    box-shadow: none;
}

.accordion-button::after {
    width: 1.25rem;
    height: 1.25rem;
    background-size: 1.25rem;
}

.accordion-body {
    padding: 1.25rem 1.5rem;
    line-height: 1.7;
}

/* Dark mode enhancements */
[data-bs-theme="dark"] .accordion-item {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .accordion-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Donate page specific accordion enhancements */
.donate-accordion .accordion-item {
    border-radius: 12px;
    margin-bottom: 1rem;
    border: none;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.donate-accordion .accordion-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.donate-accordion .accordion-button {
    padding: 1.5rem;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px !important;
}

.donate-accordion .accordion-button:not(.collapsed) {
    background: linear-gradient(
        135deg,
        rgba(255, 193, 7, 0.1) 0%,
        rgba(255, 152, 0, 0.1) 100%
    );
}

.donate-accordion .accordion-body {
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 0 0 12px 12px;
}

/* Dark mode for donate accordion */
[data-bs-theme="dark"] .donate-accordion .accordion-button {
    background: linear-gradient(135deg, #1e1e2e 0%, #16162e 100%);
    color: #f8f9fa;
}

[data-bs-theme="dark"] .donate-accordion .accordion-button:not(.collapsed) {
    background: linear-gradient(
        135deg,
        rgba(255, 193, 7, 0.15) 0%,
        rgba(255, 152, 0, 0.15) 100%
    );
    color: #f8f9fa;
}

[data-bs-theme="dark"] .donate-accordion .accordion-body {
    background: linear-gradient(135deg, #1e1e2e 0%, #16162e 100%);
    color: #adb5bd;
}

/* Scroll fino e discreto apenas no accordion */
.accordion {
    max-height: calc(100vh - 55px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

/* Webkit scrollbar customization para browsers Chrome/Safari/Edge */
.accordion::-webkit-scrollbar {
    width: 6px;
}

.accordion::-webkit-scrollbar-track {
    background: transparent;
}

.accordion::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.accordion::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

/* Dark mode scrollbar para accordion */
[data-bs-theme="dark"] .accordion {
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

[data-bs-theme="dark"] .accordion::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
}

[data-bs-theme="dark"] .accordion::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.tool-section {
    margin-bottom: 30px;
}

.tool-section h4 {
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tool-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

/* Light mode tool-item */
[data-bs-theme="light"] .tool-item {
    background-color: #f8f9fa;
    color: #212529;
}

[data-bs-theme="light"] .tool-item:hover {
    background-color: rgba(33, 150, 243, 0.1);
    border-color: #2196f3;
    transform: translateX(2px);
}

/* Dark mode tool-item */
[data-bs-theme="dark"] .tool-item {
    background-color: #1e1e1e;
    color: #efefef;
}

[data-bs-theme="dark"] .tool-item:hover {
    background-color: rgba(33, 150, 243, 0.1);
    border-color: #2196f3;
    transform: translateX(2px);
}

/* Active state (same for both themes) */
.tool-item.active {
    background: #2196f3 !important;
    color: white !important;
    border-color: #2196f3 !important;
}

.tool-icon,
.tool-icon-text {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

.tool-icon .material-icons {
    font-size: 16px;
    line-height: 1;
}

/* Canvas container com altura fixa para diagram-maker */
.canvas-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    height: calc(100vh - 55px);
}

#canvas {
    width: 100%;
    height: 100%;
    background: var(--canvas-bg);
    background-image: radial-gradient(
        circle at 1px 1px,
        var(--grid-color) 1px,
        transparent 0
    );
    background-size: 20px 20px;
}

.diagram-canvas {
    overflow: visible;
}

.diagram-canvas-stage {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.element-selected {
    outline: 3px solid #2196f3 !important;
    outline-offset: 2px !important;
}

.context-menu {
    position: fixed !important;
    display: none;
    z-index: 1001 !important;
}

.context-icons {
    display: flex;
    gap: 5px;
}

.context-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.98);
    border: 2px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
    font-size: 16px;
    backdrop-filter: blur(10px);
}

[data-bs-theme="dark"] .context-icon {
    background: rgba(45, 55, 72, 0.98);
    border-color: #384151;
    color: white;
}

.context-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.context-icon.edit {
    color: #2196f3;
}

.context-icon.edit:hover {
    background: #e3f2fd;
}

.context-icon.delete {
    color: #f44336;
}

.context-icon.delete:hover {
    background: #ffebee;
}

[data-bs-theme="dark"] .context-icon.edit:hover {
    background: rgba(33, 150, 243, 0.2);
}

[data-bs-theme="dark"] .context-icon.delete:hover {
    background: rgba(244, 67, 54, 0.2);
}

.status-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--toolbar-bg);
    border-top: 1px solid var(--border-color);
    padding: 10px 20px;
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-bar .btn-sm {
    font-size: 10px;
    padding: 2px 6px;
    margin: 0 4px;
    border-width: 1px;
}

.status-bar .btn-sm i {
    font-size: 10px;
}

#tooltip {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 1000;
    display: none;
    max-width: 300px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#tooltip.success {
    background: #4caf50;
}
#tooltip.error {
    background: #f44336;
}
#tooltip.info {
    background: #2196f3;
}

.btn-connect.active {
    background: #f44336 !important;
    border-color: #f44336 !important;
    color: white !important;
    animation: pulse 1.5s infinite;
}

.btn-delete.active {
    background: #ff5722 !important;
    border-color: #ff5722 !important;
    color: white !important;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(244, 67, 54, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0);
    }
}

.dropdown-menu {
    background: var(--toolbar-bg);
    border-color: var(--border-color);
}

.dropdown-item {
    color: var(--text-primary);
}

.dropdown-item:hover {
    background: rgba(33, 150, 243, 0.1);
}

.theme-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1001;
}

.connection-preview {
    pointer-events: none;
    opacity: 0.7;
    stroke-dasharray: 5, 5;
}

.connection-drop-zone {
    stroke: #2196f3 !important;
    stroke-width: 3 !important;
    stroke-dasharray: 8, 4 !important;
    opacity: 0.8 !important;
}

/* Estilos para tooltips de comentÃ¡rios */
.comment-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    max-width: 250px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.comment-tooltip-arrow {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(0, 0, 0, 0.9);
}

.comment-tooltip.tooltip-below .comment-tooltip-arrow {
    bottom: auto;
    top: -5px;
    border-top: none;
    border-bottom: 5px solid rgba(0, 0, 0, 0.9);
}

.comment-tooltip-content strong {
    color: #ffd700;
}

[data-bs-theme="dark"] .comment-tooltip {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

[data-bs-theme="dark"] .comment-tooltip-arrow {
    border-top-color: rgba(255, 255, 255, 0.95);
}

[data-bs-theme="dark"] .comment-tooltip.tooltip-below .comment-tooltip-arrow {
    border-bottom-color: rgba(255, 255, 255, 0.95);
}

[data-bs-theme="dark"] .comment-tooltip-content strong {
    color: #0066cc;
}

/* Indicador de comentÃ¡rio */
.comment-indicator {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 16px;
    height: 16px;
    background: #ff9800;
    border: 2px solid white;
    border-radius: 50%;
    z-index: 10;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
    font-weight: bold;
}

[data-bs-theme="dark"] .comment-indicator {
    border-color: #1a1a1a;
    background: #ffc107;
    color: #000;
}

.comment-indicator::before {
    content: "ðŸ’¬";
    font-size: 8px;
}

/* ========== CONEXÃ•ES AVANÃ‡ADAS ========== */

/* Posicionamento especÃ­fico dos pontos */
.connection-point-top {
    transform: translateX(-50%);
}

.connection-point-bottom {
    transform: translateX(-50%);
}

.connection-point-left {
    transform: translateY(-50%);
}

.connection-point-right {
    transform: translateY(-50%);
}

/* Endpoints dos links (5px nas pontas) */
.link-endpoint {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #f44336;
    border: 2px solid white;
    border-radius: 50%;
    cursor: grab;
    z-index: 20;
    opacity: 0;
    transition: all 0.2s ease;
    pointer-events: auto;
}

.link-endpoint:hover {
    opacity: 1;
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.5);
}

.link-endpoint:active {
    cursor: grabbing;
}

/* Diferentes cores para inÃ­cio e fim */
.link-endpoint-start {
    background: #4caf50;
}

.link-endpoint-end {
    background: #f44336;
}

/* Destaque de elementos como possÃ­veis alvos de conexÃ£o */
.connection-target {
    stroke: #2196f3 !important;
    stroke-width: 2px !important;
    stroke-dasharray: 4, 2 !important;
    opacity: 0.9 !important;
}

.connection-target-hover {
    stroke: #4caf50 !important;
    stroke-width: 3px !important;
    stroke-dasharray: 6, 3 !important;
    opacity: 1 !important;
    filter: drop-shadow(0 0 8px rgba(76, 175, 80, 0.6));
}

/* Linha de preview durante criaÃ§Ã£o de conexÃ£o */
.connection-preview-line {
    stroke-dasharray: 8, 4 !important;
    opacity: 0.7 !important;
    pointer-events: none !important;
}

/* Estilos para dark mode */
[data-bs-theme="dark"] .connection-point {
    background: #64b5f6;
    border-color: #1a1a1a;
}

[data-bs-theme="dark"] .link-endpoint {
    border-color: #1a1a1a;
}

[data-bs-theme="dark"] .connection-target {
    stroke: #64b5f6 !important;
}

[data-bs-theme="dark"] .connection-target-hover {
    stroke: #81c784 !important;
    filter: drop-shadow(0 0 8px rgba(129, 199, 132, 0.6));
}

/* AnimaÃ§Ã£o para pontos de conexÃ£o */
@keyframes connectionPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(33, 150, 243, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(33, 150, 243, 0);
    }
}

.connection-point.active {
    animation: connectionPulse 1.5s infinite;
}

/* Melhorar visibilidade dos pontos em elementos pequenos */
.joint-element[width="80"] .connection-point,
.joint-element[width="100"] .connection-point {
    width: 6px;
    height: 6px;
    border-width: 1px;
}

/* ========== CORREÃ‡ÃƒO DE OVERFLOW DE TEXTO ========== */

/* Prevenir overflow de texto nos elementos */
.joint-element text {
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    word-break: break-word;
}

/* Melhorar renderizaÃ§Ã£o de texto em elementos pequenos */
.joint-element[width="120"] text,
.joint-element[width="100"] text,
.joint-element[width="80"] text {
    font-size: 11px;
}

/* Garantir que texto nÃ£o ultrapasse elementos */
.joint-element text tspan {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Estilo para ediÃ§Ã£o inline */
.inline-text-editor {
    position: absolute;
    background: white;
    border: 2px solid #2196f3;
    border-radius: 6px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    font-size: 14px;
    font-family: inherit;
    min-width: 100px;
    resize: none;
    outline: none;
    text-align: center; /* Centralizar texto no editor */
    line-height: 1.4;
}

.inline-text-editor:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

/* Dark mode para editor inline */
[data-bs-theme="dark"] .inline-text-editor {
    background: #2d3748;
    color: white;
    border-color: #64b5f6;
}

/* Indicador visual para elementos editÃ¡veis por clique */
.joint-element:hover text {
    cursor: text;
}

.joint-element.editable-hover {
    outline: 1px dashed #2196f3;
    outline-offset: 2px;
}

/* Ajustar quebra de texto para diferentes tipos de elemento */
.joint-element[model-id] text {
    dominant-baseline: middle;
    /* text-anchor removido - serÃ¡ definido dinamicamente pelo JS */
}

/* ForÃ§ar quebra de texto adequada */
.joint-element text tspan {
    alignment-baseline: middle;
}
/* Canvas container para paperScroller */
#canvas-scroller {
    width: 100% !important;
    height: 100% !important;
    overflow: hidden;
}

/* Estilos para componentes nativos do JointJS */

/* Context Toolbar nativo */
.joint-context-toolbar {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 4px;
}

.joint-context-toolbar .joint-context-toolbar-tool {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 2px;
}

.joint-context-toolbar .joint-context-toolbar-tool:hover {
    background: rgba(33, 150, 243, 0.1);
    transform: scale(1.05);
}

.joint-context-toolbar .context-tool-edit:hover {
    background: rgba(33, 150, 243, 0.1);
    color: #2196f3;
}

.joint-context-toolbar .context-tool-delete:hover {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.joint-context-toolbar .context-tool-clone:hover {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

/* Selection nativa */
.joint-selection-box {
    stroke: #2196f3 !important;
    stroke-width: 2px !important;
    stroke-dasharray: 4, 4 !important;
    fill: rgba(33, 150, 243, 0.1) !important;
}

.joint-selection-wrapper {
    stroke: #2196f3 !important;
    stroke-width: 1px !important;
    stroke-dasharray: 5, 5 !important;
    fill: none !important;
}

/* Snaplines */
.joint-snapline {
    stroke: #2196f3 !important;
    stroke-width: 1px !important;
    pointer-events: none;
    opacity: 0.7;
}

/* PaperScroller */
.joint-paper-scroller {
    position: relative;
    overflow: hidden;
}

.joint-paper-scroller .joint-paper {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

/* Dark mode para componentes nativos */
[data-bs-theme="dark"] .joint-context-toolbar {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-bs-theme="dark"]
    .joint-context-toolbar
    .joint-context-toolbar-tool:hover {
    background: rgba(100, 181, 246, 0.1);
}

[data-bs-theme="dark"] .joint-context-toolbar .context-tool-edit:hover {
    color: #64b5f6;
}

[data-bs-theme="dark"] .joint-context-toolbar .context-tool-delete:hover {
    color: #ef5350;
}

[data-bs-theme="dark"] .joint-context-toolbar .context-tool-clone:hover {
    color: #81c784;
}

[data-bs-theme="dark"] .joint-selection-box {
    stroke: #64b5f6 !important;
    fill: rgba(100, 181, 246, 0.1) !important;
}

[data-bs-theme="dark"] .joint-selection-wrapper {
    stroke: #64b5f6 !important;
}

[data-bs-theme="dark"] .joint-snapline {
    stroke: #64b5f6 !important;
}

/* ========== HANDLES DE REDIMENSIONAMENTO ========== */

/* Handles de redimensionamento */
.resize-handle {
    position: absolute;
    background: #2196f3;
    border: 2px solid white;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    z-index: 999; /* Menor que editor de texto (1000) */
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(33, 150, 243, 0.3);
}

.resize-handle:hover {
    opacity: 1;
    transform: scale(1.2);
    box-shadow: 0 3px 8px rgba(33, 150, 243, 0.5);
}

.resize-handle.show {
    opacity: 0.8;
}

.resize-handle.show:hover {
    opacity: 1;
}

/* Diferentes cursors para diferentes direÃ§Ãµes */
.resize-handle.nw-resize {
    cursor: nw-resize;
}
.resize-handle.n-resize {
    cursor: n-resize;
}
.resize-handle.ne-resize {
    cursor: ne-resize;
}
.resize-handle.e-resize {
    cursor: e-resize;
}
.resize-handle.se-resize {
    cursor: se-resize;
}
.resize-handle.s-resize {
    cursor: s-resize;
}
.resize-handle.sw-resize {
    cursor: sw-resize;
}
.resize-handle.w-resize {
    cursor: w-resize;
}

/* Elemento sendo redimensionado */
.joint-element.resizing {
    outline: 2px dashed #2196f3;
    outline-offset: 2px;
}

.joint-element.resizing .resize-handle {
    opacity: 1;
}

/* Dark mode para handles */
[data-bs-theme="dark"] .resize-handle {
    background: #64b5f6;
    border-color: #1a1a1a;
}

[data-bs-theme="dark"] .joint-element.resizing {
    outline-color: #64b5f6;
}

/* Indicador de redimensionamento ativo */
.resize-preview {
    position: absolute;
    border: 2px dashed #ff9800;
    background: rgba(255, 152, 0, 0.1);
    z-index: 999;
    pointer-events: none;
}

/* Toggle das pontes (bridges) */
.form-check.form-switch {
    display: inline-flex;
    align-items: center;
    margin-left: 15px;
    vertical-align: middle;
}

.form-check.form-switch .form-check-input {
    margin-right: 8px;
    margin-top: 0;
}

.form-check.form-switch .form-check-label {
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    white-space: nowrap;
}

.form-check.form-switch .form-check-label i {
    margin-right: 4px;
}

/* Tema escuro */
[data-bs-theme="dark"] .form-check.form-switch .form-check-label {
    color: var(--text-primary);
}

/* Modal de infrastrutura - grid de Ã­cones */
.icon-grid .icon-option {
    transition: all 0.3s ease;
    border: 2px solid #ddd !important;
    background: #fff !important;
}

.icon-grid .icon-option:hover {
    border-color: #007bff !important;
    background: #f0f8ff !important;
    transform: scale(1.05);
}

.icon-grid .icon-option.selected {
    border-color: #007bff !important;
    background: #e7f3ff !important;
}

/* Tema escuro para modal de infrastrutura */
[data-bs-theme="dark"] .icon-grid .icon-option {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary);
}

[data-bs-theme="dark"] .icon-grid .icon-option:hover {
    background: #384151 !important;
    border-color: #64b5f6 !important;
}

[data-bs-theme="dark"] .icon-grid .icon-option.selected {
    background: #2d3748 !important;
    border-color: #64b5f6 !important;
}

/* ========== CURSOR POINTER PARA ELEMENTOS ========== */

/* Cursor pointer para todos os elementos do diagrama */
.joint-element {
    cursor: pointer !important;
}

/* Cursor pointer para links/conexÃµes */
.joint-link {
    cursor: pointer !important;
}

/* Cursor pointer para paths de links */
.joint-link path {
    cursor: pointer !important;
}

/* Cursor pointer para textos dos elementos */
.joint-element text {
    cursor: pointer !important;
}

/* Cursor pointer para labels dos links */
.joint-link text {
    cursor: pointer !important;
}

/* Cursor pointer para formas dos elementos (rect, ellipse, etc.) */
.joint-element rect,
.joint-element ellipse,
.joint-element path,
.joint-element polygon,
.joint-element circle {
    cursor: pointer !important;
}

/* ExceÃ§Ã£o: manter cursor padrÃ£o para controles de redimensionamento */
.resize-handle {
    cursor: pointer !important; /* JÃ¡ estava definido, mantÃ©m */
}

/* ExceÃ§Ã£o: manter cursor text para editor inline */
.inline-text-editor {
    cursor: text !important;
}

/* ExceÃ§Ã£o: manter cursor grab para endpoints de link */
.link-endpoint {
    cursor: grab !important; /* JÃ¡ estava definido, mantÃ©m */
}

.link-endpoint:active {
    cursor: grabbing !important; /* JÃ¡ estava definido, mantÃ©m */
}

/* ========== SELEÃ‡ÃƒO MÃšLTIPLA ========== */

/* Estilo para elementos selecionados */
.joint-element.multi-selected {
    outline: 1px dashed #007bff !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.2) !important;
}

/* Estilo para links selecionados */
.joint-link.multi-selected {
    filter: drop-shadow(0 0 4px rgba(0, 123, 255, 0.4)) !important;
}

.joint-link.multi-selected .connection {
    stroke: #007bff !important;
    stroke-width: 3 !important;
    stroke-dasharray: 4, 2 !important;
}

.joint-link.multi-selected .marker-target,
.joint-link.multi-selected .marker-source {
    fill: #007bff !important;
    stroke: #007bff !important;
}

/* Tema escuro para seleÃ§Ã£o mÃºltipla */
[data-bs-theme="dark"] .joint-element.multi-selected {
    outline: 1px dashed #64b5f6 !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 5px rgba(100, 181, 246, 0.2) !important;
}

[data-bs-theme="dark"] .joint-link.multi-selected {
    filter: drop-shadow(0 0 4px rgba(100, 181, 246, 0.4)) !important;
}

[data-bs-theme="dark"] .joint-link.multi-selected .connection {
    stroke: #64b5f6 !important;
    stroke-width: 3 !important;
    stroke-dasharray: 4, 2 !important;
}

[data-bs-theme="dark"] .joint-link.multi-selected .marker-target,
[data-bs-theme="dark"] .joint-link.multi-selected .marker-source {
    fill: #64b5f6 !important;
    stroke: #64b5f6 !important;
}

/* ========== MODAL DE PROJECTOS ========== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
}

.project-item {
    position: relative;
    width: 120px;
    height: 120px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-primary);
}

.project-item:hover {
    transform: scale(1.05);
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-item.new-project {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-style: dashed;
}

.project-item.new-project i {
    font-size: 24px;
    color: var(--text-secondary);
}

.project-item.new-project:hover i {
    color: #007bff;
}

.project-delete {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.project-item:hover .project-delete {
    display: flex;
}

.project-delete:hover {
    background: #dc3545;
    transform: scale(1.1);
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 4px 6px;
    font-size: 10px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    line-height: 1.2;
}

.project-info small {
    font-size: 8px;
    opacity: 0.8;
}

.project-item:hover .project-info {
    opacity: 1;
}

.tooltip .tooltip-inner {
    font-size: 11px;
    background-color: #dfdfdf;
    border: 1px solid #a8a8a8;
    color: #212529;
}
[data-bs-theme="dark"] .tooltip .tooltip-inner {
    background-color: #032830;
    color: #6edff6;
    border: 1px solid #087990;
}

/* ========== CUSTOM DARK MODE OVERRIDES ========== */

/* Custom dark mode colors using Bootstrap data-bs-theme */
[data-bs-theme="dark"] {
    --bs-body-bg: #13192a;
    --bs-body-color: #efefef;
}

/* Navbar overrides */
[data-bs-theme="dark"] .navbar {
    background-color: #030408 !important;
}

[data-bs-theme="dark"] .navbar .nav-link,
[data-bs-theme="dark"] .navbar .navbar-brand {
    color: #efefef !important;
}

/* Card overrides */
[data-bs-theme="dark"] .card {
    background-color: #1e1e1e;
    border-color: #333;
}

[data-bs-theme="dark"] .card-header {
    background-color: #1e1e1e;
    border-color: #333;
    color: #efefef;
}

[data-bs-theme="dark"] .card-body {
    background-color: #172343;
    color: #efefef;
}

[data-bs-theme="dark"] .card-footer {
    background-color: rgba(0, 0, 0, 0.18);
    color: #e0e0e0;
}

/* Button overrides */
[data-bs-theme="dark"] .btn-primary {
    background-color: #1c5b9d;
    border-color: #124274;
}

[data-bs-theme="dark"] .btn-secondary {
    color: #efefef;
    border-color: #989898;
}

/* Form elements overrides */
[data-bs-theme="dark"] .input-group-text {
    background-color: #34364f;
    color: #efefef;
    border-color: #333;
}

[data-bs-theme="dark"] .form-control {
    background-color: #191a2e;
    color: #efefef;
    border-color: #333;
}

[data-bs-theme="dark"] .form-control::placeholder {
    color: #969696;
}

/* Modal overrides */
[data-bs-theme="dark"] .modal-content {
    background-color: #181928;
}

/* Alert overrides */
[data-bs-theme="dark"] .alert-danger {
    background-color: #542d31;
    border-color: #721c24;
    color: #dec2c5;
}

body.bg-gradient-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed !important;
}

body.bg-gradient-body {
    background: linear-gradient(135deg, #ffffff 0%, #d2dae3 50%, #e6e7e7 100%);
}

[data-bs-theme="dark"] body.bg-gradient-body {
    background: linear-gradient(180deg, #121239 0%, #030318 50%, #030b30 100%);
}

/* ========== TEXT COMPONENT STYLES ========== */

/* Smooth animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

.slide-in-left {
    animation: slideInLeft 0.3s ease forwards;
}

.slide-in-right {
    animation: slideInRight 0.3s ease forwards;
}

/* Modern Tech Card */
.modern-tech-card {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .modern-tech-card {
    background: linear-gradient(145deg, #1e1e2e, #16162a);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.modern-tech-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.modern-tech-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px; /* espessura da linha */
    background: linear-gradient(90deg, #00c6ff 0%, #0072ff 100%);
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

[data-bs-theme="dark"] .modern-tech-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Responsive adjustments for mobile */
@media (max-width: 991.98px) {
    .modern-tech-card .border-end {
        border-right: none !important;
        border-bottom: 1px solid #e9ecef;
    }

    [data-bs-theme="dark"] .modern-tech-card .border-end {
        border-bottom: 1px solid #384151;
    }

    .modern-tech-card .p-4 {
        padding: 1rem !important;
    }

    .stats-panel .stat-item {
        padding: 5px;
    }

    .stat-number {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 767.98px) {
    .modern-tech-card .row.g-0 {
        flex-direction: column;
    }

    .modern-tech-card .row.g-0 > div {
        width: 100%;
    }

    .stats-panel .row.text-center {
        justify-content: space-around;
    }

    .stats-panel .col-6 {
        flex: 0 0 auto;
        width: auto;
        margin-bottom: 10px;
    }

    .quick-transform-buttons .btn {
        margin-bottom: 5px;
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }

    .result-container .btn {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .modern-tabs .nav-link {
        padding: 8px 12px;
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
}

/* Textarea Styles */
.modern-textarea {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    padding: 15px;
    resize: vertical;
    min-height: 200px;
    background: #ffffff;
}

.modern-textarea:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    outline: none;
}

[data-bs-theme="dark"] .modern-textarea {
    background: #1e1e2e;
    border-color: #384151;
    color: #efefef;
}

[data-bs-theme="dark"] .modern-textarea:focus {
    border-color: #64b5f6;
    box-shadow: 0 0 0 0.25rem rgba(100, 181, 246, 0.25);
}

/* Modern Result TextArea */
.modern-result-textarea {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    padding: 15px;
    resize: vertical;
    min-height: 200px;
    background: #f4f4f4;
}

[data-bs-theme="dark"] .modern-result-textarea {
    background: #384151;
    border-color: #384151;
    color: #efefef;
}

/* Stats Panel */
.stats-panel {
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

[data-bs-theme="dark"] .stats-panel {
    background: linear-gradient(135deg, #2d3748 0%, #1e1e2e 100%) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stats-panel:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05),
        0 4px 8px rgba(0, 0, 0, 0.1);
}

.stat-item {
    padding: 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.stat-item:hover {
    background: rgba(13, 110, 253, 0.1);
    transform: scale(1.05);
}

[data-bs-theme="dark"] .stat-item:hover {
    background: rgba(100, 181, 246, 0.1);
}

.stat-number {
    font-weight: 700;
    font-size: 1.2rem;
    color: #0d6efd;
}

[data-bs-theme="dark"] .stat-number {
    color: #64b5f6;
}

.stat-label {
    font-size: 0.85rem;
    color: #6c757d;
}

[data-bs-theme="dark"] .stat-label {
    color: #adb5bd;
}

/* Result Container */
.result-container {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    background: #ffffff;
    transition: all 0.3s ease;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.result-container:hover {
    border-color: #0d6efd;
}

[data-bs-theme="dark"] .result-container {
    background: #1e1e2e;
    border-color: #384151;
}

[data-bs-theme="dark"] .result-container:hover {
    border-color: #64b5f6;
}

/* Div Overlay */
.div-overlay {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: transparent;
    border: none !important;
}

.div-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #23b29f 0%, #2062b3 65%, #8c2ec2 100%);
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

/* Result Overlay */
.result-overlay {
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Modern Tabs */
.modern-tabs .nav-link {
    border: none;
    border-radius: 8px 8px 0 0;
    font-weight: 500;
    padding: 12px 20px;
    gap: 5px;
    margin-right: 5px;
    transition: all 0.3s ease;
    color: #6c757d;
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.03);
}

.modern-tabs .nav-link:before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: #0d6efd;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.modern-tabs .nav-link:hover {
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.05);
}

.modern-tabs .nav-link:hover:before {
    background: linear-gradient(135deg, #23b29f 0%, #2062b3 65%, #8c2ec2 100%);
    width: 100%;
}

.modern-tabs .nav-link.active {
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modern-tabs .nav-link.active:before {
    width: 100%;
    background: linear-gradient(135deg, #23b29f 0%, #2062b3 65%, #8c2ec2 100%);
}

[data-bs-theme="dark"] .modern-tabs .nav-link {
    color: #adb5bd;
    background: rgba(255, 255, 255, 0.03);
}

[data-bs-theme="dark"] .modern-tabs .nav-link:hover {
    background: linear-gradient(135deg, #23b29f 0%, #2062b3 65%, #8c2ec2 100%);
    background: rgba(100, 181, 246, 0.1);
}

[data-bs-theme="dark"] .modern-tabs .nav-link.active {
    color: #64b5f6;
    background: rgba(100, 181, 246, 0.15);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

[data-bs-theme="dark"] .modern-tabs .nav-link.active:before {
    background: linear-gradient(135deg, #23b29f 0%, #2062b3 65%, #8c2ec2 100%);
}

[data-bs-theme="dark"] .modern-tabs .nav-link:before {
    background: linear-gradient(135deg, #23b29f 0%, #2062b3 65%, #8c2ec2 100%);
}

/* Button Enhancements */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-warning,
.btn-outline-info {
    border-width: 2px;
}

/* Animation for buttons */
@keyframes pulseButton {
    0% {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
    }
    100% {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
}

.btn-primary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info {
    animation: pulseButton 2s infinite;
}

/* Breadcrumb Enhancements */
.modern-breadcrumb .breadcrumb {
    background: rgba(0, 0, 0, 0.03);
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.modern-breadcrumb .breadcrumb:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.modern-breadcrumb .breadcrumb-item a {
    text-decoration: none;
    color: #0d6efd;
    font-weight: 500;
}

.modern-breadcrumb .breadcrumb-item a:hover {
    color: #0b5ed7;
    text-decoration: underline;
}

[data-bs-theme="dark"] .modern-breadcrumb .breadcrumb {
    background: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .modern-breadcrumb .breadcrumb-item a {
    color: #64b5f6;
}

[data-bs-theme="dark"] .modern-breadcrumb .breadcrumb-item a:hover {
    color: #90caf9;
}

/* History Item */
.history-item {
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    background: #ffffff;
    animation: fadeIn 0.3s ease forwards;
}

.history-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #0d6efd;
}

[data-bs-theme="dark"] .history-item {
    background: #1e1e2e;
    border-color: #384151;
}

[data-bs-theme="dark"] .history-item:hover {
    border-color: #64b5f6;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.history-text {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.9rem;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Enhanced Password Generator Styles */
.character-options-section .option-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.character-options-section .option-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.character-options-section .option-icon {
    background: linear-gradient(135deg, #e7f1ff, #dbe9ff);
    color: #0d6efd;
}

[data-bs-theme="dark"] .character-options-section .option-icon {
    background: linear-gradient(135deg, #2c3e50, #1a2a3a);
    color: #64b5f6;
}

.character-options-section
    .form-check-input:checked
    ~ .option-label
    .option-icon {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    color: white;
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

[data-bs-theme="dark"]
    .character-options-section
    .form-check-input:checked
    ~ .option-label
    .option-icon {
    background: linear-gradient(135deg, #64b5f6, #2196f3);
    box-shadow: 0 4px 8px rgba(100, 181, 246, 0.3);
}

.character-options-section .option-title {
    color: var(--text-primary);
}

.character-options-section .option-desc {
    color: var(--text-secondary);
}

.character-options-section
    .form-check-input:checked
    ~ .option-label
    .option-title {
    color: #0d6efd;
}

[data-bs-theme="dark"]
    .character-options-section
    .form-check-input:checked
    ~ .option-label
    .option-title {
    color: #64b5f6;
}

.character-options-section .option-card::before {
    background: linear-gradient(90deg, #0d6efd, #6610f2);
}

[data-bs-theme="dark"] .character-options-section .option-card::before {
    background: linear-gradient(90deg, #64b5f6, #9c27b0);
}

.character-options-section
    .form-check-input:checked
    ~ .option-label
    .option-card::before {
    background: linear-gradient(90deg, #0d6efd, #198754);
}

[data-bs-theme="dark"]
    .character-options-section
    .form-check-input:checked
    ~ .option-label
    .option-card::before {
    background: linear-gradient(90deg, #64b5f6, #66bb6a);
}

.character-options-section
    .form-check-input:checked
    ~ .option-label
    .option-card {
    border-color: #0d6efd;
    background: rgba(13, 110, 253, 0.03);
}

[data-bs-theme="dark"]
    .character-options-section
    .form-check-input:checked
    ~ .option-label
    .option-card {
    border-color: #64b5f6;
    background: rgba(100, 181, 246, 0.05);
}

html,
body {
    height: auto;
    min-height: 100%;
}

/* Password Generator Character Options */
.character-options-section .option-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.character-options-section .option-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.character-options-section .option-icon {
    background: linear-gradient(135deg, #e7f1ff, #dbe9ff);
    color: #0d6efd;
}

[data-bs-theme="dark"] .character-options-section .option-icon {
    background: linear-gradient(135deg, #2c3e50, #1a2a3a);
    color: #64b5f6;
}

.character-options-section
    .form-check-input:checked
    ~ .option-label
    .option-icon {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    color: white;
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

[data-bs-theme="dark"]
    .character-options-section
    .form-check-input:checked
    ~ .option-label
    .option-icon {
    background: linear-gradient(135deg, #64b5f6, #2196f3);
    box-shadow: 0 4px 8px rgba(100, 181, 246, 0.3);
}

.character-options-section .option-title {
    color: var(--text-primary);
}

.character-options-section .option-desc {
    color: var(--text-secondary);
}

.character-options-section
    .form-check-input:checked
    ~ .option-label
    .option-title {
    color: #0d6efd;
}

[data-bs-theme="dark"]
    .character-options-section
    .form-check-input:checked
    ~ .option-label
    .option-title {
    color: #64b5f6;
}

.character-options-section .option-card::before {
    background: linear-gradient(90deg, #0d6efd, #6610f2);
}

[data-bs-theme="dark"] .character-options-section .option-card::before {
    background: linear-gradient(90deg, #64b5f6, #9c27b0);
}

.character-options-section
    .form-check-input:checked
    ~ .option-label
    .option-card::before {
    background: linear-gradient(90deg, #0d6efd, #198754);
}

[data-bs-theme="dark"]
    .character-options-section
    .form-check-input:checked
    ~ .option-label
    .option-card::before {
    background: linear-gradient(90deg, #64b5f6, #66bb6a);
}

.character-options-section
    .form-check-input:checked
    ~ .option-label
    .option-card {
    border-color: #0d6efd;
    background: rgba(13, 110, 253, 0.03);
}

[data-bs-theme="dark"]
    .character-options-section
    .form-check-input:checked
    ~ .option-label
    .option-card {
    border-color: #64b5f6;
    background: rgba(100, 181, 246, 0.05);
}
[data-bs-theme="dark"]
    .fl-flasher {
    background-color: #222;
    color: #fff;
}

[data-bs-theme="light"]
    .special-char-btn {
    color: #222;
}

body.light-mode .fl-flasher {
    background-color: #fff;
    color: #000;
}

}
.copy_code {
    cursor: pointer;
    transition: all 0.2s;
    padding: 2px 6px;
    border-radius: 3px;
}
.copy_code:hover {
    text-decoration: underline;
    transform: scale(1.02);
}
/* Sticky Footer - Make footer always at bottom */
html,
body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

.footer {
    flex-shrink: 0;
}

/* Container for keyboard */
.keyboard-container {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    min-height: 300px;
    outline: none;
    user-select: none;
    cursor: pointer;
}

.keyboard-container:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Simple keyboard plugin styles */
.simple-keyboard {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

/* Keyboard layout container - main + numpad */
.keyboard-layout-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

.main-keyboard {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 10px;
    border: 1px solid #dee2e652;
}

.numpad-keyboard {
    display: grid;
    grid-template-columns: repeat(4, 45px);
    grid-template-rows: repeat(5, 40px);
    gap: 6px;
    background: rgba(0, 0, 0, 0.05);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #dee2e652;
    justify-content: center;
}

.kb-row {
    display: flex;
    gap: 4px;
    justify-content: center;
    align-items: center;
}

.kb-key {
    background: #ffffff;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    padding: 8px 12px;
    min-width: 40px;
    min-height: 40px;
    font-family: "Fira Code", monospace;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.kb-key:hover {
    background: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.kb-key:active,
.kb-key.active {
    background: #28a745 !important;
    color: white !important;
    border-color: #1e7e34 !important;
    transform: translateY(1px) scale(1.05);
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.6), 0 1px 2px rgba(0, 0, 0, 0.2);
    animation: keyPulse 0.3s ease-out;
}

@keyframes keyPulse {
    0% {
        transform: translateY(1px) scale(1);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }

    50% {
        transform: translateY(1px) scale(1.1);
        box-shadow: 0 0 20px rgba(40, 167, 69, 0.8),
            0 1px 2px rgba(0, 0, 0, 0.2);
    }

    100% {
        transform: translateY(1px) scale(1.05);
        box-shadow: 0 0 15px rgba(40, 167, 69, 0.6),
            0 1px 2px rgba(0, 0, 0, 0.2);
    }
}

/* Special key styles */
.kb-key.special {
    background: #6c757d;
    color: white;
    border-color: #5a6268;
    font-size: 11px;
}

.kb-key.special:hover {
    background: #5a6268;
}

.kb-key.special.active {
    background: #28a745 !important;
    border-color: #1e7e34 !important;
    color: white !important;
    transform: translateY(1px) scale(1.05);
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.6), 0 1px 2px rgba(0, 0, 0, 0.2);
    animation: keyPulse 0.3s ease-out;
}

/* Key size variations */
.kb-key.wide {
    min-width: 70px;
}

.kb-key.extrawide {
    min-width: 90px;
}

.kb-key.spacebar {
    min-width: 250px;
    height: 40px;
}

/* Numpad specific styles */
.numpad-row {
    display: flex;
    gap: 4px;
    justify-content: center;
    align-items: stretch;
}

.kb-key.numpad-number {
    background: #f8f9fa;
    border-color: #adb5bd;
    min-width: 50px;
    min-height: 45px;
    font-weight: 600;
    font-size: 16px;
}

/* Make sure all numpad keys have consistent base sizing */
.numpad-keyboard .kb-key {
    width: 100%;
    height: 100%;
    min-width: unset;
    min-height: unset;
    font-weight: 600;
    margin: 0;
}

/* Numpad in dark mode */
body.dark-mode .numpad-keyboard {
    background: rgba(255, 255, 255, 0.05);
    border-color: #495057;
}

body.dark-mode .main-keyboard {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #495057;
    border-radius: 8px;
    padding: 10px;
}

body.dark-mode .kb-key.numpad-number {
    background: #343a40;
    border-color: #6c757d;
    color: #fff;
}

/* Row specific adjustments */
.kb-row[data-row="0"] .kb-key {
    min-width: 45px;
}

.kb-row[data-row="4"] .kb-key {
    min-width: 55px;
}

/* Responsive design */
@media (max-width: 768px) {
    .keyboard-layout-container {
        flex-direction: column;
        gap: 15px;
    }

    .kb-key {
        min-width: 30px;
        min-height: 30px;
        padding: 4px 6px;
        font-size: 10px;
    }

    .kb-key.wide {
        min-width: 50px;
    }

    .kb-key.extrawide {
        min-width: 60px;
    }

    .kb-key.spacebar {
        min-width: 150px;
        height: 30px;
    }

    .kb-row[data-row="0"] .kb-key {
        min-width: 28px;
    }

    .kb-row[data-row="4"] .kb-key {
        min-width: 40px;
    }

    /* Numpad mobile adjustments */
    .numpad-keyboard {
        grid-template-columns: repeat(4, 35px);
        grid-template-rows: repeat(5, 30px);
        padding: 8px;
    }

    .numpad-keyboard .kb-key {
        font-size: 14px;
        width: 100%;
        height: 100%;
    }
}

/* Key history table styling */
#key-history table {
    font-family: "Fira Code", monospace;
    font-size: 12px;
}

#key-history code {
    background: #f8f9fa;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 11px;
}

/* Current key display */
#current-key,
#current-keycode,
#current-code {
    font-family: "Fira Code", monospace;
    font-weight: 600;
    font-size: 16px;
    color: #0d6efd;
}

/* Focus instruction */
.keyboard-container::before {
    content: "👆 Clique aqui e pressione qualquer tecla";
    display: block;
    text-align: center;
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 15px;
}

.keyboard-container:focus::before {
    content: "✅ Ativo - Pressione teclas para testar";
    color: #28a745;
}

/* Enhanced Navigation Styles */
.navbar {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Light mode navbar */
[data-bs-theme="light"] .navbar {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

/* Light mode brand */
[data-bs-theme="light"] .navbar-brand {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
}

/* Light mode toggler */
[data-bs-theme="light"] .navbar-toggler {
    background: rgba(0, 0, 0, 0.05);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(96, 165, 250, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Light mode toggler icon */
[data-bs-theme="light"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-collapse {
    justify-content: space-between;
}

.nav-item {
    margin: 0 0.25rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
}

/* Light mode nav link */
[data-bs-theme="light"] .nav-link {
    color: rgba(0, 0, 0, 0.7);
}

.nav-link:hover,
.nav-link:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Light mode nav link hover */
[data-bs-theme="light"] .nav-link:hover,
[data-bs-theme="light"] .nav-link:focus {
    color: #000;
    background: rgba(0, 0, 0, 0.05);
}

.nav-link.dropdown-toggle::after {
    margin-left: 0.5rem;
    border-width: 4px;
    border-color: rgba(255, 255, 255, 0.85) transparent transparent transparent;
}

/* Light mode dropdown toggle arrow */
[data-bs-theme="light"] .nav-link.dropdown-toggle::after {
    border-color: rgba(0, 0, 0, 0.7) transparent transparent transparent;
}

.dropdown-menu {
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
    min-width: 220px;
    backdrop-filter: blur(10px);
}

/* Light mode dropdown menu */
[data-bs-theme="light"] .dropdown-menu {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.75rem 1.25rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

/* Light mode dropdown item */
[data-bs-theme="light"] .dropdown-item {
    color: rgba(0, 0, 0, 0.7);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(96, 165, 250, 0.2);
    color: #fff;
}

/* Light mode dropdown item hover */
[data-bs-theme="light"] .dropdown-item:hover,
[data-bs-theme="light"] .dropdown-item:focus {
    background: rgba(59, 130, 246, 0.1);
    color: #000;
}

.dropdown-item i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

.btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
}

/* Light mode button */
[data-bs-theme="light"] .btn-outline-secondary {
    border-color: rgba(0, 0, 0, 0.2);
    color: rgba(0, 0, 0, 0.7);
}

.btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Light mode button hover */
[data-bs-theme="light"] .btn-outline-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.3);
}

/* Donate Button Styling */
.btn-donate-header {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    border: none;
    color: #1a1a2e;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-donate-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
    color: #1a1a2e;
    background: linear-gradient(135deg, #ffca28, #ffa726);
}

.btn-donate-header i {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%,
    100% {
        transform: scale(1);
    }
    10%,
    30% {
        transform: scale(1.1);
    }
    20%,
    40% {
        transform: scale(1);
    }
}

/* Light mode donate button (same styling) */
[data-bs-theme="light"] .btn-donate-header {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #1a1a2e;
}

[data-bs-theme="light"] .btn-donate-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
    color: #1a1a2e;
    background: linear-gradient(135deg, #ffca28, #ffa726);
}

/* Mobile Navigation Improvements */
@media (max-width: 767.98px) {
    .navbar-collapse {
        background: #1a1a2e;
        border-radius: 0 0 12px 12px;
        margin-top: 0.5rem;
        padding: 1rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        max-height: 70vh;
        overflow-y: auto;
    }

    /* Light mode mobile nav */
    [data-bs-theme="light"] .navbar-collapse {
        background: #f8f9fa;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav.ms-auto {
        margin-top: 1rem;
    }

    .nav-item {
        margin: 0.25rem 0;
    }

    .nav-link {
        padding: 0.875rem 1.25rem;
        border-radius: 8px;
        justify-content: space-between;
    }

    .dropdown-menu {
        background: rgba(26, 26, 46, 0.9);
        box-shadow: none;
        margin: 0.5rem 0 0 0;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Light mode mobile dropdown */
    [data-bs-theme="light"] .dropdown-menu {
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .dropdown-toggle::after {
        margin-left: auto;
    }
}

/* Desktop Navigation Enhancements */
@media (min-width: 768px) {
    .navbar-nav .dropdown:hover .dropdown-menu {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    .navbar-nav .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
    }

    .navbar-nav .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f2049 50%, #1a1a2e 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding: 1.5rem 0;
    position: relative;
    overflow: hidden;
}

/* Add a subtle glow effect */
.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        #2196f3,
        #1976d2,
        transparent
    );
    animation: glowMove 3s linear infinite;
}

@keyframes glowMove {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 100% 0;
    }
}

.footer-links li:not(:last-child)::after {
    content: " | ";
    color: rgba(255, 255, 255, 0.5);
    margin-left: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.25rem 0;
}

.footer-links a:hover {
    color: #64b5f6 !important;
    text-decoration: none !important;
    transform: translateY(-2px);
}

/* Add underline effect on hover */
.footer-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #64b5f6;
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

.copyright-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 0 2px rgba(33, 150, 243, 0.3);
}

/* Add subtle particles effect */
.footer-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.footer-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(33, 150, 243, 0.3);
    border-radius: 50%;
    animation: particleFloat 8s infinite linear;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100%) translateX(20px);
        opacity: 0;
    }
}

/* Content should be above particles */
.footer-content {
    position: relative;
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer .row {
        text-align: center;
    }

    .footer-links {
        margin-top: 1rem;
    }

    .footer-links li:not(:last-child)::after {
        content: "";
        margin-left: 0;
    }

    .footer-links li {
        display: block;
        margin-bottom: 0.5rem;
    }

    .footer-links li::after {
        content: " | ";
        color: rgba(255, 255, 255, 0.5);
        margin: 0 0.5rem;
    }

    .footer-links li:last-child::after {
        content: "";
    }
}
