/* =========================================================
   EDITAR RESTAURANTE
========================================================= */

.restaurant-edit-page {
    width: 100%;
    min-height: calc(100vh - 80px);
    padding: 40px 20px 60px;
    background: #f7f7f7;
}


/* =========================================================
   CARD PRINCIPAL
========================================================= */

.restaurant-edit-card {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
}


/* =========================================================
   CABEÇALHO
========================================================= */

.restaurant-edit-header {
    padding: 35px 40px 30px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.restaurant-edit-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff1f2;
    border-radius: 50%;

    font-size: 30px;
}

.restaurant-edit-header h1 {
    margin: 0 0 8px;

    font-size: 28px;
    font-weight: 700;

    color: #222;
}

.restaurant-edit-header p {
    margin: 0;

    color: #777;
    font-size: 15px;
    line-height: 1.5;
}


/* =========================================================
   FORMULÁRIO
========================================================= */

.restaurant-edit-form {
    padding: 35px 40px 40px;
}


/* =========================================================
   SEÇÕES
========================================================= */

.restaurant-edit-section {
    margin-bottom: 25px;
}

.restaurant-edit-section:not(:first-child) {
    margin-top: 40px;
}

.restaurant-edit-section h2 {
    margin: 0 0 6px;

    font-size: 20px;
    font-weight: 700;

    color: #222;
}

.restaurant-edit-section p {
    margin: 0;

    color: #777;
    font-size: 14px;
}


/* =========================================================
   CAMPOS
========================================================= */

.restaurant-edit-field {
    margin-bottom: 20px;
}

.restaurant-edit-field label {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;
    font-weight: 600;

    color: #333;
}


/* =========================================================
   INPUTS
========================================================= */

.restaurant-edit-field input,
.restaurant-edit-field select,
.restaurant-edit-field textarea {
    width: 100%;

    border: 1px solid #dcdcdc;
    border-radius: 9px;

    background: #fff;

    padding: 13px 14px;

    font-family: inherit;
    font-size: 14px;

    color: #333;

    outline: none;

    transition:
        border-color .2s,
        box-shadow .2s,
        background .2s;
}

.restaurant-edit-field input {
    height: 46px;
}

.restaurant-edit-field select {
    height: 46px;

    cursor: pointer;

    appearance: auto;
}

.restaurant-edit-field textarea {
    min-height: 120px;

    resize: vertical;

    line-height: 1.5;
}


/* =========================================================
   FOCUS
========================================================= */

.restaurant-edit-field input:focus,
.restaurant-edit-field select:focus,
.restaurant-edit-field textarea:focus {
    border-color: #ea1d2c;

    box-shadow: 0 0 0 3px rgba(234, 29, 44, .10);
}


/* =========================================================
   PLACEHOLDER
========================================================= */

.restaurant-edit-field input::placeholder,
.restaurant-edit-field textarea::placeholder {
    color: #aaa;
}


/* =========================================================
   LINHA DE CAMPOS
========================================================= */

.restaurant-edit-row {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 18px;
}


/* =========================================================
   IMAGENS
========================================================= */

.restaurant-image-field {
    margin-top: 30px;
    padding: 24px;

    border: 1px solid #e8e8e8;
    border-radius: 14px;

    background: #fafafa;
}

.restaurant-image-info {
    margin-bottom: 18px;
}

.restaurant-image-info h3 {
    margin: 0 0 5px;

    font-size: 16px;
    font-weight: 700;

    color: #222;
}

.restaurant-image-info p {
    margin: 0;

    font-size: 13px;

    color: #777;
}


/* =========================================================
   LOGO ATUAL
========================================================= */

.restaurant-current-logo {
    margin-bottom: 18px;
}

.restaurant-current-logo img {
    display: block;

    width: 130px;
    height: 130px;

    object-fit: cover;

    border-radius: 50%;

    border: 4px solid #fff;

    box-shadow:
        0 2px 10px rgba(0, 0, 0, .12);
}


/* =========================================================
   BANNER ATUAL
========================================================= */

.restaurant-current-banner {
    width: 100%;
    margin-bottom: 18px;

    overflow: hidden;

    border-radius: 12px;

    background: #eee;
}

.restaurant-current-banner img {
    display: block;

    width: 100%;
    height: 230px;

    object-fit: cover;
}


/* =========================================================
   SEM IMAGEM
========================================================= */

.restaurant-no-image {
    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 100px;

    margin-bottom: 18px;

    padding: 20px;

    border: 1px dashed #ccc;
    border-radius: 10px;

    background: #fff;

    color: #888;

    font-size: 14px;
}


/* =========================================================
   UPLOAD
========================================================= */

.restaurant-edit-upload {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    width: 100%;

    min-height: 120px;

    padding: 20px;

    border: 2px dashed #d8d8d8;
    border-radius: 12px;

    background: #fff;

    cursor: pointer;

    text-align: center;

    transition:
        border-color .2s,
        background .2s;
}

.restaurant-edit-upload:hover {
    border-color: #ea1d2c;

    background: #fff8f8;
}

.restaurant-edit-upload-icon {
    margin-bottom: 8px;

    font-size: 25px;
}

.restaurant-edit-upload-title {
    font-size: 14px;
    font-weight: 700;

    color: #333;
}

.restaurant-edit-upload-text {
    margin-top: 4px;

    font-size: 12px;

    color: #999;
}


/* =========================================================
   INPUT FILE
========================================================= */

.restaurant-edit-file {
    display: none;
}


/* =========================================================
   AÇÕES
========================================================= */

.restaurant-edit-actions {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 12px;

    margin-top: 40px;

    padding-top: 25px;

    border-top: 1px solid #eee;
}


/* =========================================================
   CANCELAR
========================================================= */

.restaurant-edit-cancel {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding: 0 20px;

    border: 1px solid #ddd;
    border-radius: 9px;

    background: #fff;

    color: #555;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition:
        background .2s,
        border-color .2s;
}

.restaurant-edit-cancel:hover {
    background: #f5f5f5;

    border-color: #ccc;
}


/* =========================================================
   BOTÃO SALVAR
========================================================= */

.restaurant-edit-button {
    min-height: 46px;

    padding: 0 24px;

    border: 0;
    border-radius: 9px;

    background: #ea1d2c;

    color: #fff;

    font-family: inherit;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .2s,
        transform .2s;
}

.restaurant-edit-button:hover {
    background: #c91422;

    transform: translateY(-1px);
}

.restaurant-edit-button:active {
    transform: translateY(0);
}


/* =========================================================
   RODAPÉ
========================================================= */

.restaurant-edit-footer {
    padding: 18px 40px;

    border-top: 1px solid #eee;

    background: #fafafa;

    text-align: center;

    color: #888;

    font-size: 12px;
}


/* =========================================================
   RESPONSIVO
========================================================= */

@media (max-width: 768px) {

    .restaurant-edit-page {
        padding: 20px 12px 40px;
    }


    .restaurant-edit-card {
        border-radius: 14px;
    }


    .restaurant-edit-header {
        padding: 28px 20px 25px;
    }


    .restaurant-edit-header h1 {
        font-size: 24px;
    }


    .restaurant-edit-form {
        padding: 28px 20px 30px;
    }


    .restaurant-edit-row {
        grid-template-columns: 1fr;

        gap: 0;
    }


    .restaurant-image-field {
        padding: 18px;
    }


    .restaurant-current-banner img {
        height: 180px;
    }


    .restaurant-edit-actions {
        flex-direction: column-reverse;

        align-items: stretch;
    }


    .restaurant-edit-cancel,
    .restaurant-edit-button {
        width: 100%;
    }


    .restaurant-edit-footer {
        padding: 16px 20px;
    }

}