/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f4f7f6;
    color: #333;
}

/* Layout Tela Dividida */
.split-layout {
    display: flex;
    min-height: 100vh;
}

/* Lado da Marca (Esquerda) */
.brand-section {
    flex: 1;
    background: linear-gradient(135deg, #0a2540 0%, #154c79 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.brand-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.brand-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 400px;
    opacity: 0.9;
}

/* Lado do Formulário (Direita) */
.form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    padding: 2rem;
}

.form-container {
    width: 100%;
    max-width: 420px;
}

/* Abas (Login / Cadastro) */
.tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 2px solid #eee;
}

.tabs button {
    flex: 1;
    background: none;
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: 0.3s;
}

.tabs button.active {
    color: #0a2540;
    border-bottom: 3px solid #00d4ff;
}

/* Formulários */
form h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #111;
}

form p {
    color: #666;
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: 0.3s;
}

.input-group input:focus,
.input-group select:focus {
    border-color: #154c79;
    outline: none;
    box-shadow: 0 0 0 3px rgba(21, 76, 121, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 1rem;
    background-color: #0a2540;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: #154c79;
}

/* Visibilidade dos Formulários */
.active-form {
    display: block;
}

.hidden-form {
    display: none;
}

/* Responsividade para Celulares */
@media (max-width: 768px) {
    .split-layout {
        flex-direction: column;
    }

    .brand-section {
        padding: 4rem 2rem;
        text-align: center;
    }
}

/* ==========================================
   ESTILOS DO FEED DE LEILÕES (app.tekprax)
   ========================================== */
.feed-body {
    background-color: #f8fafc;
}

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

.nav-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: #00d4ff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
}

/* Botões Extras */
.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.btn-outline:hover {
    background: white;
    color: #0a2540;
}

.btn-text {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
}

.btn-text:hover {
    color: white;
}

/* Grid de Projetos */
.feed-container {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.feed-header {
    margin-bottom: 2rem;
}

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

/* Cartão do Projeto */
.project-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.project-status {
    font-size: 0.8rem;
    font-weight: bold;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    display: inline-block;
    width: max-content;
    margin-bottom: 1rem;
}

.status-aberto {
    background-color: #d1fae5;
    color: #065f46;
}

.project-title {
    font-size: 1.2rem;
    color: #1e293b;
    margin-bottom: 0.8rem;
}

.project-desc {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    /* Empurra o botão para baixo */
}

.project-meta {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 1rem;
    border-top: 1px solid #f1f5f9;
    padding-top: 1rem;
}

.btn-lance {
    padding: 0.8rem;
    font-size: 1rem;
}

/* ==========================================
   ESTILOS PARA MENSAGENS DE ERRO/SUCESSO
   ========================================== */
.form-msg {
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

.msg-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #f87171;
}

.msg-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #34d399;
}

/* ==========================================
   MENU EXPANSÍVEL DO USUÁRIO (DROPDOWN)
   ========================================== */
.user-dropdown-container {
    position: relative;
    display: inline-block;
}

.user-icon-btn {
    background: none;
    border: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: opacity 0.2s;
}

.user-icon-btn:hover {
    opacity: 0.8;
}

.user-icon-btn svg {
    width: 24px;
    height: 24px;
    fill: #00d4ff;
    /* Cor de destaque do TekPrax */
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 130%;
    background-color: white;
    min-width: 220px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid #e2e8f0;
    z-index: 100;
    overflow: hidden;
    transition: opacity 0.2s, transform 0.2s;
}

.dropdown-menu.hidden {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
}

.dropdown-header {
    padding: 1rem;
    background-color: #f8fafc;
    display: flex;
    flex-direction: column;
}

.dropdown-header strong {
    font-size: 1rem;
    color: #0a2540;
}

.dropdown-header span {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.2rem;
    font-weight: 600;
    text-transform: uppercase;
}

.dropdown-divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 0;
}

.dropdown-item {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    color: #334155;
    cursor: pointer;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background-color: #f1f5f9;
}

.text-danger {
    color: #dc2626;
    font-weight: 600;
}

.text-danger:hover {
    background-color: #fef2f2;
}

.text-center {
    text-align: center;
}

/* ==========================================
   [SEÇÃO EXTRA] ESTILOS DO PAINEL (FEED & MODAIS)
   ========================================== */

/* Navbar do Painel */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 15px 5%;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 900;
    color: #0066ff;
    letter-spacing: -0.5px;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    color: #334155;
}

/* Dropdown da Navbar */
.dropdown {
    position: relative;
    display: inline-block;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    z-index: 1;
    overflow: hidden;
}

.dropdown-content a {
    color: #334155;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: 0.2s;
}

.dropdown-content a:hover {
    background-color: #f1f5f9;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Container Principal do Feed */
.feed-body {
    background-color: #f8fafc;
}

.feed-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.feed-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 15px;
}

.feed-header-flex h2 {
    color: #0f172a;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.feed-header-flex p {
    color: #64748b;
    font-size: 0.95rem;
}

/* Grid de Projetos */
.projetos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.projeto-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: 0.3s;
    position: relative;
}

.projeto-card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

.projeto-card h3 {
    color: #1e293b;
    font-size: 1.1rem;
    margin: 15px 0 10px 0;
}

.proj-desc {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.proj-meta small {
    display: block;
    color: #64748b;
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-green {
    background: #dcfce7;
    color: #166534;
}

.badge-gray {
    background: #f1f5f9;
    color: #475569;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    color: #64748b;
    background: #ffffff;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
}

/* Modais (Janelas Flutuantes) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #94a3b8;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.close-btn:hover {
    color: #0f172a;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 0.85rem;
}

/* ==========================================
   RODAPÉ (FOOTER)
   ========================================== */
.site-footer {
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
    color: #64748b;
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    width: 100%;
    margin-top: auto;
}

.site-footer p {
    margin-bottom: 5px;
}

.feed-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}