:root {
    --laranja: #FF6b00;
    --laranjaescuro: #e25027;
    --azul: #0f4db0;
    --cinza: #f5f7fa;
    --escuro: #1f2933;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f7fa;
}

.home-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: linear-gradient(135deg,
            var(--laranja) 0%,
            var(--laranjaescuro) 50%,
            #c83c18 100%);
}

.home-logo img {
    height: 60px;
}

.btn-admin {
    text-decoration: none;
    background: linear-gradient(135deg,
            #003b7a,
            #0056b3);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
}

.home-hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg,
            #003b7a,
            #0056b3);
    color: white;
}

.home-hero h1 {
    margin: 0;
    font-size: 42px;
}

.home-hero p {
    font-size: 18px;
}

.home-vagas {
    display: grid;
    grid-template-columns:
        repeat(auto-fit,
            minmax(320px, 1fr));
    gap: 20px;
    padding: 40px;
}

.home-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow:
        0 2px 10px rgba(0, 0, 0, .1);
}

.home-card h2 {
    color: #003b7a;
}

.departamento {
    display: inline-block;
    background: linear-gradient(135deg,
            #003b7a,
            #0056b3);
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.btn-candidatar {
    width: 100%;
    padding: 12px;
    border: none;
    background: linear-gradient(135deg,
            #003b7a,
            #0056b3);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.home-vagas {
    display: grid;
    grid-template-columns:
        repeat(auto-fit,
            minmax(350px, 1fr));
    gap: 24px;
    padding: 50px;
}

.vaga-card {

    background: #fff;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, .08);

    transition: .3s;

    display: flex;

    flex-direction: column;

    border: 1px solid #eee;
}

.vaga-card:hover {

    transform:
        translateY(-6px);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, .15);
}

.vaga-header {

    padding: 25px;

    background:
        linear-gradient(135deg,
            #003b7a,
            #005ab5);

    color: white;
}

.vaga-header h2 {

    margin: 15px 0 10px;

    font-size: 22px;
}

.vaga-badge {

    display: inline-block;

    padding: 6px 12px;

    border-radius: 20px;

    background: #f58220;

    font-size: 12px;

    font-weight: bold;

    text-transform: uppercase;
}

.vaga-departamento {

    opacity: .9;

    margin: 0;
}

.vaga-body {

    padding: 25px;

    flex: 1;
}

.vaga-body p {

    line-height: 1.6;

    color: #555;

    margin: 0;
}

.vaga-footer {

    padding: 20px 25px;

    border-top: 1px solid #eee;
}

.btn-candidatar {

    width: 100%;

    border: none;

    border-radius: 10px;

    padding: 14px;

    background: #f58220;

    color: white;

    font-weight: bold;

    font-size: 15px;

    cursor: pointer;

    transition: .3s;
}

.btn-candidatar:hover {

    background: #d96a00;
}


.modal {

    display: none;

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background:
        rgba(0,
            0,
            0,
            .6);

    justify-content: center;

    align-items: center;

    z-index: 9999;
}

.modal-content {

    width: 90%;
    max-width: 700px;

    background: white;

    border-radius: 15px;

    padding: 30px;

    max-height: 90vh;

    overflow: auto;

    position: relative;
}

.fechar-modal {

    position: absolute;

    right: 20px;

    top: 15px;

    font-size: 30px;

    cursor: pointer;

    color: #999;
}

.modal-content h2 {

    margin-top: 0;

    color: #003b7a;
}

.modal-content .form-group {

    margin-bottom: 15px;
}

.modal-content label {

    display: block;

    margin-bottom: 6px;

    font-weight: bold;
}

.modal-content input,
.modal-content textarea {

    width: 100%;

    padding: 10px;

    border: 1px solid #ccc;

    border-radius: 8px;

    box-sizing: border-box;
}

.checkbox {

    display: flex;

    align-items: center;

    gap: 10px;
}

.checkbox input {

    width: auto;
}

.vaga-acoes {

    margin-top: 20px;
}

.btn-detalhes {

    width: 100%;

    padding: 12px;

    border: none;

    border-radius: 10px;

    background: #003b7a;

    color: white;

    cursor: pointer;

    font-weight: bold;
}

.btn-detalhes:hover {

    background: #002a56;
}

#detalheDescricao {

    white-space: pre-line;

    line-height: 1.7;

    color: #555;
}

.modal-vaga {

    max-width: 900px;
}

.vaga-info-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit,
            minmax(200px, 1fr));

    gap: 15px;

    margin: 25px 0;
}

.vaga-info-grid div {

    background: #f8f9fb;

    padding: 15px;

    border-radius: 10px;

    border-left:
        4px solid #f58220;
}

.vaga-info-grid strong {

    display: block;

    color: #003b7a;

    margin-bottom: 5px;
}

#detalheDescricao,
#detalheRequisitos,
#detalheObservacoes {

    line-height: 1.8;

    color: #444;

    white-space: pre-line;

    margin-bottom: 20px;
}

.habilidades-container {

    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;

    background: #f8fafc;
    border: 1px solid #e5e7eb;

    padding: 20px;
    border-radius: 12px;
}

.habilidades-container .form-group {

    flex: 1;
    min-width: 220px;
    margin-bottom: 0;
}

.btn-habilidade-group {

    flex: 0 0 auto;
}

.btn-habilidade {

    height: 46px;

    padding: 0 20px;

    border: none;
    border-radius: 10px;

    background: linear-gradient(135deg,
            var(--laranja),
            var(--laranjaescuro));

    color: #fff;

    font-weight: 600;

    cursor: pointer;

    transition: .2s;
}

.btn-habilidade:hover {

    transform: translateY(-2px);
}

.nivel-header {

    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 8px;
}

#valorNivel {

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--azul);

    color: #fff;

    font-weight: 700;
}

#listaHabilidades {

    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 15px;
}

.habilidade-tag {

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px 15px;

    border-radius: 50px;

    background: linear-gradient(135deg,
            var(--azul),
            #1d4ed8);

    color: white;

    font-size: 14px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

.habilidade-tag button {

    background: rgba(255, 255, 255, .2);

    border: none;

    width: 24px;
    height: 24px;

    border-radius: 50%;

    color: white;

    cursor: pointer;
}

input[type="range"] {
    width: 220px;
    appearance: none;
    height: 6px;
    border-radius: 20px;

    background: linear-gradient(90deg,
            var(--laranja),
            var(--laranjaescuro));

    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;

    width: 22px;
    height: 22px;

    border-radius: 50%;

    background: white;
    border: 3px solid var(--azul);

    cursor: pointer;

    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;

    border-radius: 50%;

    background: white;
    border: 3px solid var(--azul);

    cursor: pointer;
}

.form-group select{
    width:100%;
    padding:12px;
    border:1px solid #d9dde3;
    border-radius:10px;
    background:#fff;
    transition:.2s;
}

.form-group select:focus{
    outline:none;
    border-color:var(--azul);
    box-shadow:0 0 0 3px rgba(15,77,176,.15);
}

.form-group select{
    width:100%;
    padding:10px;
    border:1px solid #ccc;
    border-radius:6px;
}
