/* Django Messages Styling */
.django-messages {
    margin-bottom: 24px;
    width: 100%;
}

.django-message {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    animation: fadeInUp 0.5s ease-out;
    position: relative;
    overflow: hidden;
    border-left: 4px solid #4CAF50;
}

.django-message.success {
    background-color: #f0fff4;
    border-left: 4px solid #4CAF50;
    color: #2f855a;
}

.django-message.error {
    background-color: #fff5f5;
    border-left: 4px solid #f44336;
    color: #c53030;
}

.django-message.warning {
    background-color: #fffbeb;
    border-left: 4px solid #ff9800;
    color: #d97706;
}

.django-message.info {
    background-color: #eff6ff;
    border-left: 4px solid #2196F3;
    color: #2563eb;
}

.django-message-icon {
    margin-right: 12px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.django-message.success .django-message-icon {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.django-message.error .django-message-icon {
    color: #f44336;
    background: rgba(244, 67, 54, 0.1);
}

.django-message.warning .django-message-icon {
    color: #ff9800;
    background: rgba(255, 152, 0, 0.1);
}

.django-message.info .django-message-icon {
    color: #2196F3;
    background: rgba(33, 150, 243, 0.1);
}

.django-message-content {
    flex: 1;
}

.django-message-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
    color: inherit;
}

.django-message-text {
    font-size: 13px;
    color: inherit;
    margin: 0;
    opacity: 0.9;
}

.django-message-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 4px;
    margin-left: 12px;
    font-size: 16px;
    transition: opacity 0.2s ease;
    opacity: 0.7;
    flex-shrink: 0;
}

.django-message-close:hover {
    opacity: 1;
}

.django-message.success .django-message-icon,
.django-message.error .django-message-icon,
.django-message.warning .django-message-icon,
.django-message.info .django-message-icon {
    display: flex !important;
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-20px);
        opacity: 0;
    }
}

.django-message.hiding {
    animation: fadeOut 0.3s ease-in forwards;
}

/* Progress bar for auto-dismiss */
.django-message-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    width: 100%;
    transform-origin: left;
    animation: progress 5s linear;
}

@keyframes progress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .django-message {
        padding: 12px 16px;
        margin-bottom: 10px;
    }
    
    .django-message-icon {
        width: 28px;
        height: 28px;
        font-size: 18px;
        margin-right: 10px;
    }
    
    .django-message-title {
        font-size: 13px;
    }
    
    .django-message-text {
        font-size: 12px;
    }
} 