﻿.message-card {
    background: #f9fafb;
    border: 1px solid #e6e9ee;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 1px 10px rgba(0,0,0,.03);
}

.message-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .5rem;
}

.message-title {
    font-weight: 600;
    color: #17181a;
    margin: 0;
    font-family: "Hikasami-Regular";
}

.message-textarea {
    height: 150px;
    padding: 1rem;
    font-size: 1rem;
    line-height: 1.5;
    background: #f7f8fa;
    border-color: #e6ebf1;
    resize: vertical;
}


    .message-textarea:focus {
        background: #f7f8fa;
        border-color: #1fa2f1;
        box-shadow: 0 0 0 .15rem rgba(31,162,241,.15);
    }

.message-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    margin-top: .5rem;
    color: #6b7280;
    font-size: .9rem;
}

    .message-footer span:last-child {
        font-size: .8rem;
        color: #9ca3af;
        font-weight: 500;
    }

.message-tabs .nav-tabs {
    gap: 0.5rem;
}

.message-tabs .nav-link {
    display: flex;
    align-items: center;
    border: 1px solid #e6e9ee;
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    font-size: 1rem;
    color: #4ea0eb;
}

    .message-tabs .nav-link.active {
        background-color: #f9fafb;
        border-color: #f9fafb;
        color: black;
    }

.message-textarea::placeholder {
    color: #6c757d;
}

.cursor-pointer {
    cursor: pointer;
}

.message-tabs {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

    .message-tabs .nav-tabs {
        gap: 0.5rem;
        flex-wrap: nowrap;
        align-items: center;
    }

@media (max-width: 576px) {
    .message-tabs .nav-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.9rem;
    }

        .message-tabs .nav-link img {
            width: 1.2rem;
            margin-right: 0.3rem;
        }
}

.message-card-warning {
    border-color: #dc3545;
    background: #fff5f5;
    box-shadow: 0 1px 10px rgba(220, 53, 69, 0.1);
}

.textarea-warning {
    border-color: #dc3545 !important;
    background: #fff5f5 !important;
}

    .textarea-warning:focus {
        border-color: #dc3545 !important;
        box-shadow: 0 0 0 .15rem rgba(220, 53, 69, 0.15) !important;
    }

.message-footer-warning {
    color: #dc3545;
    font-weight: 500;
}

.message-footer-warning {
    color: #dc3545;
    font-size: 0.8rem;
    font-weight: 500;
    animation: pulse-warning 1s infinite;
}

@keyframes pulse-warning {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}