body {
    padding-top: 80px;
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
}

main {
    width: 100%;
    min-height: calc(100vh - 80px);
}

.main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    padding: 20px;
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

.main-header {
    width: 90%;
    max-width: 800px;
    height: auto;
    min-height: 50px;
    margin-bottom: 0;
    padding: 12px 20px;
    border-radius: 15px;
    background-color: #ffffff;
    font-size: 25px;
    text-align: center;
    line-height: 1.4;
    font-weight: bold;
    color: #7127d8;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.project-form-box {
    width: 90%;
    max-width: 800px;
    padding: 30px;
    height: fit-content;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-item {
    width: 100%;
}

.form-item label {
    display: inline-block;
    margin-bottom: 5px;
    font-size: 18px;
}

.form-item .text {
    width: 100%;
    box-sizing: border-box;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #f1f3f6;
    padding: 10px 12px;
    font-size: 15px;
    transition: all 0.25s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Impede o redimensionamento do campo de descrição */
textarea.text {
    resize: none;
    min-height: 150px;
}

.form-item .text::placeholder {
    color: #4b4b4b;
    font-size: 14px;
}

.form-item .text:focus {
    outline: none;
    border-color: #7127d8;
    background-color: #fff;
    box-shadow: 0 0 6px rgba(113, 39, 216, 0.4);
}

input.text {
    height: 35px;
}

input.submit {
    width: 100%;
    max-width: 200px;
    height: 45px;
    border-radius: 8px;
    border: none;
    background-color: #7127d8;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

input.submit:hover {
    background-color: #5a1faf;
    transform: scale(1.02);
}

/* Estilo para upload de imagem */
.image-upload-container {
    width: 100%;
    margin-top: 8px;
    display: flex;
    justify-content: center;
}

.image-upload-label {
    display: block;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
}

.image-preview {
    width: 100%;
    min-height: 200px;
    background-color: #f1f3f6;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.image-preview:hover {
    border-color: #7127d8;
    background-color: #f8f5ff;
}

.image-preview i {
    font-size: 48px;
    color: #7127d8;
    transition: transform 0.3s ease;
}

.image-preview:hover i {
    transform: scale(1.1);
}

.image-preview span {
    font-size: 16px;
    color: #555;
    font-weight: 500;
    text-align: center;
}

.image-preview small {
    font-size: 13px;
    color: #888;
    text-align: center;
}

/* Quando a imagem for carregada */
.image-preview.has-image {
    padding: 0;
    border: 2px solid #7127d8;
    min-height: 250px;
}

.image-preview.has-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-preview.has-image i,
.image-preview.has-image span,
.image-preview.has-image small {
    display: none;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #333;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    z-index: 10000;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 400px;
    animation: slideIn 0.3s ease;
}

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

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

.toast.success {
    background: #10b981;
}

.toast.error {
    background: #ef4444;
}

.toast.info {
    background: #3b82f6;
}

/* ============================================
   MEDIA QUERIES PARA RESPONSIVIDADE
   ============================================ */

/* Tablets (768px e abaixo) */
@media screen and (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .main-content {
        gap: 20px;
        padding: 15px;
    }

    .main-header {
        font-size: 20px;
        padding: 10px 15px;
        width: 95%;
    }

    .project-form-box {
        width: 95%;
        padding: 20px;
    }

    .form-item label {
        font-size: 16px;
    }

    .form-item .text {
        font-size: 14px;
        padding: 10px;
    }

    textarea.text {
        min-height: 120px;
    }

    input.submit {
        max-width: 100%;
        height: 48px;
        font-size: 15px;
    }

    .image-upload-label {
        max-width: 250px;
    }

    .image-preview {
        min-height: 180px;
    }

    .image-preview i {
        font-size: 40px;
    }

    .image-preview span {
        font-size: 14px;
    }

    .toast {
        max-width: calc(100vw - 40px);
        right: 10px;
        left: 10px;
        bottom: 10px;
    }
}

/* Smartphones (480px e abaixo) */
@media screen and (max-width: 480px) {
    body {
        padding-top: 60px;
    }

    .main-content {
        gap: 15px;
        padding: 10px;
    }

    .main-header {
        font-size: 18px;
        padding: 10px;
        width: 100%;
        border-radius: 10px;
    }

    .project-form-box {
        width: 100%;
        padding: 15px;
        border-radius: 10px;
    }

    .form-item label {
        font-size: 15px;
    }

    .form-item .text {
        font-size: 14px;
        padding: 8px 10px;
    }

    input.text {
        height: 40px;
    }

    textarea.text {
        min-height: 100px;
    }

    input.submit {
        height: 50px;
        font-size: 16px;
    }

    .image-upload-label {
        max-width: 200px;
    }

    .image-preview {
        min-height: 150px;
        padding: 15px;
    }

    .image-preview i {
        font-size: 36px;
    }

    .image-preview span {
        font-size: 13px;
    }

    .image-preview small {
        font-size: 11px;
    }

    .image-preview.has-image {
        min-height: 200px;
    }

    .toast {
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* Smartphones pequenos (360px e abaixo) */
@media screen and (max-width: 360px) {
    .main-header {
        font-size: 20px;
    }

    .project-form-box {
        padding: 12px;
    }

    .form-item label {
        font-size: 14px;
    }

    .image-upload-label {
        max-width: 180px;
    }

    .image-preview {
        min-height: 140px;
    }
}