@media only screen and (min-width: 600px) {
    .message-sender-nickname{
        font-size:2.5vh;
        font-weight:bold;
        text-align:left;
    }

    .message-text-data{
        font-size:2.0vh;
        text-align:left;
    }

    .message-block{
        width:100%;
        height: fit-content;
        padding:1vh;
    }

    .button-holder{
        display:flex;
        flex-direction:row;
    }


    .message-button{
        height: 3vw;
        width: 3vw;
        font-size: 2vw;
        border-width: 2px;
        margin-left: 1.0vw;
        margin-right: 1.0vw;
        margin-top:1vw;
        border-style: solid;
        border-color: black;
        border-radius: 1.5vw;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }

    .message-button:hover{
        background-color: grey;
    }

    /* ============================================
       HYBRID SIGNATURE CERTIFICATION STYLES
       ============================================ */
    
    .message-sign-button {
        height: 3vw;
        width: 3vw;
        font-size: 2vw;
        border-width: 2px;
        margin-left: 1.0vw;
        margin-right: 1.0vw;
        margin-top:1vw;
        border-style: solid;
        border-color: #888;
        border-radius: 1.5vw;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #888;
        transition: all 0.2s ease;
    }

    .message-sign-button:hover {
        background-color: #e0e0e0;
        border-color: #666;
        color: #666;
    }

    .message-signed-badge {
        height: 3vw;
        width: 3vw;
        font-size: 2vw;
        margin-left: 1.0vw;
        margin-right: 1.0vw;
        margin-top:1vw;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        color: #8b5cf6;  /* Violet for signed */
        animation: signature-pulse 2s infinite;
    }

    @keyframes signature-pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.7; }
    }

    .message-unsign-button {
        height: 3vw;
        width: 3vw;
        font-size: 2vw;
        border-width: 2px;
        margin-left: 1.0vw;
        margin-right: 1.0vw;
        margin-top:1vw;
        border-style: solid;
        border-color: #f59e0b;
        border-radius: 1.5vw;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #f59e0b;  /* Orange for un-sign */
        transition: all 0.2s ease;
    }

    .message-unsign-button:hover {
        background-color: #fef3c7;
        border-color: #d97706;
        color: #d97706;
    }

    .message-revoked-badge {
        height: 3vw;
        width: 3vw;
        font-size: 2vw;
        margin-left: 1.0vw;
        margin-right: 1.0vw;
        margin-top:1vw;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        color: #ef4444;  /* Red for revoked */
    }

    .message-export-button {
        height: 3vw;
        width: 3vw;
        font-size: 2vw;
        border-width: 2px;
        margin-left: 1.0vw;
        margin-right: 1.0vw;
        margin-top:1vw;
        border-style: solid;
        border-color: #10b981;
        border-radius: 1.5vw;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #10b981;  /* Green for export */
        transition: all 0.2s ease;
    }

    .message-export-button:hover {
        background-color: #d1fae5;
        border-color: #059669;
        color: #059669;
    }

    /* Message block states */
    .message-block[data-signature-state="signed"] {
        border-left: 4px solid #8b5cf6;
        background: linear-gradient(to right, rgba(139, 92, 246, 0.05), transparent);
    }

    .message-block[data-signature-state="revoked"] {
        border-left: 4px solid #ef4444;
        background: linear-gradient(to right, rgba(239, 68, 68, 0.05), transparent);
    }

    /* Signature tooltip styles */
    .message-sign-button[title]:hover::after,
    .message-signed-badge[title]:hover::after,
    .message-unsign-button[title]:hover::after,
    .message-revoked-badge[title]:hover::after {
        content: attr(title);
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: #333;
        color: white;
        padding: 5px 10px;
        border-radius: 4px;
        font-size: 12px;
        white-space: nowrap;
        z-index: 1000;
        pointer-events: none;
    }
}
