.admin-content {
    animation: fadeIn 0.4s ease;
}

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

/* ========================================
   CARDS PRINCIPAIS
   ======================================== */
.dashboard-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.dashboard-card h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-card h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: #FF4306;
    border-radius: 2px;
}

.search-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.form-group-inline {
    flex: 1;
    min-width: 200px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-input:hover {
    border-color: #ffb399;
    background: #fff;
}

.form-input:focus {
    outline: none;
    border-color: #FF4306;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 67, 6, 0.1);
}

.form-input::placeholder {
    color: #999;
}

/* ========================================
   BOTÕES
   ======================================== */
.btn-primary {
    padding: 12px 32px;
    background: #FF4306;
    color: white;
    border: 2px solid #FF4306;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #fff;
    border-color: #FF4306;
    color: #FF4306;
}

.btn-secondary {
    padding: 12px 24px;
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #fff;
    border-color: #FF4306;
    color: #FF4306;
}

.btn-delete {
    padding: 12px 24px;
    background: #ff0000;
    color: #ffffff;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-delete:hover {
    background: #fff;
    border-color: #FF4306;
    color: #FF4306;
}

.btn-reactive {
    padding: 12px 24px;
    background: #0ab111;
    color: #ffffff;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reactive:hover {
    background: #fff;
    border-color: #FF4306;
    color: #FF4306;
}

#results {
    animation: slideUp 0.4s ease;
}

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

.result-item {
    padding: 20px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    margin: 10px 0;
    background: #f9f9f9;
    transition: all 0.3s ease;
}

.result-item:hover {
    background: #fff;
    border-color: #FF4306;
    box-shadow: 0 4px 12px rgba(255, 67, 6, 0.1);
}

.result-header {
    background: linear-gradient(135deg, #9abee5 0%, #7fa9d3 100%);
    color: white;
    padding: 12px 16px;
    margin: -20px -20px 15px -20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.status-finished {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.status-pending {
    background: #ffc107;
    color: #333;
}

.field-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin: 16px 0;
}

.field {
    display: flex;
    flex-direction: column;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.field label {
    font-weight: 600;
    color: #666;
    margin-bottom: 6px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.field span {
    padding: 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    min-height: 36px;
    color: #333;
    font-size: 14px;
}

.field.full-width {
    grid-column: 1 / -1;
}

.json-field {
    background: #f8f9fa;
    border-left: 4px solid #9abee5;
    padding: 12px 16px;
    margin: 12px 0;
    border-radius: 0 6px 6px 0;
}

.json-field strong {
    color: #333;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 10px;
}

.json-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.json-item {
    background: linear-gradient(135deg, #9abee5 0%, #7fa9d3 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.json-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(154, 190, 229, 0.3);
}

.loading {
    text-align: center;
    padding: 60px;
    color: #999;
}

.loading::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #FF4306;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-data {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.no-data::before {
    content: '📭';
    display: block;
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* ========================================
   TABELAS (se necessário)
   ======================================== */
.data-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.data-table thead {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.data-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: #666;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e1e5e9;
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f3f5;
    color: #333;
    font-size: 14px;
}

.data-table tbody tr {
    transition: all 0.2s ease;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

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

/* ========================================
   RESPONSIVIDADE
   ======================================== */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-card {
        padding: 20px;
        margin-bottom: 16px;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .form-group-inline {
        min-width: 100%;
    }
    
    .btn-primary {
        width: 100%;
        padding: 14px;
    }
    
    .field-group {
        grid-template-columns: 1fr;
    }
    
    .json-items {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .dashboard-card h2 {
        font-size: 18px;
    }
    
    .result-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .status-badge {
        width: fit-content;
        margin: 0 auto;
    }
}

.dashboard-card {
    animation: cardEntry 0.5s ease backwards;
}

.dashboard-card:nth-child(1) { animation-delay: 0.1s; }
.dashboard-card:nth-child(2) { animation-delay: 0.2s; }
.dashboard-card:nth-child(3) { animation-delay: 0.3s; }

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

/* ========================================
   TOOLTIPS (opcional)
   ======================================== */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.tooltip .tooltip-text {
    visibility: hidden;
    background-color: #333;
    color: white;
    text-align: center;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* ========================================
   SCROLLBAR CUSTOMIZADA
   ======================================== */
.admin-content::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.admin-content::-webkit-scrollbar-track {
    background: #f1f3f5;
}

.admin-content::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 4px;
}

.admin-content::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}