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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

/* ========== Página de Login ========== */
.login-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(160deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 440px;
    padding: 20px;
}

.login-card {
    background: #fff;
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-card-header {
    text-align: center;
    margin-bottom: 36px;
}

.login-card-header h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: 2px;
    margin: 0 0 16px 0;
    padding: 0;
    border: none;
}

.login-divider {
    width: 50px;
    height: 3px;
    background: #d4af37;
    margin: 0 auto 16px;
    border-radius: 2px;
}

.login-card-header p {
    color: #888;
    font-size: 14px;
    margin: 0;
}

/* Alerta de erro */
.login-alert {
    background: #fff5f5;
    color: #c0392b;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 24px;
    text-align: center;
}

/* Campos do formulário */
.login-field {
    margin-bottom: 20px;
}

.login-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.login-field input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: #1a1a2e;
    background: #fafafa;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.login-field input::placeholder {
    color: #bbb;
}

.login-field input:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
    background: #fff;
}

/* Botão de login */
.login-btn {
    width: 100%;
    padding: 15px;
    background: #d4af37;
    color: #1a1a2e;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    margin-top: 8px;
    letter-spacing: 0.5px;
}

.login-btn:hover {
    background: #c5a028;
    transform: translateY(-1px);
}

.login-btn:active {
    transform: translateY(0);
}

/* Rodapé do card */
.login-card-footer {
    margin-top: 32px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.login-card-footer p {
    color: #aaa;
    font-size: 12px;
    margin: 0;
}

/* Responsividade */
@media (max-width: 480px) {
    .login-card {
        padding: 36px 24px;
    }

    .login-card-header h1 {
        font-size: 26px;
    }
}

/* Navbar */
.navbar {
    background-color: #2c3e50;
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar-brand a {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.navbar-menu li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.navbar-menu li a:hover {
    color: #3498db;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar-user span {
    color: #ecf0f1;
}

.navbar-user a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.navbar-user a:hover {
    color: #3498db;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    min-height: calc(100vh - 200px);
}

/* Títulos */
h1 {
    color: #2c3e50;
    margin-bottom: 30px;
}

h2 {
    color: #34495e;
    margin: 20px 0 15px;
}

/* Cards do Dashboard */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 20px;
}

.card-number {
    font-size: 48px;
    font-weight: bold;
    color: #3498db;
    margin: 20px 0;
}

/* Formulários */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Botões */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* Alertas */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-error {
    background-color: #e74c3c;
    color: white;
}

.alert-success {
    background-color: #2ecc71;
    color: white;
}

.alert-info {
    background-color: #3498db;
    color: white;
}

.text-muted {
    color: #7f8c8d;
    font-size: 14px;
    margin-top: 5px;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

.footer p {
    margin: 0;
}

/* Página de desenvolvimento */
.page-header {
    margin-bottom: 30px;
}

.page-header p {
    color: #7f8c8d;
    font-size: 16px;
}

/* Página de Produtos */
.produtos-header {
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.produtos-stats {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.empty-state {
    background: white;
    padding: 60px 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.empty-state p {
    color: #7f8c8d;
    font-size: 16px;
}

/* Tabela de Produtos */
.table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.produtos-table {
    width: 100%;
    border-collapse: collapse;
}

.produtos-table thead {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
}

.produtos-table th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid #3498db;
}

.produtos-table td {
    padding: 15px;
    border-bottom: 1px solid #ecf0f1;
    font-size: 14px;
    color: #2c3e50;
    vertical-align: middle;
}

.produtos-table tbody tr {
    transition: all 0.3s ease;
}

.produtos-table tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.produtos-table tbody tr:last-child td {
    border-bottom: none;
}

/* Estilos especiais para colunas específicas */
.produtos-table tbody tr td:first-child {
    font-weight: 700;
    color: #3498db;
    font-size: 15px;
}

.produtos-table tbody tr td:nth-child(5) {
    font-weight: 600;
    color: #27ae60;
}

/* Efeito de zebra suave */
.produtos-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.produtos-table tbody tr:nth-child(even):hover {
    background-color: #ecf0f1;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.badge-category {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.badge-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.badge-subcategory {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
}

.badge-subcategory:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(155, 89, 182, 0.3);
}

.badge-active {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
}

.badge-active:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(46, 204, 113, 0.3);
}

.badge-inactive {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
}

.badge-inactive:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(149, 165, 166, 0.3);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    animation: slideDown 0.3s;
}

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

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #2c3e50;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.close:hover,
.close:focus {
    color: #000;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
}

.form-group small {
    display: block;
    margin-top: 8px;
    line-height: 1.6;
}

/* DataTables Customização */
.dataTables_wrapper {
    padding: 25px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Cabeçalho com controles */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 25px;
}

/* Labels */
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    font-weight: 500;
    color: #2c3e50;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Select de quantidade */
.dataTables_wrapper .dataTables_length select {
    padding: 8px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: white;
    color: #2c3e50;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.dataTables_wrapper .dataTables_length select:hover {
    border-color: #3498db;
}

.dataTables_wrapper .dataTables_length select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Campo de busca */
.dataTables_wrapper .dataTables_filter {
    position: relative;
}

.dataTables_wrapper .dataTables_filter input {
    padding: 10px 15px 10px 40px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    width: 250px;
    transition: all 0.3s ease;
    outline: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2395a5a6' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    width: 300px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%233498db' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
}

.dataTables_wrapper .dataTables_filter input::placeholder {
    color: #95a5a6;
    font-style: italic;
}

/* Layout dos controles */
.dataTables_wrapper .dataTables_length {
    float: left;
}

.dataTables_wrapper .dataTables_filter {
    float: right;
}

/* Informações */
.dataTables_wrapper .dataTables_info {
    padding-top: 20px;
    color: #7f8c8d;
    font-size: 14px;
    font-weight: 500;
}

/* Paginação */
.dataTables_wrapper .dataTables_paginate {
    padding-top: 20px;
    float: right;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 8px 16px;
    margin: 0 3px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    color: #2c3e50 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    display: inline-block;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #3498db;
    color: white !important;
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #3498db !important;
    color: white !important;
    border-color: #3498db;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    opacity: 0.4;
    cursor: not-allowed;
    background: white !important;
    border-color: #e0e0e0 !important;
    color: #95a5a6 !important;
    transform: none;
    box-shadow: none;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.previous,
.dataTables_wrapper .dataTables_paginate .paginate_button.next {
    font-weight: 600;
}

/* Indicador de processamento */
.dataTables_processing {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: white !important;
    border: none !important;
    border-radius: 15px !important;
    padding: 25px 45px !important;
    color: #3498db !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25) !important;
    z-index: 9999 !important;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
}

.dataTables_processing:before {
    content: '⏳ ';
    margin-right: 8px;
}

/* Linha selecionada */
.produtos-table tbody tr.selected {
    background-color: #e8f4f8 !important;
}

/* Ordenação nas colunas */
.produtos-table thead th {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.produtos-table thead th.sorting,
.produtos-table thead th.sorting_asc,
.produtos-table thead th.sorting_desc {
    padding-right: 30px;
}

.produtos-table thead th.sorting:after,
.produtos-table thead th.sorting_asc:after,
.produtos-table thead th.sorting_desc:after {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
    font-size: 12px;
}

.produtos-table thead th.sorting:after {
    content: '⇅';
}

.produtos-table thead th.sorting_asc:after {
    content: '↑';
    opacity: 1;
}

.produtos-table thead th.sorting_desc:after {
    content: '↓';
    opacity: 1;
}

/* Limpar floats */
.dataTables_wrapper:after {
    content: "";
    display: table;
    clear: both;
}

/* Mensagem de tabela vazia */
.dataTables_empty {
    padding: 40px !important;
    text-align: center;
    color: #7f8c8d;
    font-size: 16px;
    font-weight: 500;
}

.dataTables_empty:before {
    content: '📦 ';
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}

/* Scroll suave */
.dataTables_scrollBody {
    -webkit-overflow-scrolling: touch;
}

/* Animação de entrada das linhas */
.produtos-table tbody tr {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Classes auxiliares */
.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

.text-left {
    text-align: left !important;
}

/* Seções do formulário */
.form-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    animation: fadeInUp 0.5s ease;
}

.form-section h2 {
    color: #2c3e50;
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 25px 0;
}

/* Grid de campos */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.form-row.two-cols {
    grid-template-columns: 1fr 1fr;
}

.form-row.three-cols {
    grid-template-columns: 1fr 1fr 1fr;
}

/* Form Groups */
.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    color: #2c3e50;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Checkbox customizado */
.form-group.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.form-group.checkbox-group:hover {
    border-color: #3498db;
    background: #ecf7fd;
}

.form-group.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #3498db;
}

.form-group.checkbox-group label {
    margin: 0;
    cursor: pointer;
    user-select: none;
}

/* Cabeçalho de seção com botão */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h2 {
    margin: 0;
    padding: 0;
    border: none;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Container de limites */
#limitesContainer {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#limitesContainer:empty::after {
    content: 'Nenhum limite adicionado. Clique em "Adicionar Categoria" para começar.';
    display: block;
    padding: 40px;
    text-align: center;
    color: #95a5a6;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #e0e0e0;
}

/* Linhas de limites */
.limite-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease;
}

.limite-main-fields {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr 50px;
    gap: 20px;
    align-items: end;
}

.limite-row.com-subcategoria .limite-main-fields {
    grid-template-columns: 1.5fr 1.5fr 1fr 1fr 50px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.limite-row:hover {
    border-color: #3498db;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.15);
    transform: translateY(-2px);
}

.limite-row .form-group {
    margin-bottom: 0;
}

.limite-row .form-group label {
    font-size: 13px;
    color: #34495e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.limite-row select,
.limite-row input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
}

.limite-row select:focus,
.limite-row input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Categorias excluídas */
.categorias-excluidas-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge-excluida {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.badge-excluida:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

/* Botão remover */
.btn-remove {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    border-radius: 8px;
    width: 50px;
    height: 50px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.btn-remove:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.5);
}

.btn-remove:active {
    transform: scale(0.95);
}

/* Botões de ação */
.form-actions {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

.btn-action {
    padding: 5px 10px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Arial', sans-serif;
}

.btn-edit {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.btn-edit:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* Responsividade */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }

    .navbar-menu {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .navbar-user {
        flex-direction: column;
        gap: 10px;
    }

    .dashboard-cards {
        grid-template-columns: 1fr;
    }

    .table-container {
        overflow-x: auto;
        border-radius: 8px;
    }

    .produtos-table {
        font-size: 13px;
    }

    .produtos-table th,
    .produtos-table td {
        padding: 10px 8px;
    }

    .modal-content {
        margin: 20% auto;
        width: 95%;
    }

    /* DataTables responsivo */
    .dataTables_wrapper {
        padding: 15px;
    }

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        float: none !important;
        text-align: center;
        margin-bottom: 15px;
    }

    .dataTables_wrapper .dataTables_filter input {
        width: 100% !important;
        max-width: 300px;
    }

    .dataTables_wrapper .dataTables_filter input:focus {
        width: 100% !important;
    }

    .dataTables_wrapper .dataTables_info {
        float: none !important;
        text-align: center;
        padding-top: 15px;
    }

    .dataTables_wrapper .dataTables_paginate {
        float: none !important;
        text-align: center;
        margin-top: 15px;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button {
        padding: 6px 10px;
        font-size: 12px;
        margin: 2px;
    }

    .badge {
        font-size: 10px;
        padding: 4px 10px;
    }

    /* Formulário de conjuntos responsivo */
    .form-row {
        grid-template-columns: 1fr;
    }

    .limite-main-fields,
    .limite-row.com-subcategoria .limite-main-fields {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .btn-remove {
        width: 100%;
        border-radius: 6px;
        height: auto;
        padding: 10px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }
}
