@import url('bootstrap.css');
@import url('navbar.css');
@import url('resumo.css');
@import url('footer.css');
@import url('back-button.css');

:root {
    /* Fundo e superfícies */
    --fundo-claro: #E0F2F7;
    --fundo-pagina: #f8fafc;
    /* Fundo geral da página */
    --texto-claro: #ffffff;
    /* Fundo de containers e botões */

    /* Cores principais */
    --cor-primaria: #1773cf;
    /* Azul institucional */
    --cor-secundaria: #1e3a8a;
    /* Azul escuro para títulos e botões */

    /* Texto */
    --texto-suave: #64748b;
    /* Texto secundário */
    --hover: #145ea8;
    /* Hover em botões e links */

    /* Feedback visual */
    --erro: #c0392b;
    /* Texto de erro */
    --sucesso: #27ae60;
    /* Texto de sucesso */

    /* Bordas e sombras */
    --borda: #dbeafe;
    /* Bordas suaves */
    --sombra: rgba(0, 0, 0, 0.08);
    /* Sombra leve */
}


body {
    font-family: Arial, sans-serif;
    margin: 0 auto;
    background-color: var(--fundo-pagina);
    transition: all ease-in-out .5s;
}

.container {
    background-color: var(--texto-claro);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--sombra);
}

h1 {
    color: var(--cor-secundaria);
}

.agendar-section {
    background-color: #fff3cd;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    border: 1px solid #ffeaa7;
}

.form-group,
fieldset {
    margin-bottom: 1.1rem;
}

label {
    display: block;
    margin-bottom: 5px;
    color: var(--texto-suave);
}

input,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--borda);
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.botao-fundo-escuro {
    background-color: var(--cor-primaria);
    text-align: center;
    color: var(--texto-claro);
    font-weight: 600;
    padding: .5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    -webkit-appearance: button;
    height: max-content;
}

/* a {
    height: 100%;
} */

.botao-fundo-claro {
    background: var(--fundo-claro);
    color: var(--cor-primaria);
    text-align: center;
    font-weight: 600;
    padding: .5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    transition: all ease-in-out .2s;
    -webkit-appearance: button;
}

.botao {
    background: unset;
    color: var(--texto-suave);
    text-align: start;
    font-weight: 500;
    padding: .5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    transition: all ease-in-out .2s;
    -webkit-appearance: button;
}

.botao:hover {
    background: var(--fundo-claro);
    color: var(--cor-primaria);
    font-weight: 600;
}

.botao-fundo-claro:hover {
    background-color: var(--hover);
    color: var(--texto-claro);
}

.error {
    background-color: #f8d7da;
    color: var(--erro);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

.success {
    background-color: #d4edda;
    color: var(--sucesso);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.results-info {
    background-color: #e9ecef;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.comunicacao {
    background-color: var(--texto-claro);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--cor-secundaria);
    box-shadow: 0 2px 5px var(--sombra);
}

.processo {
    font-weight: bold;
    color: var(--cor-secundaria);
    font-size: 18px;
    margin-bottom: 5px;
}

.tipo {
    color: var(--texto-suave);
    font-style: italic;
    margin-bottom: 5px;
}

.data {
    color: #888;
    font-size: 14px;
    margin-bottom: 10px;
}

.advogado {
    color: var(--sucesso);
    font-size: 14px;
    margin-top: 10px;
}

.partes {
    margin-top: 1rem;
}

.parte {
    color: var(--texto-suave);
    font-size: 1rem;
    margin-top: .875rem;
}

.bloco {
    margin-bottom: 1rem;
    border-radius: 10px;
    word-wrap: break-word;
}

.bloco h2 {
    margin-bottom: 20px;
    color: var(--cor-primaria);
    font-size: 1.3rem;
}

.resumo {
    margin-bottom: 1rem;
}

.atalho-rapido {
    display: flex;
    gap: 1rem;
    max-width: max-content;
}

.acoes {
    display: flex;
    gap: .5rem;
}

.texto-acoes {
    margin: 0;
}

.acoes a {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.acoes form {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.acoes form button {
    width: 100%;
    align-items: center;
    text-align: center;
}

tbody {
    vertical-align: middle;
}

.texto-destaque{
    color: #000;
    font-size: 1.1rem;
    font-weight: 500;
}

.login {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 400px;
    height: 90dvh;
}

/* Estilos para cards de intimações móveis */
.intimacao-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.intimacao-card .card-header {
    background-color: var(--cor-primaria) !important;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.partes-mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.teor-mobile {
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.destaque {
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Estilos para cards de resultado móveis */
.resultado-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.resultado-card .card-header {
    background-color: var(--cor-primaria) !important;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.pessoas-mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.pessoas-mobile .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.5rem;
}

/* Estilos para cards de processos móveis */
.processo-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.processo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.processo-card .card-header {
    background-color: var(--cor-primaria) !important;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.processo-card .btn {
    font-weight: 500;
    border-radius: 6px;
}

.processo-card .btn-primary {
    background-color: var(--cor-primaria);
    border-color: var(--cor-primaria);
}

.processo-card .btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.processo-card .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

/* Media queries para dispositivos móveis */
@media (max-width: 767.98px) {
    .intimacao-card,
    .resultado-card,
    .processo-card {
        margin: 0 -15px 15px -15px;
    }
    
    .teor-mobile {
        max-height: 150px;
        font-size: 0.85rem;
    }
    
    .pessoas-mobile .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.4rem;
    }
    
    .processo-card .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    .processo-card .card-body {
        padding: 1rem;
    }
    
    .processo-card .card-header h6 {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 767px) {
    .width-100 {
        width: 100%;
    }

    .d-flex-column {
        flex-direction: column;
    }

    .atalho-rapido {
        flex-direction: column;
        max-width: 100%;
    }

    .acoes {
        flex-direction: column;
    }

    .acoes a {
        display: block;
    }

    .texto-acoes {
        display: none;
    }

    .login {
        max-width: unset;
    }
    
    /* Ajustes específicos para cards em mobile */
    .intimacao-card {
        margin-bottom: 1rem;
    }
    
    .intimacao-card .card-body {
        padding: 1rem;
    }
    
    .partes-mobile {
        max-height: 100px;
        overflow-y: auto;
    }
    
    .teor-mobile {
        max-height: 200px;
        overflow-y: auto;
        font-size: 0.9rem;
    }
    
    /* Melhorias para formulários em mobile */
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-label {
        font-weight: 600;
        margin-bottom: 0.5rem;
        font-size: 0.95rem;
    }
    
    .form-control {
        font-size: 16px; /* Evita zoom no iOS */
        padding: 0.75rem;
    }
    
    .botao-fundo-escuro,
    .botao-fundo-claro {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        min-height: 48px; /* Melhor área de toque */
        border-radius: 8px;
    }
    
    .titulo {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    /* Ajustes específicos para página de edição */
    main.container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .gap-3 {
        gap: 1rem !important;
    }
}