.addMessage {
    width: 100%;
    min-height: 60px;
    position: fixed;
    top: 230px;
    left: 0;
    z-index: 999;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.addMessage p {
    padding: 13px 22px;
    border-radius: 999px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(-10px);
    transition: 0.25s ease;
}

.addMessage p.form-success,
.addMessage p.form-error {
    opacity: 1;
    transform: translateY(0);
}

.addMessage p.form-success {
    background: #e8fff0;
    color: #169b45;
    border: 1px solid #b8f0c9;
}

.addMessage p.form-error {
    background: #fff0f0;
    color: #d62828;
    border: 1px solid #ffc2c2;
}

.add-page {
    min-height: calc(100vh - 70px);
    padding: 70px 20px;
    background: radial-gradient(circle at top left, #fff, #f1f1f1 45%, #e8e8e8);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.add-card {
    width: 100%;
    max-width: 950px;
    background: #fff;
    border-radius: 16px;
    padding: 34px 28px 32px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.12);
}

.add-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    background: #ffe3b5;
    color: #ff8500;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
}

.add-card h1 {
    text-align: center;
    font-size: 30px;
    margin: 0 0 10px;
    color: #222;
    font-weight: 800;
}

.add-subtitle {
    text-align: center;
    color: #666;
    margin: 0 0 30px;
    font-size: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 9px;
    color: #222;
    font-size: 15px;
    font-weight: 700;
}

.form-group span {
    color: #ff8500;
}

.form-group small {
    color: #777;
    font-weight: 400;
}

.input-box {
    width: 100%;
    display: grid;
    grid-template-columns: 58px 1fr;
    align-items: stretch;
    border: 1px solid #ddd;
    border-radius: 11px;
    overflow: hidden;
    background: #fff;
}

.input-box i {
    width: 58px;
    min-width: 58px;
    background: #f1f2f4;
    border-right: 1px solid #e2e2e2;
    color: #222;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

input[name="title"] {
    width: 100%;
    border: none;
    outline: none;
    padding: 16px 14px;
    font-size: 15px;
    font-family: 'Pacifico', cursive;
    letter-spacing: 2px;
}

input[name="name"] {
    width: 100%;
    border: none;
    outline: none;
    padding: 16px 14px;
    font-size: 15px;
    font-family: 'Ubuntu Mono', monospace;
    font-weight: 1000;
    font-size: 17px;
}

.input-box textarea {
    width: 100%;
    border: none;
    outline: none;
    padding: 16px 14px;
    font-size: 15px;
    font-family: Arial, Helvetica, sans-serif;
}

.input-box textarea {
    min-height: 175px;
    resize: vertical;
}

.textarea-box i {
    align-self: stretch;
    align-items: flex-start;
    padding-top: 18px;
}

.input-box:focus-within {
    border-color: #ff8500;
    box-shadow: 0 0 0 3px rgba(255, 133, 0, 0.14);
}

.upload-box {
    width: 100%;
    min-height: 140px;
    border: 2px dashed #ff8500;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    display: flex !important;
    flex-direction: column;
    justify-content: center !important;
    align-items: center !important;
    text-align: center;
    gap: 7px;
    padding: 22px;
    transition: 0.2s ease;
}

.upload-box:hover {
    background: #fff7eb;
}

.upload-icon {
    width: 56px;
    height: 56px;
    background: #ff8500;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 4px;
}

.upload-box strong {
    display: block;
    color: #222;
    font-size: 16px;
    font-weight: 700;
}

.upload-box p {
    margin: 0;
    color: #777;
    font-size: 13px;
}

.image-preview {
    display: none;
    max-width: 500px;
    max-height: 250px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.upload-box.has-image {
    min-height: 240px;
    padding: 10px;
}

.upload-box.has-image .upload-icon,
.upload-box.has-image strong,
.upload-box.has-image p {
    display: none;
}

.publish-btn {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 16px;
    background: #ff8500;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.publish-btn:hover {
    background: #e97800;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .add-page {
        padding: 35px 14px;
    }

    .add-card {
        padding: 25px 18px;
    }

    .add-card h1 {
        font-size: 25px;
    }

    .image-preview {
        max-width: 100%;
        max-height: 200px;
    }
}