/* CORES EXATAS DO APP.TSX */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #0f172a;
    background: #fff;
}

/* Navbar */
.navbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 70;
    height: 100px;
    display: flex;
    align-items: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* Logo */
.logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

/* Nav Search */
.nav-search {
    flex: 1;
    max-width: 600px;
    margin: 0 2rem;
    position: relative;
    display: none;
}

@media (min-width: 1024px) {
    .nav-search {
        display: block;
    }
}

.nav-search input {
    width: 100%;
    background: #f3f4f6;
    border: none;
    border-radius: 9999px;
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s;
}

.nav-search input:focus {
    background: #fff;
    box-shadow: 0 0 0 2px #e5e7eb;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

/* Buttons */
.btn {
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: #0f172a;
    color: #fff;
}

.btn-primary:hover {
    background: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background: #fff;
    border: 1px solid #d1d5db;
    color: #374151;
}

.btn-outline:hover {
    border-color: #0f172a;
    color: #0f172a;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #000;
}

/* Hero - BRANCO LIMPO! */
.hero {
    background: #fff;
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 0 auto 2.5rem;
    max-width: 600px;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

/* Search Box */
.search-box {
    max-width: 800px;
    margin: 0 auto 2rem;
    display: flex;
    gap: 0.75rem;
    flex-direction: column;
}

@media (min-width: 640px) {
    .search-box {
        flex-direction: row;
    }
}

.search-box input {
    flex: 1;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    padding: 1rem;
    font-size: 1rem;
    outline: none;
}

.search-box input:focus {
    border-color: #0f172a;
    box-shadow: 0 0 0 1px #0f172a;
}

/* Categories Grid */
.categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .categories {
        grid-template-columns: repeat(4, 1fr);
    }
}

.category-card {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.category-card:hover {
    border-color: #e5e7eb;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.category-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

/* Tools Grid */
.tools-section {
    padding: 5rem 0;
    background: #f9fafb;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
    text-align: center;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

/* Tool Card */
.tool-card {
    background: #fff;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.tool-image {
    width: 100%;
    aspect-ratio: 4/3;
    background: #f3f4f6;
    overflow: hidden;
}

.tool-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tool-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tool-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.tool-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.tool-location {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.tool-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
}

.tool-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.tool-price-label {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 400;
}

/* Auth Pages */
.auth-page {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    padding: 2rem 0;
}

.auth-card {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.auth-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #0f172a;
}

.auth-subtitle {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: #0f172a;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #0f172a;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Loading & Empty */
.loading {
    text-align: center;
    padding: 4rem 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e5e7eb;
    border-top-color: #0f172a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: #6b7280;
}

.empty-state h3 {
    color: #0f172a;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Page Transitions */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Footer */
.footer {
    background: #0f172a;
    color: #fff;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-brand p {
    opacity: 0.8;
    font-size: 0.875rem;
    margin-top: 1rem;
}

.footer h4 {
    margin-bottom: 1rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.footer a:hover {
    color: #fff;
}

/* Search Page Layout */
.search-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .search-layout {
        grid-template-columns: 1fr;
    }
}

.filters-sidebar {
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    height: fit-content;
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-group label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: #0f172a;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #0f172a;
}

.search-results {
    min-height: 400px;
}

/* Form Row */
.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    resize: vertical;
}

.form-group textarea:focus {
    outline: none;
    border-color: #0f172a;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
}

/* Dashboard Table */
.dashboard-table {
    background: #fff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dashboard-table table {
    width: 100%;
}

/* Responsive */
@media (max-width: 640px) {
    .form-row {
        flex-direction: column;
    }

    .dashboard-table {
        overflow-x: auto;
    }
}