.weight-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    animation: fadeIn 0.3s;
}

.weight-alert-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: slideDown 0.3s;
}

.weight-alert-modal h2 {
    color: #d9534f;
    margin-bottom: 20px;
    font-size: 22px;
}

.weight-recipient-info {
    background: #f0f8ff;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
    border-left: 4px solid #5bc0de;
}

.weight-recipient-info p {
    margin: 5px 0;
    font-size: 14px;
}

.weight-details {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
    text-align: left;
}

.weight-details p {
    margin: 8px 0;
    line-height: 1.8;
    font-size: 15px;
}

.weight-total {
    margin: 8px 0;
    font-size: 18px;
    color: #d9534f;
    font-weight: bold;
    border-top: 2px solid #ddd;
    padding-top: 10px;
    margin-top: 10px;
}

.weight-available {
    color: #5cb85c;
    font-size: 16px;
    margin: 15px 0;
}

.weight-alert-modal button {
    margin-top: 20px;
    padding: 12px 30px;
    background: #d9534f;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.weight-alert-modal button:hover {
    background: #c9302c;
}

.weight-hint {
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}

.weight-error-page {
    max-width: 600px;
    margin: 50px auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    text-align: center;
}

.weight-error-page h2 {
    color: #d9534f;
    margin-bottom: 20px;
    font-size: 24px;
}

.weight-error-page p {
    margin: 10px 0;
    line-height: 1.6;
    font-size: 16px;
}

.weight-error-page strong {
    color: #333;
    font-weight: bold;
}

.weight-error-page .btn-back {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: #d9534f;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    transition: background 0.3s;
}

.weight-error-page .btn-back:hover {
    background: #c9302c;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 600px) {
    .weight-alert-modal {
        width: 95%;
        padding: 20px;
    }
    
    .weight-alert-modal h2 {
        font-size: 18px;
    }
    
    .weight-details p {
        font-size: 14px;
    }
    
    .weight-error-page {
        width: 95%;
        padding: 20px;
    }
    
    .weight-error-page h2 {
        font-size: 20px;
    }
}