/* Comment Status Styles */
.submission-status {
    font-size: 0.9em;
    padding: 8px 12px;
    border-radius: 4px;
    margin-left: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.submission-status.success {
    background: rgba(80, 250, 123, 0.2);
    color: #50fa7b;
    border: 1px solid rgba(80, 250, 123, 0.3);
    opacity: 1;
}

.submission-status.error {
    background: rgba(255, 85, 85, 0.2);
    color: #ff5555;
    border: 1px solid rgba(255, 85, 85, 0.3);
    opacity: 1;
}

.submission-status.sending {
    background: rgba(139, 233, 253, 0.2);
    color: #8be9fd;
    border: 1px solid rgba(139, 233, 253, 0.3);
    opacity: 1;
}

/* Additional styles for the comment form */
.comment-form {
    position: relative;
}

.comment-form textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.comment-form textarea:focus {
    border-color: #bd93f9;
    box-shadow: 0 0 0 2px rgba(189, 147, 249, 0.2);
}

.comment-form button[type="submit"] {
    min-width: 140px;
    position: relative;
    overflow: hidden;
}

.comment-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.comment-form button[type="submit"]:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Animation for successful submission */
@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.submission-status.success {
    animation: successPulse 0.5s ease;
}

/* Animation for error state */
@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.submission-status.error {
    animation: errorShake 0.5s ease;
}

/* Loading animation for sending state */
@keyframes sendingPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.submission-status.sending {
    animation: sendingPulse 1s ease infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .submission-status {
        margin-left: 0;
        text-align: center;
    }
}
