/* Importando a fonte Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    --background-color: linear-gradient(135deg, #1a365d, #122a42, #0a1929); /* Fundo da página com gradiente */
    --text-color: #333; /* Cor do texto principal */
    --header-gradient: linear-gradient(135deg, #1a365d, #122a42, #0a1929); /* Gradiente da AppBar */
    --border-color: #e0e6ed; /* Cor das bordas */
    --button-bg: #1a365d; /* Cor sólida baseada no gradiente da AppBar */
    --button-bg-hover: #2b4a7a; /* Tom mais claro para hover */
    --neutral-color: #B0BEC5; /* Cor neutra */
    --message-bg: #f8f9fa; /* Fundo de mensagens ou widgets */
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--background-color);
    margin: 0;
    padding: 20px;
    color: var(--text-color);
    min-height: 94vh;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header {
    text-align: center;
    margin-bottom: 10px;
    background: var(--header-gradient);
    padding: 16px;
    border-radius: 8px;
}

.header img {
    max-width: 150px;
    margin-bottom: 10px;
}

h1 {
    color: #fff;
    margin: 0;
    font-weight: 600;
}

.welcome-message {
    background-color: var(--message-bg);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #1a365d; /* Usando o tom inicial do gradiente */
    color: var(--text-color);
    line-height: 1.6;
}

.form-group {
    margin-bottom: 20px;
}

.upload-group {
    margin-bottom: 0;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #1a365d; /* Cor do gradiente inicial para destacar */
    font-weight: 600;
}

textarea {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    resize: vertical;
    font-size: 16px;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

.limit-info {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    width: 100%;
}

.limit-info small {
    color: #666;
    font-family: 'Montserrat', sans-serif;
}

#file-limit {
    display: block;
    color: #666;
    font-family: 'Montserrat', sans-serif;
    /* Removendo margin-bottom, pois vamos usar margin-top no button-container */
}

input[type="file"] {
    display: none;
}

.button-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    margin-top: 10px; /* Adicionando 10px de margem superior para descer os botões */
}

.upload-button-wrapper {
    display: inline-block;
}

.file-upload-label {
    display: inline-block;
    background-color: var(--button-bg);
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.file-upload-label:hover {
    background-color: var(--button-bg-hover);
}

.file-list {
    margin-top: 10px;
    max-width: 100%;
}

.file-item {
    display: flex;
    align-items: center;
    margin: 5px 0;
    padding: 5px;
    background-color: var(--message-bg);
    border-radius: 4px;
}

.file-item span {
    flex-grow: 1;
    margin-right: 10px;
    word-break: break-all;
}

.remove-file {
    background-color: #F44336; /* Cor de remoção da dashboard */
    color: #fff;
    border: none;
    padding: 5px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-family: 'Montserrat', sans-serif;
}

.remove-file:hover {
    background-color: #c62828; /* Tom mais escuro para hover */
}

.submit-button {
    background-color: var(--button-bg);
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.submit-button:hover {
    background-color: var(--button-bg-hover);
}

.flash-messages {
    margin-bottom: 20px;
}

.flash {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    background-color: var(--message-bg);
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 15px;
    }

    .header img {
        max-width: 120px;
    }

    h1 {
        font-size: 1.5em;
    }

    .welcome-message {
        padding: 15px;
    }

    .button-container {
        flex-direction: row;
        justify-content: space-between;
    }

    .submit-button {
        width: auto;
    }

    .file-upload-label {
        width: auto;
    }

    textarea {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 100%;
        padding: 10px;
    }

    .header img {
        max-width: 100px;
    }

    h1 {
        font-size: 1.2em;
    }

    .welcome-message {
        padding: 10px;
        font-size: 0.9em;
    }

    textarea {
        font-size: 14px;
    }

    .button-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .file-upload-label, .submit-button {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
        text-align: center;
    }
}