/**
 * Stiluri pentru sistemul de auto-save
 */

/* Notificare auto-save */
#autosave-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9999;
    font-size: 14px;
}

#autosave-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Banner pentru draft salvat */
.draft-notification {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1030;
    animation: slideDown 0.3s ease;
}

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

.draft-notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 15px;
    flex-wrap: wrap;
}

.draft-icon {
    font-size: 24px;
    margin-right: 10px;
}

.draft-message {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
}

.draft-actions {
    display: flex;
    gap: 10px;
}

.draft-actions .btn {
    white-space: nowrap;
}

/* Modal pentru autentificare */
#auth-prompt-modal .modal-content {
    border: none;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

#auth-prompt-modal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px 8px 0 0;
    border: none;
}

#auth-prompt-modal .modal-title {
    font-weight: 600;
}

#auth-prompt-modal .modal-body {
    padding: 25px;
}

#auth-prompt-modal .modal-body p:first-child {
    font-size: 16px;
    margin-bottom: 15px;
}

#auth-prompt-modal .modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 15px 25px;
}

/* Indicator de salvare în formular */
.form-save-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6c757d;
    margin-left: 15px;
}

.form-save-indicator.saving {
    color: #ffc107;
}

.form-save-indicator.saved {
    color: #28a745;
}

.form-save-indicator .spinner {
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .draft-notification-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .draft-icon {
        margin: 0 0 10px 0;
    }

    .draft-actions {
        justify-content: center;
        width: 100%;
    }

    .draft-actions .btn {
        flex: 1;
    }

    #autosave-notification {
        bottom: 10px;
        right: 10px;
        left: 10px;
        text-align: center;
    }
}
