/* ===== PÁGINAS DE AUTH & DASHBOARD ===== */
.auth-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e1e2f, #3a3a5a);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-box {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    color: var(--accent-color);
    font-size: 24px;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
}

.auth-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
}

.auth-link:hover {
    text-decoration: underline;
}

.captcha-container {
    background: var(--input-bg);
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 15px;
}

.captcha-code {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-color);
    letter-spacing: 3px;
    margin-bottom: 10px;
    font-family: var(--font-family-mono);
}

.password-strength {
    margin-top: 5px;
    font-size: 12px;
}

.strength-weak {
    color: #f44336;
}

.strength-medium {
    color: #ff9800;
}

.strength-strong {
    color: #4caf50;
}

.welcome-container {
    text-align: center;
    padding: 60px 20px;
    color: #f0f0f0;
}

.welcome-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.welcome-subtitle {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.dashboard-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.dashboard-card {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 10px;
    min-width: 200px;
    flex: 1 1 200px;
    max-width: 300px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid transparent;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.dashboard-card h3 {
    margin-bottom: 10px;
    color: #fff;
    font-size: 1.2em;
}

.dashboard-card p {
    font-size: 0.95em;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ===== FIM PÁGINAS DE AUTH & DASHBOARD ===== */

/* ===== SW.PHP (SWITCH VIEWER) ===== */
.switch-container {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
    border: 2px solid var(--border-color);
    min-height: auto;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.switch-header-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    gap: 15px;
    flex-wrap: wrap;
}

.switch-select-wrapper {
    flex: 1;
    min-width: 300px;
}

.switch-select-wrapper label {
    display: block;
    font-weight: bold;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.switch-select-wrapper>div {
    display: flex;
    gap: 8px;
    align-items: center;
}

#switchSelect {
    width: 100%;
    max-width: 520px;
    padding: 6px 8px;
    border-radius: 4px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.header-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.show-filters-btn,
.refresh-btn,
.apply-btn,
.save-db-btn,
.reload-btn,
.reset-btn {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.show-filters-btn {
    padding: 8px;
    font-size: 11px;
}

.refresh-btn {
    padding: 8px;
    font-size: 11px;
    margin-top: 5px;
}

.apply-btn,
.reset-btn {
    padding: 8px;
}

.save-db-btn,
.reload-btn {
    padding: 8px;
}

.show-filters-btn:hover,
.refresh-btn:hover,
.apply-btn:hover,
.save-db-btn:hover,
.reload-btn:hover,
.reset-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-color);
}

.refresh-btn:disabled,
.save-db-btn:disabled,
.reload-btn:disabled {
    background: var(--bg-secondary);
    color: var(--text-muted);
    cursor: not-allowed;
    border-color: var(--border-color);
}

.switch-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 0;
    border-bottom: none;
    min-height: auto;
    position: relative;
}

.switch-info {
    flex: 1;
    min-width: 0;
    position: relative;
    justify-content: space-between;
    align-items: center;
}

.model-tab {
    background: var(--bg-tertiary);
    padding: 8px 15px;
    border-radius: 8px 0 0 0;
    border: 2px solid #4a4a6a;
    border-bottom: none;
    position: relative;
    max-width: 200px;
    min-width: 120px;
    float: left;
}

.model-tab h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: default;
    line-height: 1.2;
}

.ip-tab {
    background: var(--bg-tertiary);
    padding: 8px 15px;
    border-radius: 0 8px 0 0;
    border: 2px solid #4a4a6a;
    border-bottom: none;
    position: relative;
    max-width: 150px;
    min-width: 100px;
    text-align: center;
    float: right;
    height: 34px;
}

.ip-tab span {
    color: var(--accent-color);
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    line-height: 1.2;
}

.model-tab h3:hover {
    z-index: 1000;
    background: var(--bg-secondary);
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    white-space: normal;
    overflow: visible;
    max-width: 400px;
    transform: translateY(-5px);
    cursor: help;
}

.ports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 60px);
    grid-auto-rows: 60px;
    gap: 8px;
    min-width: min-content;
    width: max-content;
}

.port-item {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    background: #32324d;
    border-radius: 4px;
    padding: 4px 3px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: help;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.port-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.port-item.filtered-out {
    opacity: 0.15;
    transform: scale(0.9);
}

.port-item.vlan-highlight {
    animation: vlan-pulse 2s infinite;
}

@keyframes vlan-pulse {
    0% {
        border-color: #dddbdb;
        border-width: 1px;
    }

    50% {
        border-color: var(--accent-color);
        border-width: 3px;
    }

    100% {
        border-color: #dddbdb;
        border-width: 1px;
    }
}

.port-status {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    box-shadow: 0 0 2px currentColor;
    transition: all 0.2s ease;
}

.port-number {
    font-weight: bold;
    font-size: 9px;
    color: var(--text-primary);
    margin-bottom: 1px;
    margin-top: 6px;
}

.port-type,
.port-media {
    display: flex;
    gap: 2px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1px;
}

.port-type {
    font-size: 7px;
    color: var(--text-secondary);
}

.port-media {
    font-size: 6px;
    opacity: 0.8;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.port-status.up,
.status-indicator.up {
    background: #00ff44;
    color: #00ff44;
    animation: port-blink-random 0.5s infinite;
}

.port-status.amber,
.status-indicator.amber {
    background: #ffaa00;
    color: #ffaa00;
    animation: port-blink-random 0.8s infinite;
}

.port-status.down,
.status-indicator.down {
    background: #666;
    color: #666;
}

.port-status.disabled,
.status-indicator.disabled {
    background: #560909ff;
    color: #560909ff;
}

.port-status.trunk,
.status-indicator.trunk {
    background: #ff0000af;
    color: #ff0000af;
}

@keyframes port-blink-random {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 2px currentColor;
    }

    25% {
        opacity: 0.7;
        box-shadow: 0 0 4px currentColor, 0 0 6px currentColor;
    }

    50% {
        opacity: 0.4;
        box-shadow: 0 0 1px currentColor;
    }

    75% {
        opacity: 0.8;
        box-shadow: 0 0 3px currentColor;
    }
}

.type-badge,
.extra-status {
    display: inline-block;
    width: 22px;
    height: 12px;
    border-radius: 2px;
    font-size: 8px;
    font-weight: bold;
    text-align: center;
    line-height: 12px;
    color: white;
    vertical-align: middle;
}

.type-badge.ethernet {
    background: #666;
}

.type-badge.fastethernet {
    background: #44aa44;
}

.type-badge.gigabit {
    background: #4488ff;
}

.type-badge.tengigabit {
    background: #8844ff;
}

.type-badge.utp {
    background: #ffaa00;
}

.type-badge.fiber {
    background: #560909ff;
}

.type-badge.trunk {
    background: #ff0000af;
}

.type-badge.disabled {
    background: #333;
}

.type-badge.access {
    background: #67a967ff;
}

.switch-footer {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-indicator {
    font-size: 12px;
    color: var(--accent-color);
    font-style: italic;
}

.switch-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(26, 26, 42, 0.9);
    color: var(--text-secondary);
    z-index: 10;
    border-radius: 10px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #333;
    border-top: 4px solid #5a5aad;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.legend-section {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
    width: 100%;
}

.legend-collapsible {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 0;
    min-width: 160px;
    max-width: 180px;
    border: 2px solid #4a4a6a;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3), inset 0 -2px 4px rgba(255, 255, 255, 0.05), 0 2px 8px rgba(0, 0, 0, 0.4);
}

.legend-toggle {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: none;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    text-align: center;
    padding: 4px 0;
    height: auto;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 6px 6px 0 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.legend-box {
    margin-top: 0;
    background: var(--bg-secondary);
    border-radius: 0 0 6px 6px;
    padding: 6px;
    font-size: 9px;
    color: var(--text-secondary);
}

.legend-box td {
    font-size: 11px;
    padding: 2px 0;
    color: var(--text-secondary);
}

.switch-status {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    margin: 0;
    min-width: auto;
}

.info-panel {
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-top: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.info-header {
    background: var(--bg-tertiary);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 14px;
}

.info-content {
    padding: 12px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
}

.info-item {
    display: flex;
    flex-direction: column;
    padding: 4px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-item label {
    font-weight: bold;
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 3px;
}

.info-value {
    color: var(--text-primary);
    font-size: 12px;
    word-break: break-word;
}

.filters-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    backdrop-filter: blur(5px);
}

.filters-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 0;
    width: 320px;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    border: 2px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.filters-modal-header {
    background: var(--bg-tertiary);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filters-modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 16px;
}

.close-filters-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-filters-btn:hover {
    background: #5a5a7a;
}

.filters-modal-body {
    padding: 20px;
}

.filter-divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
    color: var(--accent-color);
    font-weight: bold;
}

.filter-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
    z-index: 1;
}

.filter-divider span {
    background: var(--bg-secondary);
    padding: 0 10px;
    position: relative;
    z-index: 2;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: bold;
    font-size: 14px;
}

#vlan-checkboxes>label {
    text-align: center;
}

.checkbox-group {
    display: flex;
    gap: 30px;
}

.checkbox-group.horizontal {
    justify-content: center;
    text-align: center;
    flex-direction: row;
    gap: 15px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
    margin-bottom: 0;
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
}

.filter-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

#btn-apply-filters,
#btn-reset-filters {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px;
    font-size: 11px;
}

#btn-apply-filters:hover,
#btn-reset-filters:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-color);
}

.custom-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.95);
    color: var(--text-primary);
    font-size: 11px;
    padding: 10px 12px;
    border-radius: 6px;
    white-space: pre-line;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
    z-index: 10000;
    text-align: left;
    line-height: 1.4;
    min-width: 200px;
    max-width: 280px;
    word-wrap: break-word;
    border: 1px solid var(--border-color);
    pointer-events: none;
}

/* ===== FIM SW.PHP ===== */

/* ===== LOCALISEC2.PHP (MAC FINDER) ===== */
.form-container {
    max-width: 750px;
    margin: 0 auto;
    padding: 20px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(138, 164, 255, 0.2);
}

.switches-container {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    overflow: hidden;
}

.switches-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.select-all-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--accent-color);
    cursor: pointer;
}

.selected-count {
    font-size: 12px;
    color: var(--text-secondary);
    background: #5a5a5a;
    padding: 4px 8px;
    border-radius: 12px;
}

.switches-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.switch-item {
    padding: 6px 10px 6px 30px;
    transition: background-color 0.2s;
    min-height: 40px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.switch-item:nth-child(odd) {
    border-right: 1px solid var(--border-color);
}

.switch-item:hover {
    background: var(--bg-tertiary);
}

.switch-checkbox {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%) scale(1.1);
}

.switch-info {
    width: 100%;
}

.switch-hostname {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 13px;
    margin-bottom: 2px;
}

.switch-details {
    display: flex;
    flex-direction: column;
    gap: 1px;
    font-size: 11px;
    color: var(--text-secondary);
}

.switch-ip {
    color: var(--accent-color);
}

.switch-location {
    color: #ffaa00;
}

.switch-model {
    color: #00ffaa;
}

#results-container {
    width: 100%;
    margin: 20px auto 0 auto;
    max-width: 750px;
    display: none;
}

.fa-spinner {
    animation: fa-spin 1s linear infinite;
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@-webkit-keyframes fa-spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

/* ===== FIM LOCALISEC2.PHP ===== */

/* ===== CONFIGUREC2C3.PHP (MODE SELECTION) ===== */
.mode-selection {
    margin: 40px auto;
    padding: 20px;
}

.mode-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.mode-card {
    flex: 1 1 250px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mode-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
}

.mode-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.mode-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.mode-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    flex-grow: 1;
}

.mode-select-btn {
    margin-top: 15px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.mode-selection .text-center {
    margin-bottom: 30px;
    color: var(--text-primary);
}

/* ===== FIM CONFIGUREC2C3.PHP ===== */

/* ===== CONFIG_SWITCH.PHP (SWITCH CONFIGURATION) ===== */
.main-layout {
    display: flex;
    flex-direction: row;
    width: 650px;
    height: 500px;
    max-width: none;
    margin: 20px auto;
    background: var(--bg-primary);
    color: var(--text-secondary);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    width: 600px;
    height: 100%;
}

.main-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #f1c40f;
    background: var(--bg-secondary);
    flex-shrink: 0;
    text-align: center;
    border-top-left-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 10px;
}

.content-window {
    width: 600px;
    flex-grow: 1;
    overflow: hidden;
    padding: 10px;
    box-sizing: border-box;
    position: relative;
}

.control-footer-wrapper {
    width: 600px;
    height: 70px;
    padding: 5px 10px;
    box-sizing: border-box;
    background: var(--bg-secondary);
    border-top: 1px solid var(--bg-tertiary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    border-bottom-left-radius: 8px;
}

.tab-bar {
    width: 50px;
    height: 100%;
    background: var(--bg-secondary);
    border-left: 1px solid var(--bg-tertiary);
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    display: flex;
    flex-direction: column;
}

.tab-item {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #e0e0e0;
    font-size: 1.4em;
    border-bottom: 1px solid var(--bg-tertiary);
    transition: background-color 0.2s, color 0.2s, opacity 0.2s;
    position: relative;
}

.tab-item.active {
    background-color: var(--bg-primary);
    color: #3498db;
    border-left: none;
}

.tab-item.disabled {
    cursor: not-allowed;
    opacity: 0.3;
}

@keyframes border-flash {

    0%,
    50%,
    100% {
        border: 1px solid transparent;
    }

    25%,
    75% {
        border: 1px solid #3498db;
    }
}

.tab-item.tab-flash {
    animation: border-flash 1.2s ease-in-out;
    animation-iteration-count: 2;
    border-radius: 3px;
    margin: 0;
    position: relative;
    z-index: 10;
}

.tab-content {
    display: none;
    padding: 0 5px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    height: 100%;
    flex-direction: column;
}

.tab-content.active {
    display: block;
    opacity: 1;
}

#tab-content-serial.active,
#tab-content-model.active,
#tab-content-maint.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 100%;
}

#tab-content-config.active {
    display: block;
    height: 100%;
    overflow-y: auto;
}

#tab-content-cli.active {
    display: block !important;
    height: 380px !important;
    min-height: 380px !important;
}

#tab-content-cli.active>#results-container {
    display: block !important;
    height: 100% !important;
    max-height: 100% !important;
}

#cliOutput {
    height: 360px !important;
    max-height: 360px !important;
    min-height: 360px !important;
    margin-top: -30px !important;
    margin: 0;
    padding: 10px;
    box-sizing: border-box;
    overflow-y: auto;
}

#tab-content-serial .form-group>div {
    display: flex;
    align-items: center;
    gap: 10px;
}

#tab-content-serial .form-group>div>div {
    white-space: nowrap;
}

#tab-content-serial #chk_auto_port+label {
    cursor: pointer;
}

#selectedOS,
#portCountDisplay {
    color: #f1c40f;
}

#tutorialStatus {
    margin-bottom: 10px;
    display: none;
}

#tutorialContainer {
    border: 1px solid var(--bg-tertiary);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    background: var(--bg-secondary);
}

#tutorialStepTitle {
    color: #3498db;
    margin-top: 0;
}

#ipConfig .alert-warning {
    margin-bottom: 15px;
    margin-top: 10px;
    padding: 6px 10px;
}

#ipConfig .chk-item:has(#chk_change_vlan) {
    background: #4a4a5a;
    border-color: #3498db;
    padding: 5px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#ipConfig .chk-item:has(#chk_change_vlan)>div:first-child {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

#ipConfig #chk_change_vlan {
    width: 20px;
}

#vlanAdminId {
    width: 70px;
    margin-left: 10px;
}

#sntpFields label,
#certFields label {
    font-size: 0.8em;
}

#certFields>div:nth-child(1) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

#certFields>div:nth-child(3) {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

#certFields>div:nth-child(4) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

#tab-content-config>div:nth-child(2)>div:nth-child(3) {
    margin-top: 10px;
}

#btnTutorialBack,
#btnTutorialNext {
    padding: 8px;
    font-size: 0.8em;
}

#featuresConfig .checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

#featuresConfig .chk-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
    font-size: 13px;
    font-weight: 500;
}

#featuresConfig .chk-item:hover {
    border-color: var(--accent-color);
    background: var(--bg-tertiary);
}

#featuresConfig .chk-item input[type="checkbox"] {
    order: 2;
    margin: 0;
}

#featuresConfig .chk-item span {
    order: 1;
    color: var(--text-primary);
}

#featuresConfig .chk-item.todo {
    border-color: var(--warning-color);
}

#reset-creds-field .chk-item,
#reset-config-field .chk-item {
    border: none;
    background: transparent;
}

#reset-config-info {
    display: none;
    font-size: 0.75em;
    margin-top: 5px;
    color: #ffcc00;
}

#maint-alert {
    margin-top: 10px;
    display: none;
    font-size: 0.8em;
}

#tab-content-maint .alert-info {
    font-size: 0.8em;
}

#executionControls {
    text-align: center;
    display: none;
}

.btn-group-init #btnInit {
    width: 100%;
}

.btn-stop {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 100px;
}

.btn-back {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 100px;
}

.cli-group-row {
    margin: 10px 0;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    border-left: 3px solid #3498db;
    display: flex;
    align-items: center;
    min-height: 35px;
    transition: all 0.3s ease;
}

.cli-group-row.active {
    background: rgba(52, 152, 219, 0.1);
    border-left-color: #3498db;
}

.cli-group-row.completed {
    background: rgba(46, 204, 113, 0.1);
    border-left-color: #2ecc71;
}

.cli-group-row.failed {
    background: rgba(231, 76, 60, 0.1);
    border-left-color: #e74c3c;
}

.cli-group-row span:first-child {
    margin-right: 12px;
    width: 24px;
    text-align: center;
    font-size: 16px;
}

.cli-group-row span:nth-child(2) {
    flex-grow: 1;
    font-weight: bold;
    font-size: 14px;
}

#stateVerification .carousel-container {
    position: relative;
    width: 100%;
    max-width: 580px;
    height: 440px;
    margin: 0 auto 20px auto;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    box-shadow: var(--shadow-medium);
}

#stateVerification .carousel-slide {
    display: flex;
    transition: transform 0.4s ease-in-out;
    height: 100%;
}

#stateVerification .carousel-item {
    min-width: 100%;
    width: 100%;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

#stateVerification .carousel-image-zoom-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

#stateVerification .carousel-image-zoom {
    width: 400px;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: crosshair;
    transition: transform 0.3s ease-out;
    transform-origin: 50% 50%;
}

#stateVerification .carousel-caption {
    width: 100%;
    padding: 12px 15px;
    text-align: justify;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-radius: 6px;
    margin-top: 10px;
    min-height: 60px;
    border: 1px solid var(--border-color);
    box-sizing: border-box;
}

#stateVerification .carousel-controls {
    display: none !important;
}

#stateVerification #prevSlide,
#stateVerification #nextSlide {
    position: absolute !important;
    display: flex !important;
    top: 190px !important;
    transform: translateY(-50%) !important;
    text-indent: 0 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    padding: 0 !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    font-size: 1.5em !important;
    z-index: 100 !important;
    opacity: 0.8 !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3) !important;
    min-width: 0 !important;
    line-height: 1;
}

#stateVerification #prevSlide {
    left: 10px !important;
}

#stateVerification #nextSlide {
    right: 10px !important;
}

#stateVerification #prevSlide:disabled,
#stateVerification #nextSlide:disabled {
    cursor: not-allowed !important;
    opacity: 0.4 !important;
    background: var(--bg-secondary) !important;
    color: var(--text-muted) !important;
    box-shadow: none !important;
}

#stateVerification #prevSlide:hover:not(:disabled),
#stateVerification #nextSlide:hover:not(:disabled) {
    opacity: 1 !important;
    background: var(--accent-color) !important;
    color: white !important;
    border-color: var(--accent-color) !important;
}

/* ===== FIM CONFIG_SWITCH.PHP ===== */

/* ===== CREATE2.CSS (EQUIPMENT CREATION) ===== */
.mode-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
    justify-content: center;
}

.mode-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.mode-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.mode-card.selected {
    border-color: var(--accent-color);
    background: var(--bg-tertiary);
}

.mode-icon {
    font-size: 48px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.mode-card h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.5em;
}

.mode-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

#individual-equipment-card {
    min-height: 650px;
    max-width: 450px;
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-sizing: border-box;
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.card-controls {
    display: flex;
    gap: 5px;
}

.card-control-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.card-control-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-color);
}

.equipment-content {
    padding: 15px;
}

.equipment-section {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    height: auto;
}

.equipment-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.section-header {
    background: var(--bg-tertiary);
    padding: 10px 12px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--accent-color);
    border: 1px solid var(--border-color);
    margin-bottom: 8px;
    transition: background-color 0.2s ease;
}

.section-header:hover {
    background: var(--bg-secondary);
}

.section-header h7 {
    margin: 0;
    flex: 1;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-content {
    padding: 10px 0;
}

.section-content.collapsed {
    display: none;
}

.equipment-field label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 5px;
    font-weight: 600;
}

.selection-with-crud {
    display: flex;
    gap: 8px;
    align-items: center;
}

.selection-with-crud .form-control {
    flex: 1;
    min-width: 80px;
}

.action-btn-group {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.btn-icon-small {
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
}

.btn-edit {
    background: #dba11c;
    color: #fff;
}

.btn-edit:hover {
    background: #e6b800;
}

.btn-add {
    background: #5a5aad;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-add:hover {
    background: #6a6acd;
}

.add-group-form,
.add-manufacturer-form,
.add-model-form {
    display: none;
    margin-top: 8px;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: 4px;
    border: 1px solid var(--border-color);
    clear: both;
}

.add-group-form input,
.add-manufacturer-form input,
.add-model-form input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--input-bg);
    color: var(--text-primary);
    margin-bottom: 8px;
}

.add-group-form .form-actions,
.add-manufacturer-form .form-actions,
.add-model-form .form-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding-top: 0;
    border-top: none;
    margin-top: 0;
}

#results-container,
#vendor-selection {
    max-width: 800px;
    width: 100%;
    margin: 30px auto 0 auto;
}

.results-group {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin: 0 auto 20px auto;
    max-width: 100%;
}

.results-group h4 {
    margin: 0 0 15px 0;
    color: var(--accent-color);
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.vendor-groups-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.manufacturer-model-group {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 15px;
}

.manufacturer-model-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.vendor-mac {
    font-family: monospace;
    font-weight: bold;
    color: var(--accent-color);
    font-size: 14px;
}

.vendor-count {
    background: #5a5a5a;
    color: var(--text-secondary);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

.group-selection,
.manufacturer-selection,
.model-selection {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}

.group-selection select,
.manufacturer-selection select,
.model-selection select {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

#continue-section {
    margin-top: 20px;
    padding-top: 0;
    text-align: center;
}

.collapsible-section {
    margin-bottom: 15px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.collapsible-header {
    background: var(--bg-tertiary);
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.collapsible-content {
    padding: 15px;
    background: var(--bg-secondary);
}

.collapsible-section:not(.expanded) .collapsible-content {
    display: none;
}

#individual-equipment-card .cli-box {
    max-height: 200px;
}

#equipment-list {
    width: 100%;
    max-width: 100%;
    margin: 20px auto;
}

.equipment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    width: 100%;
}

.equipment-card {
    width: 520px;
    max-width: 100%;
    flex: 0 0 auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-sizing: border-box;
}

.equipment-card.duplicate {
    border: 2px solid #ff4444;
    background: var(--bg-primary);
}

.equipment-card.excluded {
    opacity: 0.6;
    background: #2a2a2a;
}

.equipment-card.excluded .equipment-field input,
.equipment-card.excluded .equipment-field select,
.equipment-card.excluded .equipment-field textarea {
    background: #1a1a1a;
    color: #666;
    cursor: not-allowed;
}

.exclude-checkbox {
    padding: 10px 15px;
    background: #442222;
    border-bottom: 1px solid rgba(255, 68, 68, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.exclude-checkbox label {
    color: #ff8888;
    font-weight: 500;
    margin: 0;
}

.equipment-card.minimized {
    height: 60px;
    overflow: hidden;
}

.vlan-filter-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

#eth-section {
    display: none !important;
    transition: all 0.3s ease;
}

#eth-section[style*="display: block"] {
    display: block !important;
}

.btn-snmp-fixed {
    background: var(--accent-color);
    color: white;
    border: 1px solid #5a5aad;
    transition: all 0.3s;
    font-weight: bold;
    margin-bottom: 20px;
    width: 170px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-snmp-fixed:hover {
    background: #5a5aad;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.snmp-float-button {
    position: fixed;
    left: calc(50% + 180px);
    top: 180px;
    transform: none;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 100px;
    justify-content: center;
}

.snmp-float-button:hover {
    background: #6a7ecc;
    transform: translateY(-50%) scale(1.05);
}

.snmp-float-button:active {
    transform: translateY(-50%) scale(0.98);
}

#editPortModal .modal-content {
    width: 400px !important;
    max-width: 400px !important;
    margin: 50px auto !important;
}

#editPortModal .modal-header {
    padding: 12px 15px !important;
    border-bottom: 1px solid var(--border-color) !important;
}

#editPortModal .modal-header h3 {
    font-size: 16px !important;
    margin: 0 !important;
}

#editPortModal .modal-body {
    padding: 15px !important;
    max-height: 380px !important;
    overflow-y: auto !important;
}

#editPortModal label {
    font-size: 13px !important;
    margin-bottom: 4px !important;
    display: block !important;
    color: var(--text-secondary) !important;
}

#editPortModal input,
#editPortModal select {
    padding: 6px 8px !important;
    font-size: 13px !important;
    margin-bottom: 12px !important;
    height: 35px !important;
    width: 100%;
    margin-top: 5px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 4px;
}

#editPortModal textarea#edit_port_notes {
    min-height: 60px !important;
    max-height: 80px !important;
    resize: vertical !important;
    padding: 6px 8px !important;
    font-size: 13px !important;
    margin-bottom: 12px !important;
    width: 100%;
    margin-top: 5px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 4px;
    min-height: 100px;
}

#editPortModal .btn {
    padding: 8px !important;
    font-size: 11px !important;
    margin-top: 5px !important;
}

/* ===== FIM CREATE2.CSS ===== */

/* ===== BACKUP_MANAGER.CSS (BACKUP UTILITY) ===== */
.backup-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.backup-actions {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.backup-info {
    color: var(--accent-color);
    font-size: 0.9em;
}

.backup-list {
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
}

.backup-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s;
}

.backup-item:hover {
    background: var(--bg-tertiary);
}

.backup-item:last-child {
    border-bottom: none;
}

.backup-details {
    flex: 1;
}

.backup-name {
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.backup-meta {
    font-size: 0.85em;
    color: var(--text-muted);
}

.backup-actions-buttons {
    display: flex;
    gap: 10px;
}

.btn-backup {
    padding: 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.3s;
}

.btn-backup-download {
    background: #2a7a2a;
    color: white;
}

.btn-backup-download:hover {
    background: #3a8a3a;
}

.btn-backup-delete {
    background: #8b4513;
    color: white;
}

.btn-backup-delete:hover {
    background: #a0522d;
}

.btn-backup-create {
    background: #5a5aad;
    color: white;
    padding: 10px 20px;
    font-size: 1em;
}

.btn-backup-create:hover {
    background: #6a6acd;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3em;
    margin-bottom: 15px;
    color: #555;
}

/* ===== FIM BACKUP_MANAGER.CSS ===== */

/* ===== USER.CSS (USER PROFILE/EDIT) ===== */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
    font-size: 13px;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
}

.password-strength {
    margin-top: 4px;
    font-size: 11px;
    font-weight: bold;
}

.strength-weak {
    color: #dc3545;
}

.strength-medium {
    color: #ff9800;
}

.strength-strong {
    color: #28a745;
}

.btn-password {
    background: rgba(243, 156, 18, 0.8) !important;
    color: white !important;
    border: 1px solid rgba(230, 126, 34, 0.5) !important;
}

.btn-password:hover:not(.btn-disabled) {
    background: rgba(230, 126, 34, 0.9) !important;
    border-color: rgba(243, 156, 18, 0.8) !important;
}

/* ===== FIM USER.CSS ===== */

/* ===== RESPONSIVIDADE ESPECÍFICA ===== */
@media (max-width: 1100px) {
    .equipment-grid {
        justify-content: center;
    }

    .equipment-card {
        width: 95%;
    }
}

@media (max-width: 850px) {

    #results-container,
    #vendor-selection {
        max-width: 95%;
    }

    .snmp-float-button {
        top: 50%;
        left: auto;
        right: 20px;
        transform: translateY(-50%);
    }
}

@media (max-width: 768px) {
    .switch-header-container {
        flex-direction: column;
        align-items: stretch;
    }

    .switch-select-wrapper {
        min-width: 100%;
    }

    .header-buttons {
        width: 100%;
        justify-content: center;
    }

    .data-table {
        min-width: 100% !important;
        width: 100% !important;
    }

    .main-layout {
        width: 100%;
        height: auto;
        flex-direction: column;
        margin: 10px auto;
    }

    .content-wrapper,
    .content-window,
    .control-footer-wrapper {
        width: 100%;
    }

    .main-title {
        border-top-right-radius: 8px;
        order: 1;
    }

    .content-window {
        order: 2;
        min-height: 300px;
        height: auto;
    }

    .tab-bar {
        width: 100%;
        height: 50px;
        flex-direction: row;
        border-left: none;
        border-top: 1px solid var(--bg-tertiary);
        border-radius: 0 0 8px 8px;
        order: 3;
    }

    .tab-item {
        width: 25%;
        height: 50px;
        border-right: 1px solid var(--bg-tertiary);
        border-bottom: none;
        font-size: 1.2em;
    }

    .tab-item:last-child {
        border-right: none;
    }

    .control-footer-wrapper {
        order: 4;
        border-bottom-left-radius: 0;
    }

    #cliOutput {
        max-height: 250px;
    }

    .filters-row {
        flex-direction: column;
    }

    .filter-group {
        min-width: 100%;
    }

    .switches-list {
        grid-template-columns: 1fr;
    }

    .switch-item:nth-child(odd) {
        border-right: none;
    }

    .selection-with-crud {
        flex-wrap: wrap;
    }

    .selection-with-crud .form-control {
        width: 100%;
        flex: 1 1 100%;
        order: 1;
    }

    .selection-with-crud .btn-add {
        order: 2;
        flex-shrink: 0;
        margin-left: auto;
    }

    .selection-with-crud .action-btn-group {
        width: 100%;
        justify-content: flex-end;
        order: 3;
        margin-top: 5px;
    }

    .snmp-float-button {
        top: auto;
        bottom: 20px;
        right: 20px;
        left: auto;
        transform: none;
    }
}

@media (max-width: 480px) {
    .status-msg, .model-tab, .ip-tab {display: none;}
    .switch-container { padding: 0;}
    .switch-body { padding: 5px; margin-top: 0; height: 150px;}

    .ports-grid {
        grid-template-columns: repeat(auto-fill, 50px);
        grid-auto-rows: 60px;
    }

    .equipment-card {
        width: 100% !important;
    }

    .users-actions {
        flex-direction: column;
    }

    .user-btn {
        width: 100%;
        min-width: auto;
    }

    .footer { display: none;}
}

/* ===== FIM RESPONSIVIDADE ESPECÍFICA ===== */