/* Option 1: Top bar notification */
.message {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background-color: #000;
    color: white;
    text-align: center;
    z-index: 1000;
    animation: slideDown 0.3s ease-out, fadeOut 0.5s ease 4s forwards;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.message.success {
    background-color: #000;
    border-bottom: 3px solid #4CAF50;
}

.message.error {
    background-color: #000;
    border-bottom: 3px solid #F44336;
}

@keyframes slideDown {
    from {transform: translateY(-100%);}
    to {transform: translateY(0);}
}

@keyframes fadeOut {
    from {opacity: 1;}
    to {opacity: 0; visibility: hidden;}
}

/* Option 2: Center notification */
.message-center {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px 30px;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    text-align: center;
    z-index: 1000;
    border-radius: 5px;
    min-width: 250px;
    max-width: 80%;
    animation: fadeIn 0.3s ease-out, fadeOut 0.5s ease 3s forwards;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.message-center.success {
    border-left: 5px solid #4CAF50;
}

.message-center.error {
    border-left: 5px solid #F44336;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* Option 3: Bottom toast notification */
.message-bottom {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    background-color: #000;
    color: white;
    text-align: center;
    z-index: 1000;
    border-radius: 4px;
    min-width: 250px;
    max-width: 80%;
    animation: slideUp 0.3s ease-out, fadeOut 0.5s ease 4s forwards;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.message-bottom.success {
    border-left: 4px solid #4CAF50;
}

.message-bottom.error {
    border-left: 4px solid #F44336;
}

@keyframes slideUp {
    from {transform: translate(-50%, 100%);}
    to {transform: translate(-50%, 0);}
}

/* Add close button to all message types */
.message-close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
}

.message-close:hover {
    color: white;
}

