.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
    line-height: 1.4;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-light); color: white; }
.btn-secondary { background: var(--border); color: var(--text); }
.btn-secondary:hover { background: #c5cdd8; color: var(--text); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #c0392b; color: white; }
.btn-disabled { background: var(--border); color: var(--text-light); cursor: not-allowed; opacity: 0.7; }
.btn-small { padding: 5px 12px; font-size: 0.85rem; }
.btn-large { padding: 14px 32px; font-size: 1.1rem; }
.btn-full { width: 100%; }

.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin: 15px 0;
    font-size: 0.95rem;
    border-left: 4px solid;
}

.alert-success { background: var(--success-bg); border-color: var(--success); color: #1e8449; }
.alert-error, .alert-danger { background: var(--danger-bg); border-color: var(--danger); color: #c0392b; }
.alert-warning { background: var(--warning-bg); border-color: var(--warning); color: #9a7d0a; }
.alert-info { background: var(--info-bg); border-color: var(--info); color: #1f618d; }

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table thead { background: var(--primary-dark); color: white; }
.table th { padding: 12px 16px; text-align: left; font-weight: 600; font-size: 0.9rem; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border-light); font-size: 0.9rem; }
.table tbody tr:hover { background: var(--border-light); }
.table tbody tr:last-child td { border-bottom: none; }
.diff-table td { vertical-align: top; }
.diff-changed td { background: #fffbe6; }
.diff-changed td:first-child { border-left: 3px solid #f0ad00; }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.card-image {
    margin: -20px -20px 16px -20px;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
    max-height: 200px;
}

.card-image img { width: 100%; height: 200px; object-fit: cover; }

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--primary); }
.card-desc { color: var(--text-light); font-size: 0.9rem; margin-bottom: 10px; }
.card-meta { color: var(--text-light); font-size: 0.85rem; }
.card-match { border-left: 4px solid var(--accent); }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-categoria { background: var(--info-bg); color: var(--info); }
.badge-usuario { background: var(--info-bg); color: var(--info); }
.badge-aluno { background: var(--info-bg); color: var(--info); }
.badge-admin { background: #f5eef8; color: #7d3c98; }

.card-status,
.status-pendente { background: #fef9e7; color: #9a7d0a; }
.status-ativo { background: var(--info-bg); color: #1f618d; }
.status-devolvido, .status-aprovada { background: var(--success-bg); color: #1e8449; }
.status-encerrado { background: #f2f3f4; color: var(--text-light); }
.status-reivindicado { background: var(--warning-bg); color: #9a7d0a; }
.status-rejeitada { background: var(--danger-bg); color: #c0392b; }

.tipo-perdido { background: #fdebd0; color: #c0392b; }
.tipo-encontrado { background: #d5f5e3; color: #1e8449; }

.filter-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-tag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    background: #f2f3f4;
    color: var(--text-light);
    border: 2px solid transparent;
    transition: border-color 0.15s;
}
.filter-tag:hover { border-color: currentColor; }
.filter-tag-active { border-color: currentColor; }

.card-status, .status-ativo, .status-encerrado,
.status-reivindicado, .status-devolvido,
.status-pendente, .status-aprovada, .status-rejeitada {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.info-box {
    background: var(--border-light);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    border-left: 4px solid var(--primary);
}

.info-box h3 { font-size: 1rem; margin-bottom: 8px; }

.empty-state { color: var(--text-light); font-style: italic; padding: 12px 0; }

.empty-state-large {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state-large p { font-size: 1.1rem; margin-bottom: 16px; }

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.page-header h1 { color: var(--primary); }

.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.breadcrumb a { color: var(--primary-light); }

.link-more {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

.separator {
    border: none;
    border-top: 1px solid var(--border);
    margin: 30px 0;
}

@media (max-width: 768px) {
    .cards-grid { grid-template-columns: 1fr; }
}
